From d674de54bb547a61851b9840cd303b1965eb83ae Mon Sep 17 00:00:00 2001 From: "Hong Li(MSFT)" <74638143+v-hongli1@users.noreply.github.com> Date: Thu, 6 Jun 2024 14:54:03 +0800 Subject: [PATCH] mgmt, local generation for network 2023-11-01 (#40476) * mgmt, local generation for network 2023-11-01 --- .../src/main/resources/revapi/revapi.json | 6 + sdk/resourcemanager/api-specs.json | 2 +- .../CHANGELOG.md | 8 +- .../azure-resourcemanager-network/assets.json | 2 +- .../fluent/ExpressRouteCircuitsClient.java | 117 ++-- ...essRouteCrossConnectionPeeringsClient.java | 48 +- .../FirewallPolicyDeploymentsClient.java | 114 ++++ .../fluent/FirewallPolicyDraftsClient.java | 185 ++++++ ...PolicyRuleCollectionGroupDraftsClient.java | 205 +++++++ .../fluent/NetworkManagementClient.java | 21 + .../NetworkVirtualAppliancesClient.java | 147 +++++ ...ectivityConfigurationsListResultInner.java | 14 +- ...tiveSecurityAdminRulesListResultInner.java | 14 +- .../fluent/models/AdminPropertiesFormat.java | 59 +- .../AdminRuleCollectionPropertiesFormat.java | 20 +- ...ayBackendHttpSettingsPropertiesFormat.java | 63 +-- ...atewayBackendSettingsPropertiesFormat.java | 55 +- ...atewayFirewallRuleSetPropertiesFormat.java | 36 +- ...onGatewayHttpListenerPropertiesFormat.java | 51 +- .../models/ApplicationGatewayInner.java | 181 +++--- ...cationGatewayListenerPropertiesFormat.java | 32 +- ...GatewayPrivateEndpointConnectionInner.java | 12 +- ...vateEndpointConnectionPropertiesInner.java | 12 +- ...wayPrivateLinkConfigurationProperties.java | 12 +- .../models/ApplicationGatewayProbeInner.java | 8 +- ...plicationGatewayProbePropertiesFormat.java | 23 +- .../ApplicationGatewayPropertiesFormat.java | 213 ++++--- .../models/ApplicationSecurityGroupInner.java | 21 +- ...licationSecurityGroupPropertiesFormat.java | 9 +- .../models/AvailableProvidersListInner.java | 12 +- ...rewallIpConfigurationPropertiesFormat.java | 3 +- .../models/AzureReachabilityReportInner.java | 30 +- .../models/BackendAddressPoolInner.java | 59 +- .../BackendAddressPoolPropertiesFormat.java | 46 +- .../fluent/models/BaseAdminRuleInner.java | 25 +- ...onHostIpConfigurationPropertiesFormat.java | 10 +- .../models/BastionShareableLinkInner.java | 4 +- .../fluent/models/ConnectionMonitorInner.java | 54 +- .../models/ConnectionSharedKeyInner.java | 4 +- .../ConnectivityConfigurationProperties.java | 41 +- .../fluent/models/CustomIpPrefixInner.java | 75 ++- .../CustomIpPrefixPropertiesFormat.java | 59 +- .../DdosCustomPolicyPropertiesFormat.java | 3 +- .../models/DdosProtectionPlanInner.java | 19 +- .../DdosProtectionPlanPropertiesFormat.java | 18 +- .../models/DefaultAdminPropertiesFormat.java | 32 +- .../models/ExpressRouteCircuitInner.java | 106 ++-- .../ExpressRouteCircuitPropertiesFormat.java | 97 ++-- .../models/ExpressRouteConnectionInner.java | 5 +- .../ExpressRouteConnectionProperties.java | 8 +- .../models/ExpressRouteGatewayProperties.java | 26 +- .../models/FirewallPolicyDraftInner.java | 309 ++++++++++ .../models/FirewallPolicyDraftProperties.java | 293 ++++++++++ ...llPolicyRuleCollectionGroupDraftInner.java | 159 ++++++ ...icyRuleCollectionGroupDraftProperties.java | 103 ++++ ...irewallPolicyRuleCollectionGroupInner.java | 28 +- ...llPolicyRuleCollectionGroupProperties.java | 18 +- .../models/FlowLogInformationInner.java | 10 +- .../fluent/models/FlowLogProperties.java | 4 +- .../models/FlowLogPropertiesFormat.java | 10 +- .../models/FrontendIpConfigurationInner.java | 58 +- .../HubVirtualNetworkConnectionInner.java | 6 +- ...HubVirtualNetworkConnectionProperties.java | 6 +- .../InboundNatPoolPropertiesFormat.java | 21 +- .../fluent/models/InboundNatRuleInner.java | 3 +- .../InboundNatRulePropertiesFormatInner.java | 24 +- .../models/InboundSecurityRuleInner.java | 45 +- .../models/InboundSecurityRuleProperties.java | 38 +- ...alancerBackendAddressPropertiesFormat.java | 30 +- .../fluent/models/LoadBalancerInner.java | 69 ++- .../models/LoadBalancerPropertiesFormat.java | 65 +-- .../fluent/models/LoadBalancingRuleInner.java | 19 +- .../LoadBalancingRulePropertiesFormat.java | 32 +- .../models/LocalNetworkGatewayInner.java | 5 +- .../NetworkInterfaceIpConfigurationInner.java | 37 +- ...eIpConfigurationPropertiesFormatInner.java | 43 +- ...NetworkInterfacePropertiesFormatInner.java | 3 +- .../models/NetworkManagerCommitInner.java | 10 +- ...anagerDeploymentStatusListResultInner.java | 3 +- ...nectivityConfigurationListResultInner.java | 3 +- ...tiveSecurityAdminRulesListResultInner.java | 7 +- .../models/NetworkManagerProperties.java | 10 +- .../NetworkSecurityGroupPropertiesFormat.java | 3 +- .../models/NetworkVirtualApplianceInner.java | 25 + ...tworkVirtualApplianceInstanceIdsInner.java | 59 ++ ...tworkVirtualAppliancePropertiesFormat.java | 31 + .../fluent/models/NextHopResultInner.java | 3 +- .../fluent/models/OutboundRuleInner.java | 3 +- .../models/OutboundRulePropertiesFormat.java | 18 +- .../P2SConnectionConfigurationProperties.java | 8 +- .../fluent/models/PacketCaptureInner.java | 78 ++- .../models/PacketCaptureParameters.java | 94 +++- .../models/PacketCaptureResultInner.java | 73 ++- .../models/PacketCaptureResultProperties.java | 19 + ...eerExpressRouteCircuitConnectionInner.java | 3 +- ...outeCircuitConnectionPropertiesFormat.java | 3 +- .../PrivateEndpointConnectionInner.java | 8 +- ...vateEndpointConnectionPropertiesInner.java | 8 +- .../PrivateEndpointPropertiesInner.java | 6 +- ...rivateLinkServiceConnectionProperties.java | 8 +- ...rivateLinkServiceIpConfigurationInner.java | 9 +- ...ServiceIpConfigurationPropertiesInner.java | 9 +- .../network/fluent/models/ProbeInner.java | 25 +- .../fluent/models/ProbePropertiesFormat.java | 45 +- ...blicIpDdosProtectionStatusResultInner.java | 10 +- .../RouteFilterRulePropertiesFormat.java | 15 +- .../network/fluent/models/RouteMapInner.java | 8 +- .../fluent/models/RouteMapProperties.java | 8 +- .../fluent/models/RoutePropertiesFormat.java | 8 +- .../fluent/models/SecurityRuleInner.java | 12 +- .../models/SecurityRulePropertiesFormat.java | 43 +- .../network/fluent/models/SubnetInner.java | 36 +- .../models/SubnetPropertiesFormatInner.java | 45 +- .../models/TroubleshootingProperties.java | 10 +- .../network/fluent/models/UsageInner.java | 8 +- .../VirtualNetworkGatewayConnectionInner.java | 5 +- ...tworkGatewayConnectionListEntityInner.java | 5 +- ...yConnectionListEntityPropertiesFormat.java | 13 +- ...atewayConnectionPropertiesFormatInner.java | 13 +- .../models/VirtualNetworkGatewayInner.java | 13 +- ...alNetworkGatewayPolicyGroupProperties.java | 5 +- ...VirtualNetworkGatewayPropertiesFormat.java | 26 +- .../fluent/models/VirtualNetworkInner.java | 16 +- .../models/VirtualNetworkPeeringInner.java | 160 +++++- ...VirtualNetworkPeeringPropertiesFormat.java | 198 ++++++- .../VirtualNetworkPropertiesFormat.java | 19 +- .../fluent/models/VirtualNetworkTapInner.java | 10 +- ...irtualNetworkTapPropertiesFormatInner.java | 4 +- ...ientConnectionConfigurationProperties.java | 18 +- .../models/VpnClientIPsecParametersInner.java | 30 +- ...ClientRootCertificatePropertiesFormat.java | 5 +- .../VpnServerConfigurationProperties.java | 3 +- .../models/VpnSiteLinkConnectionInner.java | 23 + .../VpnSiteLinkConnectionProperties.java | 26 + ...icationFirewallPolicyPropertiesFormat.java | 5 +- .../AdminRuleCollectionsClientImpl.java | 99 ++-- .../implementation/AdminRulesClientImpl.java | 99 ++-- ...yPrivateEndpointConnectionsClientImpl.java | 91 +-- ...GatewayPrivateLinkResourcesClientImpl.java | 4 +- ...nGatewayWafDynamicManifestsClientImpl.java | 4 +- ...WafDynamicManifestsDefaultsClientImpl.java | 4 +- .../ApplicationGatewaysClientImpl.java | 346 ++++++------ .../ApplicationSecurityGroupsClientImpl.java | 129 ++--- .../AvailableDelegationsClientImpl.java | 4 +- .../AvailableEndpointServicesClientImpl.java | 4 +- ...ailablePrivateEndpointTypesClientImpl.java | 8 +- ...bleResourceGroupDelegationsClientImpl.java | 4 +- .../AvailableServiceAliasesClientImpl.java | 8 +- .../AzureFirewallFqdnTagsClientImpl.java | 4 +- .../AzureFirewallsClientImpl.java | 191 +++---- .../BastionHostsClientImpl.java | 139 ++--- .../BgpServiceCommunitiesClientImpl.java | 4 +- .../ConfigurationPolicyGroupsClientImpl.java | 106 ++-- .../ConnectionMonitorsClientImpl.java | 179 +++--- .../ConnectivityConfigurationsClientImpl.java | 87 +-- .../CustomIpPrefixesClientImpl.java | 129 ++--- .../DdosCustomPoliciesClientImpl.java | 81 +-- .../DdosProtectionPlansClientImpl.java | 129 ++--- .../DefaultSecurityRulesClientImpl.java | 8 +- .../DscpConfigurationsClientImpl.java | 115 ++-- ...sRouteCircuitAuthorizationsClientImpl.java | 100 ++-- ...ressRouteCircuitConnectionsClientImpl.java | 103 ++-- ...ExpressRouteCircuitPeeringsClientImpl.java | 91 +-- .../ExpressRouteCircuitsClientImpl.java | 229 ++++---- .../ExpressRouteConnectionsClientImpl.java | 93 +-- ...outeCrossConnectionPeeringsClientImpl.java | 101 ++-- ...xpressRouteCrossConnectionsClientImpl.java | 184 +++--- .../ExpressRouteGatewaysClientImpl.java | 131 ++--- .../ExpressRouteLinksClientImpl.java | 8 +- ...ressRoutePortAuthorizationsClientImpl.java | 103 ++-- .../ExpressRoutePortsClientImpl.java | 143 ++--- .../ExpressRoutePortsLocationsClientImpl.java | 8 +- ...RouteProviderPortsLocationsClientImpl.java | 4 +- ...xpressRouteServiceProvidersClientImpl.java | 8 +- .../FirewallPoliciesClientImpl.java | 129 ++--- .../FirewallPolicyDeploymentsClientImpl.java | 280 +++++++++ .../FirewallPolicyDraftsClientImpl.java | 474 ++++++++++++++++ ...irewallPolicyIdpsSignaturesClientImpl.java | 8 +- ...yIdpsSignaturesFilterValuesClientImpl.java | 8 +- ...licyIdpsSignaturesOverridesClientImpl.java | 16 +- ...cyRuleCollectionGroupDraftsClientImpl.java | 530 ++++++++++++++++++ ...lPolicyRuleCollectionGroupsClientImpl.java | 100 ++-- .../implementation/FlowLogsClientImpl.java | 105 ++-- .../HubRouteTablesClientImpl.java | 95 ++-- ...ubVirtualNetworkConnectionsClientImpl.java | 107 ++-- .../InboundNatRulesClientImpl.java | 97 ++-- ...boundSecurityRuleOperationsClientImpl.java | 38 +- .../IpAllocationsClientImpl.java | 129 ++--- .../implementation/IpGroupsClientImpl.java | 129 ++--- ...BalancerBackendAddressPoolsClientImpl.java | 91 +-- ...cerFrontendIpConfigurationsClientImpl.java | 8 +- ...dBalancerLoadBalancingRulesClientImpl.java | 8 +- ...adBalancerNetworkInterfacesClientImpl.java | 4 +- .../LoadBalancerOutboundRulesClientImpl.java | 8 +- .../LoadBalancerProbesClientImpl.java | 8 +- .../LoadBalancersClientImpl.java | 191 +++---- .../LocalNetworkGatewaysClientImpl.java | 20 +- ...upNetworkManagerConnectionsClientImpl.java | 20 +- .../implementation/NatGatewaysClientImpl.java | 28 +- .../implementation/NatRulesClientImpl.java | 16 +- .../NetworkGroupsClientImpl.java | 16 +- ...rkInterfaceIpConfigurationsClientImpl.java | 12 +- ...tworkInterfaceLoadBalancersClientImpl.java | 4 +- ...kInterfaceTapConfigurationsClientImpl.java | 28 +- .../NetworkInterfacesClientImpl.java | 44 +- .../NetworkManagementClientBuilder.java | 9 +- .../NetworkManagementClientImpl.java | 178 ++++-- .../NetworkManagerCommitsClientImpl.java | 4 +- ...rDeploymentStatusOperationsClientImpl.java | 8 +- .../NetworkManagersClientImpl.java | 24 +- .../NetworkProfilesClientImpl.java | 24 +- .../NetworkSecurityGroupsClientImpl.java | 24 +- ...VirtualApplianceConnectionsClientImpl.java | 28 +- .../NetworkVirtualAppliancesClientImpl.java | 346 +++++++++++- .../NetworkWatchersClientImpl.java | 75 +-- .../implementation/OperationsClientImpl.java | 4 +- .../P2SVpnGatewaysClientImpl.java | 48 +- .../PacketCapturesClientImpl.java | 28 +- ...ressRouteCircuitConnectionsClientImpl.java | 8 +- .../PrivateDnsZoneGroupsClientImpl.java | 25 +- .../PrivateEndpointsClientImpl.java | 20 +- .../PrivateLinkServicesClientImpl.java | 64 ++- .../PublicIpAddressesClientImpl.java | 40 +- .../PublicIpPrefixesClientImpl.java | 24 +- .../ResourceNavigationLinksClientImpl.java | 4 +- .../RouteFilterRulesClientImpl.java | 16 +- .../RouteFiltersClientImpl.java | 24 +- .../implementation/RouteMapsClientImpl.java | 19 +- .../implementation/RouteTablesClientImpl.java | 28 +- .../implementation/RoutesClientImpl.java | 16 +- .../RoutingIntentsClientImpl.java | 29 +- .../ScopeConnectionsClientImpl.java | 16 +- ...SecurityAdminConfigurationsClientImpl.java | 16 +- .../SecurityPartnerProvidersClientImpl.java | 24 +- .../SecurityRulesClientImpl.java | 28 +- .../ServiceAssociationLinksClientImpl.java | 4 +- .../ServiceEndpointPoliciesClientImpl.java | 24 +- ...ceEndpointPolicyDefinitionsClientImpl.java | 41 +- .../ServiceTagInformationsClientImpl.java | 8 +- .../implementation/ServiceTagsClientImpl.java | 8 +- .../StaticMembersClientImpl.java | 16 +- .../implementation/SubnetsClientImpl.java | 51 +- ...onNetworkManagerConnectionsClientImpl.java | 16 +- .../implementation/UsagesClientImpl.java | 4 +- .../implementation/VipSwapsClientImpl.java | 12 +- .../VirtualApplianceSitesClientImpl.java | 19 +- .../VirtualApplianceSkusClientImpl.java | 8 +- .../VirtualHubBgpConnectionsClientImpl.java | 24 +- .../VirtualHubIpConfigurationsClientImpl.java | 16 +- .../VirtualHubRouteTableV2SClientImpl.java | 28 +- .../implementation/VirtualHubsClientImpl.java | 55 +- ...alNetworkGatewayConnectionsClientImpl.java | 67 ++- ...rtualNetworkGatewayNatRulesClientImpl.java | 25 +- .../VirtualNetworkGatewaysClientImpl.java | 116 ++-- .../VirtualNetworkPeeringsClientImpl.java | 32 +- .../VirtualNetworkTapsClientImpl.java | 24 +- .../VirtualNetworksClientImpl.java | 63 ++- .../VirtualRouterPeeringsClientImpl.java | 16 +- .../VirtualRoutersClientImpl.java | 24 +- .../implementation/VirtualWansClientImpl.java | 28 +- .../VpnConnectionsClientImpl.java | 34 +- .../implementation/VpnGatewaysClientImpl.java | 40 +- .../VpnLinkConnectionsClientImpl.java | 15 +- ...nsAssociatedWithVirtualWansClientImpl.java | 4 +- .../VpnServerConfigurationsClientImpl.java | 33 +- .../VpnSiteLinkConnectionsClientImpl.java | 8 +- .../VpnSiteLinksClientImpl.java | 8 +- .../implementation/VpnSitesClientImpl.java | 24 +- .../VpnSitesConfigurationsClientImpl.java | 8 +- ...ApplicationFirewallPoliciesClientImpl.java | 20 +- .../WebCategoriesClientImpl.java | 8 +- .../network/models/Action.java | 14 +- .../models/ActiveBaseSecurityAdminRule.java | 53 +- .../models/ActiveConfigurationParameter.java | 14 +- .../ActiveDefaultSecurityAdminRule.java | 55 +- .../models/ActiveSecurityAdminRule.java | 69 ++- .../network/models/AdminRule.java | 65 ++- .../ApplicationGatewayBackendSettings.java | 59 +- ...ationGatewayFirewallDisabledRuleGroup.java | 16 +- .../ApplicationGatewayFirewallExclusion.java | 11 +- ...icationGatewayFirewallManifestRuleSet.java | 38 +- .../ApplicationGatewayFirewallRuleGroup.java | 25 +- ...ApplicationGatewayHeaderConfiguration.java | 33 ++ .../ApplicationGatewayHttpListener.java | 61 +- .../ApplicationGatewayOnDemandProbe.java | 11 +- ...cationGatewayPrivateLinkConfiguration.java | 22 +- .../models/ApplicationGatewayRewriteRule.java | 22 +- ...pplicationGatewayRewriteRuleCondition.java | 8 +- .../network/models/ApplicationGatewaySku.java | 26 + .../models/ApplicationGatewaySkuFamily.java | 54 ++ .../ApplicationGatewayUrlConfiguration.java | 6 +- ...ayWebApplicationFirewallConfiguration.java | 58 +- .../network/models/ApplicationRule.java | 63 ++- .../models/AuthorizationListResult.java | 14 +- .../AzureReachabilityReportLocation.java | 5 +- .../AzureReachabilityReportParameters.java | 38 +- .../network/models/BgpCommunity.java | 30 +- .../models/ConnectionMonitorEndpoint.java | 95 +++- ...nectionMonitorEndpointLocationDetails.java | 55 ++ .../ConnectionMonitorIcmpConfiguration.java | 6 +- .../models/ConnectionMonitorSource.java | 5 +- .../ConnectionMonitorSuccessThreshold.java | 16 +- .../ConnectionMonitorTcpConfiguration.java | 6 +- .../ConnectionMonitorTestConfiguration.java | 13 +- .../models/ConnectionMonitorTestGroup.java | 43 +- .../ConnectivityConfigurationListResult.java | 15 +- .../network/models/ConnectivityGroupItem.java | 10 +- .../models/ConnectivityParameters.java | 9 +- .../network/models/ConnectivitySource.java | 4 +- .../network/models/DefaultAdminRule.java | 51 +- .../EffectiveBaseSecurityAdminRule.java | 45 +- .../EffectiveDefaultSecurityAdminRule.java | 55 +- .../models/EffectiveNetworkSecurityRule.java | 83 ++- .../models/EffectiveRoutesParameters.java | 3 +- .../models/EffectiveSecurityAdminRule.java | 69 ++- .../network/models/EndpointType.java | 12 +- .../network/models/ExclusionManagedRule.java | 4 +- .../models/ExclusionManagedRuleGroup.java | 16 +- .../models/ExclusionManagedRuleSet.java | 25 +- ...ExpressRouteCircuitRoutesTableSummary.java | 6 +- ...outeCrossConnectionRoutesTableSummary.java | 6 +- .../FirewallPolicyFilterRuleCollection.java | 36 +- .../FirewallPolicyIntrusionDetection.java | 6 +- ...PolicyIntrusionDetectionConfiguration.java | 19 +- .../FirewallPolicyNatRuleCollection.java | 36 +- .../network/models/FirewallPolicyRule.java | 24 +- .../models/FirewallPolicyRuleCollection.java | 22 +- .../network/models/FirewallPolicySql.java | 3 +- .../models/FlowLogStatusParameters.java | 5 +- ...ewayCustomBgpIpAddressIpConfiguration.java | 10 +- .../GenerateExpressRoutePortsLoaRequest.java | 5 +- .../models/GetInboundRoutesParameters.java | 3 +- .../models/GetOutboundRoutesParameters.java | 3 +- .../GetVpnSitesConfigurationRequest.java | 16 +- .../network/models/GroupByUserSession.java | 12 +- .../network/models/GroupByVariable.java | 4 +- .../network/models/HeaderValueMatcher.java | 114 ++++ .../network/models/HubRoute.java | 43 +- .../network/models/InboundNatPool.java | 3 +- .../models/InboundSecurityRuleType.java | 55 ++ .../network/models/InboundSecurityRules.java | 104 +++- .../IpConfigurationBgpPeeringAddress.java | 21 +- .../network/models/IpsecPolicy.java | 30 +- .../models/ListP2SVpnGatewaysResult.java | 15 +- .../models/ListVpnConnectionsResult.java | 15 +- .../ListVpnSiteLinkConnectionsResult.java | 15 +- .../models/ListVpnSiteLinksResult.java | 15 +- .../models/ManagedRuleGroupOverride.java | 5 +- .../network/models/ManagedRuleOverride.java | 4 +- .../network/models/ManagedRuleSet.java | 8 +- .../models/ManagedRulesDefinition.java | 5 +- .../models/ManagedServiceIdentity.java | 19 +- .../network/models/MatchCondition.java | 12 +- .../network/models/MatchVariable.java | 4 +- .../network/models/NatRule.java | 20 +- ...workConfigurationDiagnosticParameters.java | 13 +- ...NetworkConfigurationDiagnosticProfile.java | 25 +- .../models/NetworkInterfaceDnsSettings.java | 26 +- .../NetworkManagerSecurityGroupItem.java | 5 +- .../network/models/NetworkRule.java | 20 +- ...pliancePropertiesFormatNetworkProfile.java | 59 ++ .../network/models/NextHopParameters.java | 26 +- .../network/models/NicTypeInRequest.java | 53 ++ .../network/models/NicTypeInResponse.java | 58 ++ .../network/models/OperationListResult.java | 4 +- .../models/OwaspCrsExclusionEntry.java | 21 +- .../models/P2SConnectionConfiguration.java | 11 +- .../network/models/PacketCaptureFilter.java | 28 +- .../network/models/PacketCaptureSettings.java | 110 ++++ .../models/PacketCaptureStorageLocation.java | 54 +- .../network/models/PolicySettings.java | 31 +- .../models/PrivateLinkServiceConnection.java | 8 +- .../models/PublicIpAddressDnsSettings.java | 34 +- .../network/models/QueryRequestOptions.java | 3 +- .../QueryTroubleshootingParameters.java | 5 +- .../network/models/RadiusServer.java | 5 +- .../network/models/RoutingPolicy.java | 12 +- .../models/SecurityGroupViewParameters.java | 5 +- .../network/models/SharingScope.java | 54 ++ .../network/models/SingleQueryResult.java | 3 +- .../network/models/StaticRoutesConfig.java | 3 +- .../network/models/TrafficSelectorPolicy.java | 10 +- .../models/TroubleshootingParameters.java | 10 +- .../models/VerificationIpFlowParameters.java | 52 +- .../VirtualApplianceIpConfiguration.java | 83 +++ ...ualApplianceIpConfigurationProperties.java | 54 ++ ...pplianceNetworkInterfaceConfiguration.java | 84 +++ ...tworkInterfaceConfigurationProperties.java | 59 ++ .../models/VirtualApplianceNicProperties.java | 15 + .../network/models/VirtualHubId.java | 3 +- .../models/VirtualNetworkBgpCommunities.java | 5 +- ...tualNetworkConnectionGatewayReference.java | 5 +- .../VngClientConnectionConfiguration.java | 8 +- .../models/VpnClientConfiguration.java | 17 +- .../models/VpnClientConnectionHealth.java | 3 +- .../network/models/VpnClientParameters.java | 14 +- .../models/VpnClientRootCertificate.java | 5 +- .../WebApplicationFirewallCustomRule.java | 15 +- .../WebApplicationFirewallScrubbingRules.java | 16 +- .../proxy-config.json | 2 +- .../reflect-config.json | 90 +++ ...nRuleCollectionsCreateOrUpdateSamples.java | 21 +- .../AdminRuleCollectionsDeleteSamples.java | 11 +- .../AdminRuleCollectionsGetSamples.java | 11 +- .../AdminRuleCollectionsListSamples.java | 10 +- .../AdminRulesCreateOrUpdateSamples.java | 52 +- .../generated/AdminRulesDeleteSamples.java | 12 +- .../generated/AdminRulesGetSamples.java | 23 +- .../generated/AdminRulesListSamples.java | 12 +- ...ivateEndpointConnectionsDeleteSamples.java | 10 +- ...yPrivateEndpointConnectionsGetSamples.java | 8 +- ...PrivateEndpointConnectionsListSamples.java | 10 +- ...ivateEndpointConnectionsUpdateSamples.java | 13 +- ...atewayPrivateLinkResourcesListSamples.java | 10 +- ...yWafDynamicManifestsDefaultGetSamples.java | 8 +- ...nGatewayWafDynamicManifestsGetSamples.java | 10 +- ...nGatewaysBackendHealthOnDemandSamples.java | 17 +- ...plicationGatewaysBackendHealthSamples.java | 10 +- ...licationGatewaysCreateOrUpdateSamples.java | 69 ++- .../ApplicationGatewaysDeleteSamples.java | 10 +- ...tionGatewaysGetByResourceGroupSamples.java | 10 +- ...GatewaysGetSslPredefinedPolicySamples.java | 8 +- ...aysListAvailableRequestHeadersSamples.java | 8 +- ...ysListAvailableResponseHeadersSamples.java | 8 +- ...ysListAvailableServerVariablesSamples.java | 8 +- ...atewaysListAvailableSslOptionsSamples.java | 8 +- ...AvailableSslPredefinedPoliciesSamples.java | 8 +- ...tewaysListAvailableWafRuleSetsSamples.java | 8 +- ...ionGatewaysListByResourceGroupSamples.java | 10 +- .../ApplicationGatewaysListSamples.java | 4 +- .../ApplicationGatewaysStartSamples.java | 10 +- .../ApplicationGatewaysStopSamples.java | 10 +- .../ApplicationGatewaysUpdateTagsSamples.java | 15 +- ...onSecurityGroupsCreateOrUpdateSamples.java | 11 +- ...pplicationSecurityGroupsDeleteSamples.java | 10 +- ...curityGroupsGetByResourceGroupSamples.java | 11 +- ...urityGroupsListByResourceGroupSamples.java | 11 +- .../ApplicationSecurityGroupsListSamples.java | 8 +- ...cationSecurityGroupsUpdateTagsSamples.java | 15 +- .../AvailableDelegationsListSamples.java | 10 +- .../AvailableEndpointServicesListSamples.java | 10 +- ...dpointTypesListByResourceGroupSamples.java | 10 +- ...ilablePrivateEndpointTypesListSamples.java | 10 +- ...leResourceGroupDelegationsListSamples.java | 10 +- ...viceAliasesListByResourceGroupSamples.java | 10 +- .../AvailableServiceAliasesListSamples.java | 11 +- .../AzureFirewallFqdnTagsListSamples.java | 3 +- .../AzureFirewallsCreateOrUpdateSamples.java | 398 +++++++------ .../AzureFirewallsDeleteSamples.java | 10 +- ...ureFirewallsGetByResourceGroupSamples.java | 52 +- ...reFirewallsListByResourceGroupSamples.java | 10 +- ...reFirewallsListLearnedPrefixesSamples.java | 10 +- .../generated/AzureFirewallsListSamples.java | 3 +- .../AzureFirewallsPacketCaptureSamples.java | 41 +- .../AzureFirewallsUpdateTagsSamples.java | 14 +- .../BastionHostsCreateOrUpdateSamples.java | 74 +-- .../generated/BastionHostsDeleteSamples.java | 21 +- ...BastionHostsGetByResourceGroupSamples.java | 30 +- ...astionHostsListByResourceGroupSamples.java | 10 +- .../generated/BastionHostsListSamples.java | 4 +- .../BastionHostsUpdateTagsSamples.java | 14 +- .../BgpServiceCommunitiesListSamples.java | 3 +- ...tionPolicyGroupsCreateOrUpdateSamples.java | 33 +- ...onfigurationPolicyGroupsDeleteSamples.java | 10 +- .../ConfigurationPolicyGroupsGetSamples.java | 11 +- ...psListByVpnServerConfigurationSamples.java | 10 +- ...nnectionMonitorsCreateOrUpdateSamples.java | 128 +++-- .../ConnectionMonitorsDeleteSamples.java | 10 +- .../ConnectionMonitorsGetSamples.java | 10 +- .../ConnectionMonitorsListSamples.java | 10 +- .../ConnectionMonitorsQuerySamples.java | 10 +- .../ConnectionMonitorsStartSamples.java | 10 +- .../ConnectionMonitorsStopSamples.java | 10 +- .../ConnectionMonitorsUpdateTagsSamples.java | 14 +- ...tyConfigurationsCreateOrUpdateSamples.java | 38 +- ...nnectivityConfigurationsDeleteSamples.java | 11 +- .../ConnectivityConfigurationsGetSamples.java | 11 +- ...ConnectivityConfigurationsListSamples.java | 10 +- ...CustomIpPrefixesCreateOrUpdateSamples.java | 12 +- .../CustomIpPrefixesDeleteSamples.java | 10 +- ...omIpPrefixesGetByResourceGroupSamples.java | 10 +- ...mIpPrefixesListByResourceGroupSamples.java | 10 +- .../CustomIpPrefixesListSamples.java | 3 +- .../CustomIpPrefixesUpdateTagsSamples.java | 15 +- ...osCustomPoliciesCreateOrUpdateSamples.java | 12 +- .../DdosCustomPoliciesDeleteSamples.java | 10 +- ...stomPoliciesGetByResourceGroupSamples.java | 10 +- .../DdosCustomPoliciesUpdateTagsSamples.java | 16 +- ...sProtectionPlansCreateOrUpdateSamples.java | 11 +- .../DdosProtectionPlansDeleteSamples.java | 10 +- ...tectionPlansGetByResourceGroupSamples.java | 10 +- ...ectionPlansListByResourceGroupSamples.java | 10 +- .../DdosProtectionPlansListSamples.java | 4 +- .../DdosProtectionPlansUpdateTagsSamples.java | 15 +- .../DefaultSecurityRulesGetSamples.java | 10 +- .../DefaultSecurityRulesListSamples.java | 10 +- ...scpConfigurationCreateOrUpdateSamples.java | 53 +- .../DscpConfigurationDeleteSamples.java | 10 +- ...onfigurationGetByResourceGroupSamples.java | 10 +- ...nfigurationListByResourceGroupSamples.java | 10 +- .../DscpConfigurationListSamples.java | 3 +- ...itAuthorizationsCreateOrUpdateSamples.java | 12 +- ...uteCircuitAuthorizationsDeleteSamples.java | 10 +- ...sRouteCircuitAuthorizationsGetSamples.java | 10 +- ...RouteCircuitAuthorizationsListSamples.java | 10 +- ...rcuitConnectionsCreateOrUpdateSamples.java | 26 +- ...sRouteCircuitConnectionsDeleteSamples.java | 12 +- ...ressRouteCircuitConnectionsGetSamples.java | 12 +- ...essRouteCircuitConnectionsListSamples.java | 10 +- ...eCircuitPeeringsCreateOrUpdateSamples.java | 18 +- ...ressRouteCircuitPeeringsDeleteSamples.java | 10 +- ...ExpressRouteCircuitPeeringsGetSamples.java | 11 +- ...xpressRouteCircuitPeeringsListSamples.java | 10 +- ...essRouteCircuitsCreateOrUpdateSamples.java | 51 +- .../ExpressRouteCircuitsDeleteSamples.java | 11 +- ...outeCircuitsGetByResourceGroupSamples.java | 10 +- ...ssRouteCircuitsGetPeeringStatsSamples.java | 10 +- .../ExpressRouteCircuitsGetStatsSamples.java | 10 +- ...pressRouteCircuitsListArpTableSamples.java | 10 +- ...uteCircuitsListByResourceGroupSamples.java | 10 +- ...ssRouteCircuitsListRoutesTableSamples.java | 10 +- ...CircuitsListRoutesTableSummarySamples.java | 11 +- .../ExpressRouteCircuitsListSamples.java | 3 +- ...ExpressRouteCircuitsUpdateTagsSamples.java | 15 +- ...RouteConnectionsCreateOrUpdateSamples.java | 23 +- .../ExpressRouteConnectionsDeleteSamples.java | 11 +- .../ExpressRouteConnectionsGetSamples.java | 12 +- .../ExpressRouteConnectionsListSamples.java | 11 +- ...nnectionPeeringsCreateOrUpdateSamples.java | 11 +- ...eCrossConnectionPeeringsDeleteSamples.java | 12 +- ...outeCrossConnectionPeeringsGetSamples.java | 12 +- ...uteCrossConnectionPeeringsListSamples.java | 8 +- ...CrossConnectionsCreateOrUpdateSamples.java | 15 +- ...sConnectionsGetByResourceGroupSamples.java | 11 +- ...teCrossConnectionsListArpTableSamples.java | 12 +- ...ConnectionsListByResourceGroupSamples.java | 8 +- ...rossConnectionsListRoutesTableSamples.java | 12 +- ...nectionsListRoutesTableSummarySamples.java | 12 +- ...pressRouteCrossConnectionsListSamples.java | 8 +- ...outeCrossConnectionsUpdateTagsSamples.java | 15 +- ...essRouteGatewaysCreateOrUpdateSamples.java | 9 +- .../ExpressRouteGatewaysDeleteSamples.java | 11 +- ...outeGatewaysGetByResourceGroupSamples.java | 11 +- ...uteGatewaysListByResourceGroupSamples.java | 8 +- ...outeGatewaysListBySubscriptionSamples.java | 8 +- ...ExpressRouteGatewaysUpdateTagsSamples.java | 16 +- .../ExpressRouteLinksGetSamples.java | 10 +- .../ExpressRouteLinksListSamples.java | 10 +- ...rtAuthorizationsCreateOrUpdateSamples.java | 12 +- ...sRoutePortAuthorizationsDeleteSamples.java | 10 +- ...ressRoutePortAuthorizationsGetSamples.java | 10 +- ...essRoutePortAuthorizationsListSamples.java | 10 +- ...xpressRoutePortsCreateOrUpdateSamples.java | 42 +- .../ExpressRoutePortsDeleteSamples.java | 10 +- .../ExpressRoutePortsGenerateLoaSamples.java | 14 +- ...ssRoutePortsGetByResourceGroupSamples.java | 10 +- ...sRoutePortsListByResourceGroupSamples.java | 10 +- .../ExpressRoutePortsListSamples.java | 3 +- .../ExpressRoutePortsLocationsGetSamples.java | 11 +- ...ExpressRoutePortsLocationsListSamples.java | 9 +- .../ExpressRoutePortsUpdateTagsSamples.java | 15 +- ...RouteProviderPortsLocationListSamples.java | 11 +- ...pressRouteServiceProvidersListSamples.java | 8 +- ...FirewallPoliciesCreateOrUpdateSamples.java | 79 +-- .../FirewallPoliciesDeleteSamples.java | 10 +- ...wallPoliciesGetByResourceGroupSamples.java | 10 +- ...allPoliciesListByResourceGroupSamples.java | 10 +- .../FirewallPoliciesListSamples.java | 3 +- .../FirewallPoliciesUpdateTagsSamples.java | 17 +- ...irewallPolicyDeploymentsDeploySamples.java | 26 + ...wallPolicyDraftsCreateOrUpdateSamples.java | 89 +++ .../FirewallPolicyDraftsDeleteSamples.java | 26 + .../FirewallPolicyDraftsGetSamples.java | 26 + ...IdpsSignaturesFilterValuesListSamples.java | 12 +- ...rewallPolicyIdpsSignaturesListSamples.java | 14 +- ...licyIdpsSignaturesOverridesGetSamples.java | 10 +- ...icyIdpsSignaturesOverridesListSamples.java | 10 +- ...cyIdpsSignaturesOverridesPatchSamples.java | 19 +- ...licyIdpsSignaturesOverridesPutSamples.java | 19 +- ...ctionGroupDraftsCreateOrUpdateSamples.java | 47 ++ ...uleCollectionGroupDraftsDeleteSamples.java | 26 + ...cyRuleCollectionGroupDraftsGetSamples.java | 26 + ...CollectionGroupsCreateOrUpdateSamples.java | 177 +++--- ...licyRuleCollectionGroupsDeleteSamples.java | 10 +- ...lPolicyRuleCollectionGroupsGetSamples.java | 40 +- ...PolicyRuleCollectionGroupsListSamples.java | 30 +- .../FlowLogsCreateOrUpdateSamples.java | 25 +- .../generated/FlowLogsDeleteSamples.java | 11 +- .../network/generated/FlowLogsGetSamples.java | 10 +- .../generated/FlowLogsListSamples.java | 4 +- .../generated/FlowLogsUpdateTagsSamples.java | 14 +- .../HubRouteTablesCreateOrUpdateSamples.java | 26 +- .../HubRouteTablesDeleteSamples.java | 10 +- .../generated/HubRouteTablesGetSamples.java | 10 +- .../generated/HubRouteTablesListSamples.java | 10 +- ...tworkConnectionsCreateOrUpdateSamples.java | 11 +- ...irtualNetworkConnectionsDeleteSamples.java | 10 +- ...ubVirtualNetworkConnectionsGetSamples.java | 10 +- ...bVirtualNetworkConnectionsListSamples.java | 10 +- .../InboundNatRulesCreateOrUpdateSamples.java | 23 +- .../InboundNatRulesDeleteSamples.java | 10 +- .../generated/InboundNatRulesGetSamples.java | 10 +- .../generated/InboundNatRulesListSamples.java | 10 +- ...ityRuleOperationCreateOrUpdateSamples.java | 26 +- .../IpAllocationsCreateOrUpdateSamples.java | 16 +- .../generated/IpAllocationsDeleteSamples.java | 10 +- ...pAllocationsGetByResourceGroupSamples.java | 10 +- ...AllocationsListByResourceGroupSamples.java | 10 +- .../generated/IpAllocationsListSamples.java | 3 +- .../IpAllocationsUpdateTagsSamples.java | 14 +- .../IpGroupsCreateOrUpdateSamples.java | 19 +- .../generated/IpGroupsDeleteSamples.java | 10 +- .../IpGroupsGetByResourceGroupSamples.java | 10 +- .../IpGroupsListByResourceGroupSamples.java | 11 +- .../generated/IpGroupsListSamples.java | 4 +- .../IpGroupsUpdateGroupsSamples.java | 17 +- ...kendAddressPoolsCreateOrUpdateSamples.java | 26 +- ...ancerBackendAddressPoolsDeleteSamples.java | 10 +- ...BalancerBackendAddressPoolsGetSamples.java | 20 +- ...alancerBackendAddressPoolsListSamples.java | 20 +- ...cerFrontendIpConfigurationsGetSamples.java | 10 +- ...erFrontendIpConfigurationsListSamples.java | 10 +- ...dBalancerLoadBalancingRulesGetSamples.java | 10 +- ...BalancerLoadBalancingRulesListSamples.java | 10 +- ...dBalancerNetworkInterfacesListSamples.java | 20 +- .../LoadBalancerOutboundRulesGetSamples.java | 11 +- .../LoadBalancerOutboundRulesListSamples.java | 11 +- .../LoadBalancerProbesGetSamples.java | 10 +- .../LoadBalancerProbesListSamples.java | 10 +- .../LoadBalancersCreateOrUpdateSamples.java | 352 ++++++++---- .../generated/LoadBalancersDeleteSamples.java | 10 +- ...oadBalancersGetByResourceGroupSamples.java | 20 +- ...adBalancersListByResourceGroupSamples.java | 10 +- ...ListInboundNatRulePortMappingsSamples.java | 13 +- .../generated/LoadBalancersListSamples.java | 3 +- .../LoadBalancersMigrateToIpBasedSamples.java | 14 +- ...BalancersSwapPublicIpAddressesSamples.java | 22 +- .../LoadBalancersUpdateTagsSamples.java | 11 +- ...lNetworkGatewaysCreateOrUpdateSamples.java | 19 +- .../LocalNetworkGatewaysDeleteSamples.java | 11 +- ...workGatewaysGetByResourceGroupSamples.java | 10 +- ...orkGatewaysListByResourceGroupSamples.java | 10 +- ...LocalNetworkGatewaysUpdateTagsSamples.java | 12 +- ...nagerConnectionsCreateOrUpdateSamples.java | 8 +- ...etworkManagerConnectionsDeleteSamples.java | 8 +- ...upNetworkManagerConnectionsGetSamples.java | 8 +- ...pNetworkManagerConnectionsListSamples.java | 8 +- .../NatGatewaysCreateOrUpdateSamples.java | 12 +- .../generated/NatGatewaysDeleteSamples.java | 10 +- .../NatGatewaysGetByResourceGroupSamples.java | 10 +- ...NatGatewaysListByResourceGroupSamples.java | 10 +- .../generated/NatGatewaysListSamples.java | 3 +- .../NatGatewaysUpdateTagsSamples.java | 11 +- .../NatRulesCreateOrUpdateSamples.java | 13 +- .../generated/NatRulesDeleteSamples.java | 10 +- .../network/generated/NatRulesGetSamples.java | 10 +- .../NatRulesListByVpnGatewaySamples.java | 10 +- .../NetworkGroupsCreateOrUpdateSamples.java | 12 +- .../generated/NetworkGroupsDeleteSamples.java | 11 +- .../generated/NetworkGroupsGetSamples.java | 10 +- .../generated/NetworkGroupsListSamples.java | 10 +- ...rkInterfaceIpConfigurationsGetSamples.java | 10 +- ...kInterfaceIpConfigurationsListSamples.java | 10 +- ...workInterfaceLoadBalancersListSamples.java | 10 +- ...apConfigurationsCreateOrUpdateSamples.java | 16 +- ...terfaceTapConfigurationsDeleteSamples.java | 10 +- ...kInterfaceTapConfigurationsGetSamples.java | 10 +- ...InterfaceTapConfigurationsListSamples.java | 10 +- ...etworkInterfacesCreateOrUpdateSamples.java | 36 +- .../NetworkInterfacesDeleteSamples.java | 10 +- ...rkInterfacesGetByResourceGroupSamples.java | 10 +- ...etCloudServiceNetworkInterfaceSamples.java | 11 +- ...terfacesGetEffectiveRouteTableSamples.java | 10 +- ...MachineScaleSetIpConfigurationSamples.java | 8 +- ...achineScaleSetNetworkInterfaceSamples.java | 8 +- ...kInterfacesListByResourceGroupSamples.java | 10 +- ...tCloudServiceNetworkInterfacesSamples.java | 10 +- ...eRoleInstanceNetworkInterfacesSamples.java | 11 +- ...EffectiveNetworkSecurityGroupsSamples.java | 10 +- .../NetworkInterfacesListSamples.java | 3 +- ...achineScaleSetIpConfigurationsSamples.java | 11 +- ...chineScaleSetNetworkInterfacesSamples.java | 8 +- ...ineScaleSetVMNetworkInterfacesSamples.java | 9 +- .../NetworkInterfacesUpdateTagsSamples.java | 12 +- .../NetworkManagerCommitsPostSamples.java | 15 +- ...rDeploymentStatusOperationListSamples.java | 20 +- .../NetworkManagersCreateOrUpdateSamples.java | 22 +- .../NetworkManagersDeleteSamples.java | 10 +- ...workManagersGetByResourceGroupSamples.java | 10 +- ...orkManagersListByResourceGroupSamples.java | 10 +- .../generated/NetworkManagersListSamples.java | 10 +- .../NetworkManagersPatchSamples.java | 12 +- .../NetworkProfilesCreateOrUpdateSamples.java | 21 +- .../NetworkProfilesDeleteSamples.java | 10 +- ...workProfilesGetByResourceGroupSamples.java | 21 +- ...orkProfilesListByResourceGroupSamples.java | 10 +- .../generated/NetworkProfilesListSamples.java | 3 +- .../NetworkProfilesUpdateTagsSamples.java | 11 +- ...rkSecurityGroupsCreateOrUpdateSamples.java | 38 +- .../NetworkSecurityGroupsDeleteSamples.java | 11 +- ...curityGroupsGetByResourceGroupSamples.java | 10 +- ...urityGroupsListByResourceGroupSamples.java | 10 +- .../NetworkSecurityGroupsListSamples.java | 4 +- ...etworkSecurityGroupsUpdateTagsSamples.java | 11 +- ...ianceConnectionsCreateOrUpdateSamples.java | 15 +- ...tualApplianceConnectionsDeleteSamples.java | 10 +- ...VirtualApplianceConnectionsGetSamples.java | 10 +- ...irtualApplianceConnectionsListSamples.java | 10 +- ...irtualAppliancesCreateOrUpdateSamples.java | 68 ++- ...NetworkVirtualAppliancesDeleteSamples.java | 11 +- ...alAppliancesGetByResourceGroupSamples.java | 11 +- ...lAppliancesListByResourceGroupSamples.java | 10 +- .../NetworkVirtualAppliancesListSamples.java | 3 +- ...etworkVirtualAppliancesRestartSamples.java | 44 ++ ...orkVirtualAppliancesUpdateTagsSamples.java | 13 +- ...tworkWatchersCheckConnectivitySamples.java | 21 +- .../NetworkWatchersCreateOrUpdateSamples.java | 11 +- .../NetworkWatchersDeleteSamples.java | 10 +- ...hersGetAzureReachabilityReportSamples.java | 25 +- ...workWatchersGetByResourceGroupSamples.java | 10 +- ...etworkWatchersGetFlowLogStatusSamples.java | 15 +- ...NetworkConfigurationDiagnosticSamples.java | 20 +- .../NetworkWatchersGetNextHopSamples.java | 23 +- .../NetworkWatchersGetTopologySamples.java | 12 +- ...tchersGetTroubleshootingResultSamples.java | 15 +- ...workWatchersGetTroubleshootingSamples.java | 24 +- ...workWatchersGetVMSecurityRulesSamples.java | 15 +- ...WatchersListAvailableProvidersSamples.java | 17 +- ...orkWatchersListByResourceGroupSamples.java | 10 +- .../generated/NetworkWatchersListSamples.java | 3 +- ...atchersSetFlowLogConfigurationSamples.java | 20 +- .../NetworkWatchersUpdateTagsSamples.java | 11 +- .../NetworkWatchersVerifyIpFlowSamples.java | 26 +- .../generated/OperationsListSamples.java | 3 +- .../P2SVpnGatewaysCreateOrUpdateSamples.java | 15 +- .../P2SVpnGatewaysDeleteSamples.java | 10 +- ...aysDisconnectP2SVpnConnectionsSamples.java | 14 +- ...SVpnGatewaysGenerateVpnProfileSamples.java | 13 +- ...SVpnGatewaysGetByResourceGroupSamples.java | 10 +- ...P2SVpnConnectionHealthDetailedSamples.java | 18 +- ...ewaysGetP2SVpnConnectionHealthSamples.java | 10 +- ...VpnGatewaysListByResourceGroupSamples.java | 10 +- .../generated/P2SVpnGatewaysListSamples.java | 3 +- .../generated/P2SVpnGatewaysResetSamples.java | 10 +- .../P2SVpnGatewaysUpdateTagsSamples.java | 11 +- .../PacketCapturesCreateSamples.java | 19 +- .../PacketCapturesDeleteSamples.java | 10 +- .../generated/PacketCapturesGetSamples.java | 10 +- .../PacketCapturesGetStatusSamples.java | 10 +- .../generated/PacketCapturesListSamples.java | 10 +- .../generated/PacketCapturesStopSamples.java | 10 +- ...ressRouteCircuitConnectionsGetSamples.java | 12 +- ...essRouteCircuitConnectionsListSamples.java | 10 +- ...ateDnsZoneGroupsCreateOrUpdateSamples.java | 8 +- .../PrivateDnsZoneGroupsDeleteSamples.java | 10 +- .../PrivateDnsZoneGroupsGetSamples.java | 10 +- .../PrivateDnsZoneGroupsListSamples.java | 10 +- ...PrivateEndpointsCreateOrUpdateSamples.java | 56 +- .../PrivateEndpointsDeleteSamples.java | 10 +- ...ateEndpointsGetByResourceGroupSamples.java | 31 +- ...teEndpointsListByResourceGroupSamples.java | 10 +- .../PrivateEndpointsListSamples.java | 3 +- ...rviceVisibilityByResourceGroupSamples.java | 8 +- ...ckPrivateLinkServiceVisibilitySamples.java | 15 +- ...vateLinkServicesCreateOrUpdateSamples.java | 16 +- ...eletePrivateEndpointConnectionSamples.java | 10 +- .../PrivateLinkServicesDeleteSamples.java | 10 +- ...LinkServicesGetByResourceGroupSamples.java | 10 +- ...esGetPrivateEndpointConnectionSamples.java | 11 +- ...ateLinkServicesByResourceGroupSamples.java | 8 +- ...utoApprovedPrivateLinkServicesSamples.java | 8 +- ...inkServicesListByResourceGroupSamples.java | 10 +- ...ListPrivateEndpointConnectionsSamples.java | 10 +- .../PrivateLinkServicesListSamples.java | 4 +- ...pdatePrivateEndpointConnectionSamples.java | 13 +- ...ublicIpAddressesCreateOrUpdateSamples.java | 66 ++- ...pAddressesDdosProtectionStatusSamples.java | 10 +- .../PublicIpAddressesDeleteSamples.java | 10 +- ...cIpAddressesGetByResourceGroupSamples.java | 10 +- ...GetCloudServicePublicIpAddressSamples.java | 11 +- ...MachineScaleSetPublicIpAddressSamples.java | 8 +- ...IpAddressesListByResourceGroupSamples.java | 10 +- ...tCloudServicePublicIpAddressesSamples.java | 11 +- ...eRoleInstancePublicIpAddressesSamples.java | 11 +- .../PublicIpAddressesListSamples.java | 3 +- ...chineScaleSetPublicIpAddressesSamples.java | 8 +- ...ineScaleSetVMPublicIpAddressesSamples.java | 11 +- .../PublicIpAddressesUpdateTagsSamples.java | 12 +- ...PublicIpPrefixesCreateOrUpdateSamples.java | 37 +- .../PublicIpPrefixesDeleteSamples.java | 10 +- ...icIpPrefixesGetByResourceGroupSamples.java | 10 +- ...cIpPrefixesListByResourceGroupSamples.java | 10 +- .../PublicIpPrefixesListSamples.java | 3 +- .../PublicIpPrefixesUpdateTagsSamples.java | 11 +- .../ResourceNavigationLinksListSamples.java | 10 +- ...RouteFilterRulesCreateOrUpdateSamples.java | 16 +- .../RouteFilterRulesDeleteSamples.java | 10 +- .../generated/RouteFilterRulesGetSamples.java | 10 +- ...teFilterRulesListByRouteFilterSamples.java | 10 +- .../RouteFiltersCreateOrUpdateSamples.java | 21 +- .../generated/RouteFiltersDeleteSamples.java | 10 +- ...RouteFiltersGetByResourceGroupSamples.java | 10 +- ...outeFiltersListByResourceGroupSamples.java | 10 +- .../generated/RouteFiltersListSamples.java | 3 +- .../RouteFiltersUpdateTagsSamples.java | 11 +- .../RouteMapsCreateOrUpdateSamples.java | 36 +- .../generated/RouteMapsDeleteSamples.java | 10 +- .../generated/RouteMapsGetSamples.java | 10 +- .../generated/RouteMapsListSamples.java | 10 +- .../RouteTablesCreateOrUpdateSamples.java | 32 +- .../generated/RouteTablesDeleteSamples.java | 10 +- .../RouteTablesGetByResourceGroupSamples.java | 10 +- ...RouteTablesListByResourceGroupSamples.java | 10 +- .../generated/RouteTablesListSamples.java | 3 +- .../RouteTablesUpdateTagsSamples.java | 11 +- .../RoutesCreateOrUpdateSamples.java | 12 +- .../generated/RoutesDeleteSamples.java | 10 +- .../network/generated/RoutesGetSamples.java | 10 +- .../network/generated/RoutesListSamples.java | 3 +- .../RoutingIntentCreateOrUpdateSamples.java | 21 +- .../generated/RoutingIntentDeleteSamples.java | 10 +- .../generated/RoutingIntentGetSamples.java | 10 +- .../generated/RoutingIntentListSamples.java | 10 +- ...ScopeConnectionsCreateOrUpdateSamples.java | 18 +- .../ScopeConnectionsDeleteSamples.java | 10 +- .../generated/ScopeConnectionsGetSamples.java | 10 +- .../ScopeConnectionsListSamples.java | 10 +- ...inConfigurationsCreateOrUpdateSamples.java | 16 +- ...urityAdminConfigurationsDeleteSamples.java | 10 +- ...SecurityAdminConfigurationsGetSamples.java | 10 +- ...ecurityAdminConfigurationsListSamples.java | 10 +- ...PartnerProvidersCreateOrUpdateSamples.java | 19 +- ...SecurityPartnerProvidersDeleteSamples.java | 11 +- ...nerProvidersGetByResourceGroupSamples.java | 11 +- ...erProvidersListByResourceGroupSamples.java | 10 +- .../SecurityPartnerProvidersListSamples.java | 3 +- ...rityPartnerProvidersUpdateTagsSamples.java | 12 +- .../SecurityRulesCreateOrUpdateSamples.java | 23 +- .../generated/SecurityRulesDeleteSamples.java | 10 +- .../generated/SecurityRulesGetSamples.java | 11 +- .../generated/SecurityRulesListSamples.java | 11 +- .../ServiceAssociationLinksListSamples.java | 10 +- ...EndpointPoliciesCreateOrUpdateSamples.java | 27 +- .../ServiceEndpointPoliciesDeleteSamples.java | 11 +- ...ointPoliciesGetByResourceGroupSamples.java | 10 +- ...intPoliciesListByResourceGroupSamples.java | 11 +- .../ServiceEndpointPoliciesListSamples.java | 4 +- ...viceEndpointPoliciesUpdateTagsSamples.java | 12 +- ...olicyDefinitionsCreateOrUpdateSamples.java | 11 +- ...ndpointPolicyDefinitionsDeleteSamples.java | 10 +- ...ceEndpointPolicyDefinitionsGetSamples.java | 10 +- ...DefinitionsListByResourceGroupSamples.java | 10 +- .../ServiceTagInformationListSamples.java | 30 +- .../generated/ServiceTagsListSamples.java | 10 +- .../StaticMembersCreateOrUpdateSamples.java | 17 +- .../generated/StaticMembersDeleteSamples.java | 11 +- .../generated/StaticMembersGetSamples.java | 12 +- .../generated/StaticMembersListSamples.java | 10 +- .../SubnetsCreateOrUpdateSamples.java | 57 +- .../generated/SubnetsDeleteSamples.java | 10 +- .../network/generated/SubnetsGetSamples.java | 36 +- .../network/generated/SubnetsListSamples.java | 10 +- .../SubnetsPrepareNetworkPoliciesSamples.java | 14 +- ...ubnetsUnprepareNetworkPoliciesSamples.java | 13 +- ...nagerConnectionsCreateOrUpdateSamples.java | 8 +- ...etworkManagerConnectionsDeleteSamples.java | 8 +- ...onNetworkManagerConnectionsGetSamples.java | 8 +- ...nNetworkManagerConnectionsListSamples.java | 10 +- .../network/generated/UsagesListSamples.java | 6 +- .../generated/VipSwapCreateSamples.java | 13 +- .../network/generated/VipSwapGetSamples.java | 10 +- .../network/generated/VipSwapListSamples.java | 10 +- ...alApplianceSitesCreateOrUpdateSamples.java | 17 +- .../VirtualApplianceSitesDeleteSamples.java | 10 +- .../VirtualApplianceSitesGetSamples.java | 10 +- .../VirtualApplianceSitesListSamples.java | 10 +- .../VirtualApplianceSkusGetSamples.java | 11 +- .../VirtualApplianceSkusListSamples.java | 3 +- ...ubBgpConnectionsCreateOrUpdateSamples.java | 14 +- ...VirtualHubBgpConnectionsDeleteSamples.java | 11 +- .../VirtualHubBgpConnectionsGetSamples.java | 11 +- ...onnectionsListAdvertisedRoutesSamples.java | 10 +- ...gpConnectionsListLearnedRoutesSamples.java | 10 +- .../VirtualHubBgpConnectionsListSamples.java | 11 +- ...bIpConfigurationCreateOrUpdateSamples.java | 17 +- ...irtualHubIpConfigurationDeleteSamples.java | 10 +- .../VirtualHubIpConfigurationGetSamples.java | 11 +- .../VirtualHubIpConfigurationListSamples.java | 11 +- ...HubRouteTableV2SCreateOrUpdateSamples.java | 32 +- .../VirtualHubRouteTableV2SDeleteSamples.java | 11 +- .../VirtualHubRouteTableV2SGetSamples.java | 11 +- .../VirtualHubRouteTableV2SListSamples.java | 11 +- .../VirtualHubsCreateOrUpdateSamples.java | 21 +- .../generated/VirtualHubsDeleteSamples.java | 10 +- .../VirtualHubsGetByResourceGroupSamples.java | 10 +- ...bsGetEffectiveVirtualHubRoutesSamples.java | 36 +- .../VirtualHubsGetInboundRoutesSamples.java | 13 +- .../VirtualHubsGetOutboundRoutesSamples.java | 13 +- ...VirtualHubsListByResourceGroupSamples.java | 11 +- .../generated/VirtualHubsListSamples.java | 3 +- .../VirtualHubsUpdateTagsSamples.java | 13 +- ...tewayConnectionsCreateOrUpdateSamples.java | 44 +- ...etworkGatewayConnectionsDeleteSamples.java | 10 +- ...yConnectionsGetByResourceGroupSamples.java | 8 +- ...orkGatewayConnectionsGetIkeSasSamples.java | 10 +- ...GatewayConnectionsGetSharedKeySamples.java | 10 +- ...ConnectionsListByResourceGroupSamples.java | 10 +- ...ewayConnectionsResetConnectionSamples.java | 10 +- ...tewayConnectionsResetSharedKeySamples.java | 11 +- ...GatewayConnectionsSetSharedKeySamples.java | 11 +- ...yConnectionsStartPacketCaptureSamples.java | 18 +- ...ayConnectionsStopPacketCaptureSamples.java | 8 +- ...rkGatewayConnectionsUpdateTagsSamples.java | 11 +- ...kGatewayNatRulesCreateOrUpdateSamples.java | 11 +- ...alNetworkGatewayNatRulesDeleteSamples.java | 10 +- ...rtualNetworkGatewayNatRulesGetSamples.java | 10 +- ...lesListByVirtualNetworkGatewaySamples.java | 10 +- ...lNetworkGatewaysCreateOrUpdateSamples.java | 68 ++- .../VirtualNetworkGatewaysDeleteSamples.java | 11 +- ...alNetworkGatewayVpnConnectionsSamples.java | 8 +- ...workGatewaysGenerateVpnProfileSamples.java | 10 +- ...tewaysGeneratevpnclientpackageSamples.java | 10 +- ...orkGatewaysGetAdvertisedRoutesSamples.java | 10 +- ...etworkGatewaysGetBgpPeerStatusSamples.java | 10 +- ...workGatewaysGetByResourceGroupSamples.java | 20 +- ...etworkGatewaysGetLearnedRoutesSamples.java | 10 +- ...atewaysGetVpnProfilePackageUrlSamples.java | 10 +- ...ysGetVpnclientConnectionHealthSamples.java | 8 +- ...aysGetVpnclientIpsecParametersSamples.java | 10 +- ...orkGatewaysListByResourceGroupSamples.java | 11 +- ...NetworkGatewaysListConnectionsSamples.java | 10 +- .../VirtualNetworkGatewaysResetSamples.java | 11 +- ...atewaysResetVpnClientSharedKeySamples.java | 10 +- ...aysSetVpnclientIpsecParametersSamples.java | 24 +- ...workGatewaysStartPacketCaptureSamples.java | 22 +- ...tworkGatewaysStopPacketCaptureSamples.java | 12 +- ...orkGatewaysSupportedVpnDevicesSamples.java | 10 +- ...rtualNetworkGatewaysUpdateTagsSamples.java | 11 +- ...ysVpnDeviceConfigurationScriptSamples.java | 14 +- ...lNetworkPeeringsCreateOrUpdateSamples.java | 56 +- .../VirtualNetworkPeeringsDeleteSamples.java | 11 +- .../VirtualNetworkPeeringsGetSamples.java | 20 +- .../VirtualNetworkPeeringsListSamples.java | 21 +- ...rtualNetworkTapsCreateOrUpdateSamples.java | 12 +- .../VirtualNetworkTapsDeleteSamples.java | 10 +- ...lNetworkTapsGetByResourceGroupSamples.java | 10 +- ...NetworkTapsListByResourceGroupSamples.java | 10 +- .../VirtualNetworkTapsListSamples.java | 3 +- .../VirtualNetworkTapsUpdateTagsSamples.java | 12 +- ...orksCheckIpAddressAvailabilitySamples.java | 10 +- .../VirtualNetworksCreateOrUpdateSamples.java | 147 +++-- .../VirtualNetworksDeleteSamples.java | 10 +- ...tualNetworksGetByResourceGroupSamples.java | 30 +- ...ualNetworksListByResourceGroupSamples.java | 10 +- ...tworksListDdosProtectionStatusSamples.java | 10 +- .../generated/VirtualNetworksListSamples.java | 3 +- .../VirtualNetworksListUsageSamples.java | 10 +- .../VirtualNetworksUpdateTagsSamples.java | 11 +- ...alRouterPeeringsCreateOrUpdateSamples.java | 13 +- .../VirtualRouterPeeringsDeleteSamples.java | 11 +- .../VirtualRouterPeeringsGetSamples.java | 10 +- .../VirtualRouterPeeringsListSamples.java | 10 +- .../VirtualRoutersCreateOrUpdateSamples.java | 13 +- .../VirtualRoutersDeleteSamples.java | 10 +- ...rtualRoutersGetByResourceGroupSamples.java | 10 +- ...tualRoutersListByResourceGroupSamples.java | 10 +- .../generated/VirtualRoutersListSamples.java | 3 +- .../VirtualWansCreateOrUpdateSamples.java | 17 +- .../generated/VirtualWansDeleteSamples.java | 10 +- .../VirtualWansGetByResourceGroupSamples.java | 10 +- ...VirtualWansListByResourceGroupSamples.java | 11 +- .../generated/VirtualWansListSamples.java | 3 +- .../VirtualWansUpdateTagsSamples.java | 13 +- .../VpnConnectionsCreateOrUpdateSamples.java | 11 +- .../VpnConnectionsDeleteSamples.java | 10 +- .../generated/VpnConnectionsGetSamples.java | 10 +- ...VpnConnectionsListByVpnGatewaySamples.java | 10 +- ...nConnectionsStartPacketCaptureSamples.java | 26 +- ...pnConnectionsStopPacketCaptureSamples.java | 18 +- .../VpnGatewaysCreateOrUpdateSamples.java | 25 +- .../generated/VpnGatewaysDeleteSamples.java | 10 +- .../VpnGatewaysGetByResourceGroupSamples.java | 10 +- ...VpnGatewaysListByResourceGroupSamples.java | 11 +- .../generated/VpnGatewaysListSamples.java | 3 +- .../generated/VpnGatewaysResetSamples.java | 10 +- .../VpnGatewaysStartPacketCaptureSamples.java | 23 +- .../VpnGatewaysStopPacketCaptureSamples.java | 13 +- .../VpnGatewaysUpdateTagsSamples.java | 11 +- .../VpnLinkConnectionsGetIkeSasSamples.java | 10 +- ...ConnectionsListByVpnConnectionSamples.java | 11 +- ...LinkConnectionsResetConnectionSamples.java | 11 +- ...nsAssociatedWithVirtualWanListSamples.java | 10 +- ...erConfigurationsCreateOrUpdateSamples.java | 51 +- .../VpnServerConfigurationsDeleteSamples.java | 11 +- ...nfigurationsGetByResourceGroupSamples.java | 11 +- ...figurationsListByResourceGroupSamples.java | 10 +- .../VpnServerConfigurationsListSamples.java | 4 +- ...ServerConfigurationsUpdateTagsSamples.java | 14 +- .../VpnSiteLinkConnectionsGetSamples.java | 10 +- .../generated/VpnSiteLinksGetSamples.java | 10 +- .../VpnSiteLinksListByVpnSiteSamples.java | 10 +- .../VpnSitesConfigurationDownloadSamples.java | 13 +- .../VpnSitesCreateOrUpdateSamples.java | 16 +- .../generated/VpnSitesDeleteSamples.java | 10 +- .../VpnSitesGetByResourceGroupSamples.java | 10 +- .../VpnSitesListByResourceGroupSamples.java | 11 +- .../generated/VpnSitesListSamples.java | 3 +- .../generated/VpnSitesUpdateTagsSamples.java | 13 +- ...FirewallPoliciesCreateOrUpdateSamples.java | 186 +++--- ...licationFirewallPoliciesDeleteSamples.java | 10 +- ...wallPoliciesGetByResourceGroupSamples.java | 8 +- ...allPoliciesListByResourceGroupSamples.java | 10 +- ...pplicationFirewallPoliciesListSamples.java | 8 +- .../generated/WebCategoriesGetSamples.java | 10 +- .../generated/WebCategoriesListSamples.java | 3 +- 1015 files changed, 17117 insertions(+), 9278 deletions(-) create mode 100644 sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyDeploymentsClient.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyDraftsClient.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyRuleCollectionGroupDraftsClient.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyDraftInner.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyDraftProperties.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupDraftInner.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupDraftProperties.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceInstanceIdsInner.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyDeploymentsClientImpl.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyDraftsClientImpl.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyRuleCollectionGroupDraftsClientImpl.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewaySkuFamily.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointLocationDetails.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HeaderValueMatcher.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InboundSecurityRuleType.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkVirtualAppliancePropertiesFormatNetworkProfile.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NicTypeInRequest.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NicTypeInResponse.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureSettings.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SharingScope.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceIpConfiguration.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceIpConfigurationProperties.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceNetworkInterfaceConfiguration.java create mode 100644 sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceNetworkInterfaceConfigurationProperties.java create mode 100644 sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyDeploymentsDeploySamples.java create mode 100644 sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyDraftsCreateOrUpdateSamples.java create mode 100644 sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyDraftsDeleteSamples.java create mode 100644 sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyDraftsGetSamples.java create mode 100644 sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupDraftsCreateOrUpdateSamples.java create mode 100644 sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupDraftsDeleteSamples.java create mode 100644 sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupDraftsGetSamples.java create mode 100644 sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesRestartSamples.java diff --git a/eng/code-quality-reports/src/main/resources/revapi/revapi.json b/eng/code-quality-reports/src/main/resources/revapi/revapi.json index 0f1f2b03f40ee..a20db150ac9b9 100644 --- a/eng/code-quality-reports/src/main/resources/revapi/revapi.json +++ b/eng/code-quality-reports/src/main/resources/revapi/revapi.json @@ -489,6 +489,12 @@ "old": ".*? com\\.azure\\.communication\\.jobrouter\\.models.*", "new": ".*? com\\.azure\\.communication\\.jobrouter\\.models.*", "justification": "Removing Jackson annotations from Job Router in transition to stream-style." + }, + { + "regex": true, + "code": "java\\.annotation\\.(attributeRemoved|attributeAdded)", + "old": ".*? com\\.azure\\.resourcemanager\\.network\\.models.*", + "justification": "Jackson annotation changed." } ] } diff --git a/sdk/resourcemanager/api-specs.json b/sdk/resourcemanager/api-specs.json index 6eabf747c784c..b6476b823fd72 100644 --- a/sdk/resourcemanager/api-specs.json +++ b/sdk/resourcemanager/api-specs.json @@ -181,7 +181,7 @@ "dir": "azure-resourcemanager-network", "source": "specification/network/resource-manager/readme.md", "package": "com.azure.resourcemanager.network", - "args": "--tag=package-2023-09 --add-inner=ApplicationGatewayIpConfiguration,ApplicationGatewayPathRule,ApplicationGatewayProbe,ApplicationGatewayRedirectConfiguration,ApplicationGatewayRequestRoutingRule,ApplicationGatewaySslCertificate,ApplicationGatewayUrlPathMap,ApplicationGatewayAuthenticationCertificate,VirtualNetworkGatewayIpConfiguration,ConnectionMonitor,PacketCapture,ApplicationGateway,ApplicationGatewayListener", + "args": "--tag=package-2023-11 --add-inner=ApplicationGatewayIpConfiguration,ApplicationGatewayPathRule,ApplicationGatewayProbe,ApplicationGatewayRedirectConfiguration,ApplicationGatewayRequestRoutingRule,ApplicationGatewaySslCertificate,ApplicationGatewayUrlPathMap,ApplicationGatewayAuthenticationCertificate,VirtualNetworkGatewayIpConfiguration,ConnectionMonitor,PacketCapture,ApplicationGateway,ApplicationGatewayListener", "note": "Run DeprecateApplicationGatewaySku to deprecate v1 sku/tier in ApplicationGatewaySku." }, "network-hybrid": { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/CHANGELOG.md b/sdk/resourcemanager/azure-resourcemanager-network/CHANGELOG.md index af1691c01214a..befe901cfd62d 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/CHANGELOG.md +++ b/sdk/resourcemanager/azure-resourcemanager-network/CHANGELOG.md @@ -2,13 +2,11 @@ ## 2.40.0-beta.1 (Unreleased) -### Features Added - -### Breaking Changes +### Other Changes -### Bugs Fixed +#### Dependency Updates -### Other Changes +- Updated `api-version` to `2023-11-01`. ## 2.39.0 (2024-05-24) diff --git a/sdk/resourcemanager/azure-resourcemanager-network/assets.json b/sdk/resourcemanager/azure-resourcemanager-network/assets.json index daf9a4133b214..ede455096d5fa 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/assets.json +++ b/sdk/resourcemanager/azure-resourcemanager-network/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "java", "TagPrefix": "java/resourcemanager/azure-resourcemanager-network", - "Tag": "java/resourcemanager/azure-resourcemanager-network_03b4909e5e" + "Tag": "java/resourcemanager/azure-resourcemanager-network_7bf3ec1b64" } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCircuitsClient.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCircuitsClient.java index 923f6041f8693..74549c3dbf0c8 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCircuitsClient.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCircuitsClient.java @@ -22,10 +22,11 @@ import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in ExpressRouteCircuitsClient. */ @@ -33,7 +34,7 @@ public interface ExpressRouteCircuitsClient extends InnerSupportsGet, 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. @@ -46,7 +47,7 @@ public interface ExpressRouteCircuitsClient extends InnerSupportsGet> getByResourceGroupWithResponseAsync(Str /** * 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. @@ -152,7 +153,7 @@ Mono> getByResourceGroupWithResponseAsync(Str /** * 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. @@ -167,7 +168,7 @@ Response getByResourceGroupWithResponse(String resourc /** * 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. @@ -180,7 +181,7 @@ 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 parameters Parameters supplied to the create or update express route circuit operation. @@ -195,7 +196,7 @@ 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 parameters Parameters supplied to the create or update express route circuit operation. @@ -210,7 +211,7 @@ 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 parameters Parameters supplied to the create or update express route circuit operation. @@ -225,7 +226,7 @@ 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 parameters Parameters supplied to the create or update express route circuit operation. @@ -241,7 +242,7 @@ 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 parameters Parameters supplied to the create or update express route circuit operation. @@ -256,7 +257,7 @@ 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 parameters Parameters supplied to the create or update express route circuit operation. @@ -271,7 +272,7 @@ 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 parameters Parameters supplied to the create or update express route circuit operation. @@ -287,7 +288,7 @@ 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 parameters Parameters supplied to update express route circuit tags. @@ -302,7 +303,7 @@ 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 parameters Parameters supplied to update express route circuit tags. @@ -316,7 +317,7 @@ 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 parameters Parameters supplied to update express route circuit tags. @@ -332,7 +333,7 @@ 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 parameters Parameters supplied to update express route circuit tags. @@ -346,7 +347,7 @@ Response updateTagsWithResponse(String resourceGroupNa /** * 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 peeringName The name of the peering. @@ -363,7 +364,7 @@ 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 peeringName The name of the peering. @@ -380,7 +381,7 @@ 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 peeringName The name of the peering. @@ -397,7 +398,7 @@ 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 peeringName The name of the peering. @@ -416,7 +417,7 @@ 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 peeringName The name of the peering. @@ -433,7 +434,7 @@ 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 peeringName The name of the peering. @@ -449,7 +450,7 @@ 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 peeringName The name of the peering. @@ -466,7 +467,7 @@ 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 peeringName The name of the peering. @@ -483,7 +484,7 @@ 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 peeringName The name of the peering. @@ -500,7 +501,7 @@ 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 peeringName The name of the peering. @@ -517,7 +518,7 @@ 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 peeringName The name of the peering. @@ -536,7 +537,7 @@ 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 peeringName The name of the peering. @@ -553,7 +554,7 @@ 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 peeringName The name of the peering. @@ -569,7 +570,7 @@ 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 peeringName The name of the peering. @@ -586,7 +587,7 @@ 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 peeringName The name of the peering. @@ -603,7 +604,7 @@ 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 peeringName The name of the peering. @@ -621,7 +622,7 @@ 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 peeringName The name of the peering. @@ -639,7 +640,7 @@ 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 peeringName The name of the peering. @@ -658,7 +659,7 @@ 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 peeringName The name of the peering. @@ -675,7 +676,7 @@ 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 peeringName The name of the peering. @@ -692,7 +693,7 @@ 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 peeringName The name of the peering. @@ -710,7 +711,7 @@ ExpressRouteCircuitsRoutesTableSummaryListResultInner listRoutesTableSummary(Str /** * 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. @@ -725,7 +726,7 @@ Mono> getStatsWithResponseAsync(String r /** * 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. @@ -738,7 +739,7 @@ Mono> getStatsWithResponseAsync(String r /** * 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. @@ -753,7 +754,7 @@ Response getStatsWithResponse(String resourceGrou /** * 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. @@ -766,7 +767,7 @@ Response getStatsWithResponse(String resourceGrou /** * 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 peeringName The name of the peering. @@ -782,7 +783,7 @@ 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 peeringName The name of the peering. @@ -797,7 +798,7 @@ 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 peeringName The name of the peering. @@ -813,7 +814,7 @@ 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 peeringName The name of the peering. @@ -827,7 +828,7 @@ Response getPeeringStatsWithResponse(String resou /** * 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. @@ -839,7 +840,7 @@ Response getPeeringStatsWithResponse(String resou /** * 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. @@ -851,7 +852,7 @@ Response getPeeringStatsWithResponse(String resou /** * 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. @@ -864,7 +865,7 @@ Response getPeeringStatsWithResponse(String resou /** * 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}. @@ -874,7 +875,7 @@ Response getPeeringStatsWithResponse(String resou /** * 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}. @@ -884,7 +885,7 @@ Response getPeeringStatsWithResponse(String resou /** * 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. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCrossConnectionPeeringsClient.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCrossConnectionPeeringsClient.java index 96f8e04022f36..63784993c04bb 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCrossConnectionPeeringsClient.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteCrossConnectionPeeringsClient.java @@ -14,18 +14,18 @@ import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.models.ExpressRouteCrossConnectionPeeringInner; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** - * An instance of this class provides access to all the operations defined in - * ExpressRouteCrossConnectionPeeringsClient. + * An instance of this class provides access to all the operations defined in ExpressRouteCrossConnectionPeeringsClient. */ 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -38,7 +38,7 @@ 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -51,7 +51,7 @@ 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 context The context to associate with this operation. @@ -66,7 +66,7 @@ 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 peeringName The name of the peering. @@ -81,7 +81,7 @@ 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 peeringName The name of the peering. @@ -96,7 +96,7 @@ 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 peeringName The name of the peering. @@ -111,7 +111,7 @@ 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 peeringName The name of the peering. @@ -127,7 +127,7 @@ 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 peeringName The name of the peering. @@ -141,7 +141,7 @@ 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 peeringName The name of the peering. @@ -154,7 +154,7 @@ 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 peeringName The name of the peering. @@ -168,7 +168,7 @@ 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 peeringName The name of the peering. @@ -184,7 +184,7 @@ 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 peeringName The name of the peering. @@ -199,7 +199,7 @@ 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 peeringName The name of the peering. @@ -215,7 +215,7 @@ 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 peeringName The name of the peering. @@ -230,7 +230,7 @@ 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 peeringName The name of the peering. @@ -248,7 +248,7 @@ 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 peeringName The name of the peering. @@ -266,7 +266,7 @@ 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 peeringName The name of the peering. @@ -284,7 +284,7 @@ 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 peeringName The name of the peering. @@ -303,7 +303,7 @@ 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 peeringName The name of the peering. @@ -320,7 +320,7 @@ 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 peeringName The name of the peering. @@ -337,7 +337,7 @@ 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 peeringName The name of the peering. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyDeploymentsClient.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyDeploymentsClient.java new file mode 100644 index 0000000000000..a37836f5f9adb --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyDeploymentsClient.java @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.network.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +import java.nio.ByteBuffer; + +/** + * An instance of this class provides access to all the operations defined in FirewallPolicyDeploymentsClient. + */ +public interface FirewallPolicyDeploymentsClient { + /** + * Deploys the firewall policy draft and child rule collection group drafts. + * + * @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>> deployWithResponseAsync(String resourceGroupName, String firewallPolicyName); + + /** + * Deploys the firewall policy draft and child rule collection group drafts. + * + * @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> beginDeployAsync(String resourceGroupName, String firewallPolicyName); + + /** + * Deploys the firewall policy draft and child rule collection group drafts. + * + * @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> beginDeploy(String resourceGroupName, String firewallPolicyName); + + /** + * Deploys the firewall policy draft and child rule collection group drafts. + * + * @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> beginDeploy(String resourceGroupName, String firewallPolicyName, + Context context); + + /** + * Deploys the firewall policy draft and child rule collection group drafts. + * + * @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 deployAsync(String resourceGroupName, String firewallPolicyName); + + /** + * Deploys the firewall policy draft and child rule collection group drafts. + * + * @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 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 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 deploy(String resourceGroupName, String firewallPolicyName, Context context); +} diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyDraftsClient.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyDraftsClient.java new file mode 100644 index 0000000000000..f4070a7d6f82c --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyDraftsClient.java @@ -0,0 +1,185 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.network.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.network.fluent.models.FirewallPolicyDraftInner; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in FirewallPolicyDraftsClient. + */ +public interface FirewallPolicyDraftsClient extends InnerSupportsDelete { + /** + * Create or update a draft Firewall Policy. + * + * @param resourceGroupName The name of the resource group. + * @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}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String firewallPolicyName, FirewallPolicyDraftInner parameters); + + /** + * Create or update a draft Firewall Policy. + * + * @param resourceGroupName The name of the resource group. + * @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}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono createOrUpdateAsync(String resourceGroupName, String firewallPolicyName, + FirewallPolicyDraftInner parameters); + + /** + * Create or update a draft Firewall Policy. + * + * @param resourceGroupName The name of the resource group. + * @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}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response createOrUpdateWithResponse(String resourceGroupName, String firewallPolicyName, + FirewallPolicyDraftInner parameters, Context context); + + /** + * Create or update a draft Firewall Policy. + * + * @param resourceGroupName The name of the resource group. + * @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) + FirewallPolicyDraftInner createOrUpdate(String resourceGroupName, String firewallPolicyName, + FirewallPolicyDraftInner parameters); + + /** + * Delete a draft 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); + + /** + * Delete a draft 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); + + /** + * Delete a draft 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 Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response deleteWithResponse(String resourceGroupName, String firewallPolicyName, Context context); + + /** + * Delete a draft 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); + + /** + * Get a draft 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 draft Firewall Policy along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String resourceGroupName, String firewallPolicyName); + + /** + * Get a draft 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 draft Firewall Policy on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String firewallPolicyName); + + /** + * Get a draft 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 a draft Firewall Policy along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String firewallPolicyName, + Context context); + + /** + * Get a draft 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 draft Firewall Policy. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + FirewallPolicyDraftInner get(String resourceGroupName, String firewallPolicyName); +} diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyRuleCollectionGroupDraftsClient.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyRuleCollectionGroupDraftsClient.java new file mode 100644 index 0000000000000..d8d7e30b24683 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/FirewallPolicyRuleCollectionGroupDraftsClient.java @@ -0,0 +1,205 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.network.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.network.fluent.models.FirewallPolicyRuleCollectionGroupDraftInner; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in + * FirewallPolicyRuleCollectionGroupDraftsClient. + */ +public interface FirewallPolicyRuleCollectionGroupDraftsClient { + /** + * Delete Rule Collection Group Draft. + * + * @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 com.azure.core.management.exception.ManagementException thrown 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, + String ruleCollectionGroupName); + + /** + * Delete Rule Collection Group Draft. + * + * @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 com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException 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, String ruleCollectionGroupName); + + /** + * Delete Rule Collection Group Draft. + * + * @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 com.azure.core.management.exception.ManagementException thrown 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}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response deleteWithResponse(String resourceGroupName, String firewallPolicyName, + String ruleCollectionGroupName, Context context); + + /** + * Delete Rule Collection Group Draft. + * + * @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 com.azure.core.management.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, String ruleCollectionGroupName); + + /** + * Create or Update Rule Collection Group Draft. + * + * @param resourceGroupName The name of the resource group. + * @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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.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}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> createOrUpdateWithResponseAsync( + String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName, + FirewallPolicyRuleCollectionGroupDraftInner parameters); + + /** + * Create or Update Rule Collection Group Draft. + * + * @param resourceGroupName The name of the resource group. + * @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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.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}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono createOrUpdateAsync(String resourceGroupName, + String firewallPolicyName, String ruleCollectionGroupName, + FirewallPolicyRuleCollectionGroupDraftInner parameters); + + /** + * Create or Update Rule Collection Group Draft. + * + * @param resourceGroupName The name of the resource group. + * @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 context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.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}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response createOrUpdateWithResponse(String resourceGroupName, + String firewallPolicyName, String ruleCollectionGroupName, + FirewallPolicyRuleCollectionGroupDraftInner parameters, Context context); + + /** + * Create or Update Rule Collection Group Draft. + * + * @param resourceGroupName The name of the resource group. + * @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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.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) + FirewallPolicyRuleCollectionGroupDraftInner createOrUpdate(String resourceGroupName, String firewallPolicyName, + String ruleCollectionGroupName, FirewallPolicyRuleCollectionGroupDraftInner parameters); + + /** + * Get Rule Collection Group Draft. + * + * @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 com.azure.core.management.exception.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}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String resourceGroupName, + String firewallPolicyName, String ruleCollectionGroupName); + + /** + * Get Rule Collection Group Draft. + * + * @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 com.azure.core.management.exception.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}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String firewallPolicyName, + String ruleCollectionGroupName); + + /** + * Get Rule Collection Group Draft. + * + * @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 com.azure.core.management.exception.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}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, + String firewallPolicyName, String ruleCollectionGroupName, Context context); + + /** + * Get Rule Collection Group Draft. + * + * @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 com.azure.core.management.exception.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); +} diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkManagementClient.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkManagementClient.java index 55a28c5763778..130c70d25eb5c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkManagementClient.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkManagementClient.java @@ -342,6 +342,27 @@ public interface NetworkManagementClient { */ FirewallPolicyIdpsSignaturesFilterValuesClient getFirewallPolicyIdpsSignaturesFilterValues(); + /** + * Gets the FirewallPolicyDraftsClient object to access its operations. + * + * @return the FirewallPolicyDraftsClient object. + */ + FirewallPolicyDraftsClient getFirewallPolicyDrafts(); + + /** + * Gets the FirewallPolicyDeploymentsClient object to access its operations. + * + * @return the FirewallPolicyDeploymentsClient object. + */ + FirewallPolicyDeploymentsClient getFirewallPolicyDeployments(); + + /** + * Gets the FirewallPolicyRuleCollectionGroupDraftsClient object to access its operations. + * + * @return the FirewallPolicyRuleCollectionGroupDraftsClient object. + */ + FirewallPolicyRuleCollectionGroupDraftsClient getFirewallPolicyRuleCollectionGroupDrafts(); + /** * Gets the IpAllocationsClient object to access its operations. * diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkVirtualAppliancesClient.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkVirtualAppliancesClient.java index 096cf6610b19d..24da696f701f3 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkVirtualAppliancesClient.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkVirtualAppliancesClient.java @@ -14,6 +14,7 @@ import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.models.NetworkVirtualApplianceInner; +import com.azure.resourcemanager.network.fluent.models.NetworkVirtualApplianceInstanceIdsInner; import com.azure.resourcemanager.network.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; @@ -348,6 +349,152 @@ NetworkVirtualApplianceInner createOrUpdate(String resourceGroupName, String net NetworkVirtualApplianceInner createOrUpdate(String resourceGroupName, String networkVirtualApplianceName, NetworkVirtualApplianceInner parameters, Context context); + /** + * Restarts one or more VMs belonging to the specified Network Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. + * @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}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> restartWithResponseAsync(String resourceGroupName, + String networkVirtualApplianceName, NetworkVirtualApplianceInstanceIdsInner networkVirtualApplianceInstanceIds); + + /** + * Restarts one or more VMs belonging to the specified Network Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. + * @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. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, NetworkVirtualApplianceInstanceIdsInner> + beginRestartAsync(String resourceGroupName, String networkVirtualApplianceName, + NetworkVirtualApplianceInstanceIdsInner networkVirtualApplianceInstanceIds); + + /** + * Restarts one or more VMs belonging to 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 com.azure.core.management.exception.ManagementException thrown if the request is 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. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, NetworkVirtualApplianceInstanceIdsInner> + beginRestartAsync(String resourceGroupName, String networkVirtualApplianceName); + + /** + * Restarts one or more VMs belonging to 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 com.azure.core.management.exception.ManagementException thrown if the request is 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. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, NetworkVirtualApplianceInstanceIdsInner> + beginRestart(String resourceGroupName, String networkVirtualApplianceName); + + /** + * Restarts one or more VMs belonging to the specified Network Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. + * @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. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is 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. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, NetworkVirtualApplianceInstanceIdsInner> + beginRestart(String resourceGroupName, String networkVirtualApplianceName, + NetworkVirtualApplianceInstanceIdsInner networkVirtualApplianceInstanceIds, Context context); + + /** + * Restarts one or more VMs belonging to the specified Network Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. + * @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}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono restartAsync(String resourceGroupName, + String networkVirtualApplianceName, NetworkVirtualApplianceInstanceIdsInner networkVirtualApplianceInstanceIds); + + /** + * Restarts one or more VMs belonging to 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 com.azure.core.management.exception.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}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono restartAsync(String resourceGroupName, + String networkVirtualApplianceName); + + /** + * Restarts one or more VMs belonging to 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 com.azure.core.management.exception.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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + NetworkVirtualApplianceInstanceIdsInner restart(String resourceGroupName, String networkVirtualApplianceName); + + /** + * Restarts one or more VMs belonging to the specified Network Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. + * @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. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + NetworkVirtualApplianceInstanceIdsInner restart(String resourceGroupName, String networkVirtualApplianceName, + NetworkVirtualApplianceInstanceIdsInner networkVirtualApplianceInstanceIds, Context context); + /** * Lists all Network Virtual Appliances in a resource group. * diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ActiveConnectivityConfigurationsListResultInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ActiveConnectivityConfigurationsListResultInner.java index 64e2709741815..cea7ec6f32868 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ActiveConnectivityConfigurationsListResultInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ActiveConnectivityConfigurationsListResultInner.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.azure.resourcemanager.network.models.ActiveConnectivityConfiguration; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -22,8 +23,7 @@ public final class ActiveConnectivityConfigurationsListResultInner { private List value; /* - * 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. + * 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. */ @JsonProperty(value = "skipToken") private String skipToken; @@ -36,7 +36,7 @@ public ActiveConnectivityConfigurationsListResultInner() { /** * Get the value property: Gets a page of active connectivity configurations. - * + * * @return the value value. */ public List value() { @@ -45,7 +45,7 @@ public List value() { /** * Set the value property: Gets a page of active connectivity configurations. - * + * * @param value the value value to set. * @return the ActiveConnectivityConfigurationsListResultInner object itself. */ @@ -57,7 +57,7 @@ public ActiveConnectivityConfigurationsListResultInner withValue(List value; /* - * 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. + * 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. */ @JsonProperty(value = "skipToken") private String skipToken; @@ -36,7 +36,7 @@ public ActiveSecurityAdminRulesListResultInner() { /** * Get the value property: Gets a page of active security admin rules. - * + * * @return the value value. */ public List value() { @@ -45,7 +45,7 @@ public List 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. */ @@ -57,7 +57,7 @@ public ActiveSecurityAdminRulesListResultInner withValue(List sources() { @@ -143,7 +143,7 @@ public List sources() { /** * Set the sources property: The CIDR or source IP ranges. - * + * * @param sources the sources value to set. * @return the AdminPropertiesFormat object itself. */ @@ -154,7 +154,7 @@ public AdminPropertiesFormat withSources(List sources) { /** * Get the destinations property: The destination address prefixes. CIDR or destination IP ranges. - * + * * @return the destinations value. */ public List destinations() { @@ -163,7 +163,7 @@ public List destinations() { /** * Set the destinations property: The destination address prefixes. CIDR or destination IP ranges. - * + * * @param destinations the destinations value to set. * @return the AdminPropertiesFormat object itself. */ @@ -174,7 +174,7 @@ public AdminPropertiesFormat withDestinations(List destinatio /** * Get the sourcePortRanges property: The source port ranges. - * + * * @return the sourcePortRanges value. */ public List sourcePortRanges() { @@ -183,7 +183,7 @@ public List sourcePortRanges() { /** * Set the sourcePortRanges property: The source port ranges. - * + * * @param sourcePortRanges the sourcePortRanges value to set. * @return the AdminPropertiesFormat object itself. */ @@ -194,7 +194,7 @@ public AdminPropertiesFormat withSourcePortRanges(List sourcePortRanges) /** * Get the destinationPortRanges property: The destination port ranges. - * + * * @return the destinationPortRanges value. */ public List destinationPortRanges() { @@ -203,7 +203,7 @@ public List destinationPortRanges() { /** * Set the destinationPortRanges property: The destination port ranges. - * + * * @param destinationPortRanges the destinationPortRanges value to set. * @return the AdminPropertiesFormat object itself. */ @@ -214,7 +214,7 @@ public AdminPropertiesFormat withDestinationPortRanges(List destinationP /** * Get the access property: Indicates the access allowed for this particular rule. - * + * * @return the access value. */ public SecurityConfigurationRuleAccess access() { @@ -223,7 +223,7 @@ public SecurityConfigurationRuleAccess access() { /** * Set the access property: Indicates the access allowed for this particular rule. - * + * * @param access the access value to set. * @return the AdminPropertiesFormat object itself. */ @@ -236,7 +236,7 @@ public AdminPropertiesFormat withAccess(SecurityConfigurationRuleAccess access) * 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 * rule. - * + * * @return the priority value. */ public int priority() { @@ -247,7 +247,7 @@ public int 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 AdminPropertiesFormat object itself. */ @@ -258,7 +258,7 @@ public AdminPropertiesFormat withPriority(int priority) { /** * Get the direction property: Indicates if the traffic matched against the rule in inbound or outbound. - * + * * @return the direction value. */ public SecurityConfigurationRuleDirection direction() { @@ -267,7 +267,7 @@ public SecurityConfigurationRuleDirection 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 AdminPropertiesFormat object itself. */ @@ -278,7 +278,7 @@ public AdminPropertiesFormat withDirection(SecurityConfigurationRuleDirection di /** * Get the provisioningState property: The provisioning state of the resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -287,7 +287,7 @@ public ProvisioningState provisioningState() { /** * Get the resourceGuid property: Unique identifier for this resource. - * + * * @return the resourceGuid value. */ public String resourceGuid() { @@ -296,13 +296,13 @@ public String resourceGuid() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (protocol() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property protocol in model AdminPropertiesFormat")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property protocol in model AdminPropertiesFormat")); } if (sources() != null) { sources().forEach(e -> e.validate()); @@ -311,12 +311,13 @@ public void validate() { destinations().forEach(e -> e.validate()); } if (access() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property access in model AdminPropertiesFormat")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property access in model AdminPropertiesFormat")); } if (direction() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property direction in model AdminPropertiesFormat")); + throw LOGGER.atError() + .log( + new IllegalArgumentException("Missing required property direction in model AdminPropertiesFormat")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AdminRuleCollectionPropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AdminRuleCollectionPropertiesFormat.java index ac95d4b17ef35..6d788fbdfa6b5 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AdminRuleCollectionPropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AdminRuleCollectionPropertiesFormat.java @@ -9,6 +9,7 @@ import com.azure.resourcemanager.network.models.NetworkManagerSecurityGroupItem; import com.azure.resourcemanager.network.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -48,7 +49,7 @@ public AdminRuleCollectionPropertiesFormat() { /** * Get the description property: A description of the admin rule collection. - * + * * @return the description value. */ public String description() { @@ -57,7 +58,7 @@ public String description() { /** * Set the description property: A description of the admin rule collection. - * + * * @param description the description value to set. * @return the AdminRuleCollectionPropertiesFormat object itself. */ @@ -68,7 +69,7 @@ public AdminRuleCollectionPropertiesFormat withDescription(String description) { /** * Get the appliesToGroups property: Groups for configuration. - * + * * @return the appliesToGroups value. */ public List appliesToGroups() { @@ -77,7 +78,7 @@ public List appliesToGroups() { /** * Set the appliesToGroups property: Groups for configuration. - * + * * @param appliesToGroups the appliesToGroups value to set. * @return the AdminRuleCollectionPropertiesFormat object itself. */ @@ -89,7 +90,7 @@ public List appliesToGroups() { /** * Get the provisioningState property: The provisioning state of the resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -98,7 +99,7 @@ public ProvisioningState provisioningState() { /** * Get the resourceGuid property: Unique identifier for this resource. - * + * * @return the resourceGuid value. */ public String resourceGuid() { @@ -107,13 +108,14 @@ public String resourceGuid() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (appliesToGroups() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property appliesToGroups in model AdminRuleCollectionPropertiesFormat")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property appliesToGroups in model AdminRuleCollectionPropertiesFormat")); } else { appliesToGroups().forEach(e -> e.validate()); } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendHttpSettingsPropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendHttpSettingsPropertiesFormat.java index 454fd3747a39c..86033e5437f2e 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendHttpSettingsPropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendHttpSettingsPropertiesFormat.java @@ -11,6 +11,7 @@ import com.azure.resourcemanager.network.models.ApplicationGatewayProtocol; import com.azure.resourcemanager.network.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -37,8 +38,7 @@ public final class ApplicationGatewayBackendHttpSettingsPropertiesFormat { private ApplicationGatewayCookieBasedAffinity cookieBasedAffinity; /* - * Request timeout in seconds. Application Gateway will fail the request if response is not received within - * RequestTimeout. Acceptable values are from 1 second to 86400 seconds. + * Request timeout in seconds. Application Gateway will fail the request if response is not received within RequestTimeout. Acceptable values are from 1 second to 86400 seconds. */ @JsonProperty(value = "requestTimeout") private Integer requestTimeout; @@ -92,8 +92,7 @@ public final class ApplicationGatewayBackendHttpSettingsPropertiesFormat { private Boolean probeEnabled; /* - * Path which should be used as a prefix for all HTTP requests. Null means no path will be prefixed. Default value - * is null. + * Path which should be used as a prefix for all HTTP requests. Null means no path will be prefixed. Default value is null. */ @JsonProperty(value = "path") private String path; @@ -112,7 +111,7 @@ public ApplicationGatewayBackendHttpSettingsPropertiesFormat() { /** * Get the port property: The destination port on the backend. - * + * * @return the port value. */ public Integer port() { @@ -121,7 +120,7 @@ public Integer port() { /** * Set the port property: The destination port on the backend. - * + * * @param port the port value to set. * @return the ApplicationGatewayBackendHttpSettingsPropertiesFormat object itself. */ @@ -132,7 +131,7 @@ public ApplicationGatewayBackendHttpSettingsPropertiesFormat withPort(Integer po /** * Get the protocol property: The protocol used to communicate with the backend. - * + * * @return the protocol value. */ public ApplicationGatewayProtocol protocol() { @@ -141,7 +140,7 @@ public ApplicationGatewayProtocol protocol() { /** * Set the protocol property: The protocol used to communicate with the backend. - * + * * @param protocol the protocol value to set. * @return the ApplicationGatewayBackendHttpSettingsPropertiesFormat object itself. */ @@ -152,7 +151,7 @@ public ApplicationGatewayBackendHttpSettingsPropertiesFormat withProtocol(Applic /** * Get the cookieBasedAffinity property: Cookie based affinity. - * + * * @return the cookieBasedAffinity value. */ public ApplicationGatewayCookieBasedAffinity cookieBasedAffinity() { @@ -161,7 +160,7 @@ public ApplicationGatewayCookieBasedAffinity cookieBasedAffinity() { /** * Set the cookieBasedAffinity property: Cookie based affinity. - * + * * @param cookieBasedAffinity the cookieBasedAffinity value to set. * @return the ApplicationGatewayBackendHttpSettingsPropertiesFormat object itself. */ @@ -174,7 +173,7 @@ public ApplicationGatewayCookieBasedAffinity cookieBasedAffinity() { /** * Get the requestTimeout property: Request timeout in seconds. Application Gateway will fail the request if * response is not received within RequestTimeout. Acceptable values are from 1 second to 86400 seconds. - * + * * @return the requestTimeout value. */ public Integer requestTimeout() { @@ -184,7 +183,7 @@ public Integer requestTimeout() { /** * Set the requestTimeout property: Request timeout in seconds. Application Gateway will fail the request if * response is not received within RequestTimeout. Acceptable values are from 1 second to 86400 seconds. - * + * * @param requestTimeout the requestTimeout value to set. * @return the ApplicationGatewayBackendHttpSettingsPropertiesFormat object itself. */ @@ -195,7 +194,7 @@ public ApplicationGatewayBackendHttpSettingsPropertiesFormat withRequestTimeout( /** * Get the probe property: Probe resource of an application gateway. - * + * * @return the probe value. */ public SubResource probe() { @@ -204,7 +203,7 @@ public SubResource probe() { /** * Set the probe property: Probe resource of an application gateway. - * + * * @param probe the probe value to set. * @return the ApplicationGatewayBackendHttpSettingsPropertiesFormat object itself. */ @@ -216,7 +215,7 @@ public ApplicationGatewayBackendHttpSettingsPropertiesFormat withProbe(SubResour /** * Get the authenticationCertificates property: Array of references to application gateway authentication * certificates. - * + * * @return the authenticationCertificates value. */ public List authenticationCertificates() { @@ -226,7 +225,7 @@ public List authenticationCertificates() { /** * Set the authenticationCertificates property: Array of references to application gateway authentication * certificates. - * + * * @param authenticationCertificates the authenticationCertificates value to set. * @return the ApplicationGatewayBackendHttpSettingsPropertiesFormat object itself. */ @@ -238,7 +237,7 @@ public List authenticationCertificates() { /** * Get the trustedRootCertificates property: Array of references to application gateway trusted root certificates. - * + * * @return the trustedRootCertificates value. */ public List trustedRootCertificates() { @@ -247,7 +246,7 @@ public List trustedRootCertificates() { /** * Set the trustedRootCertificates property: Array of references to application gateway trusted root certificates. - * + * * @param trustedRootCertificates the trustedRootCertificates value to set. * @return the ApplicationGatewayBackendHttpSettingsPropertiesFormat object itself. */ @@ -259,7 +258,7 @@ public List trustedRootCertificates() { /** * Get the connectionDraining property: Connection draining of the backend http settings resource. - * + * * @return the connectionDraining value. */ public ApplicationGatewayConnectionDraining connectionDraining() { @@ -268,7 +267,7 @@ public ApplicationGatewayConnectionDraining connectionDraining() { /** * Set the connectionDraining property: Connection draining of the backend http settings resource. - * + * * @param connectionDraining the connectionDraining value to set. * @return the ApplicationGatewayBackendHttpSettingsPropertiesFormat object itself. */ @@ -280,7 +279,7 @@ public ApplicationGatewayConnectionDraining connectionDraining() { /** * Get the hostname property: Host header to be sent to the backend servers. - * + * * @return the hostname value. */ public String hostname() { @@ -289,7 +288,7 @@ public String hostname() { /** * Set the hostname property: Host header to be sent to the backend servers. - * + * * @param hostname the hostname value to set. * @return the ApplicationGatewayBackendHttpSettingsPropertiesFormat object itself. */ @@ -301,7 +300,7 @@ public ApplicationGatewayBackendHttpSettingsPropertiesFormat withHostname(String /** * Get the pickHostnameFromBackendAddress property: Whether to pick host header should be picked from the host name * of the backend server. Default value is false. - * + * * @return the pickHostnameFromBackendAddress value. */ public Boolean pickHostnameFromBackendAddress() { @@ -311,7 +310,7 @@ public Boolean pickHostnameFromBackendAddress() { /** * Set the pickHostnameFromBackendAddress property: Whether to pick host header should be picked from the host name * of the backend server. Default value is false. - * + * * @param pickHostnameFromBackendAddress the pickHostnameFromBackendAddress value to set. * @return the ApplicationGatewayBackendHttpSettingsPropertiesFormat object itself. */ @@ -323,7 +322,7 @@ public Boolean pickHostnameFromBackendAddress() { /** * Get the affinityCookieName property: Cookie name to use for the affinity cookie. - * + * * @return the affinityCookieName value. */ public String affinityCookieName() { @@ -332,7 +331,7 @@ public String affinityCookieName() { /** * Set the affinityCookieName property: Cookie name to use for the affinity cookie. - * + * * @param affinityCookieName the affinityCookieName value to set. * @return the ApplicationGatewayBackendHttpSettingsPropertiesFormat object itself. */ @@ -343,7 +342,7 @@ public ApplicationGatewayBackendHttpSettingsPropertiesFormat withAffinityCookieN /** * Get the probeEnabled property: Whether the probe is enabled. Default value is false. - * + * * @return the probeEnabled value. */ public Boolean probeEnabled() { @@ -352,7 +351,7 @@ public Boolean probeEnabled() { /** * Set the probeEnabled property: Whether the probe is enabled. Default value is false. - * + * * @param probeEnabled the probeEnabled value to set. * @return the ApplicationGatewayBackendHttpSettingsPropertiesFormat object itself. */ @@ -364,7 +363,7 @@ public ApplicationGatewayBackendHttpSettingsPropertiesFormat withProbeEnabled(Bo /** * Get the path property: Path which should be used as a prefix for all HTTP requests. Null means no path will be * prefixed. Default value is null. - * + * * @return the path value. */ public String path() { @@ -374,7 +373,7 @@ public String path() { /** * Set the path property: Path which should be used as a prefix for all HTTP requests. Null means no path will be * prefixed. Default value is null. - * + * * @param path the path value to set. * @return the ApplicationGatewayBackendHttpSettingsPropertiesFormat object itself. */ @@ -385,7 +384,7 @@ public ApplicationGatewayBackendHttpSettingsPropertiesFormat withPath(String pat /** * Get the provisioningState property: The provisioning state of the backend HTTP settings resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -394,7 +393,7 @@ public ProvisioningState provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendSettingsPropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendSettingsPropertiesFormat.java index da7afb5fa4708..1fd733dc5bf31 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendSettingsPropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayBackendSettingsPropertiesFormat.java @@ -9,6 +9,7 @@ import com.azure.resourcemanager.network.models.ApplicationGatewayProtocol; import com.azure.resourcemanager.network.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -29,8 +30,7 @@ public final class ApplicationGatewayBackendSettingsPropertiesFormat { private ApplicationGatewayProtocol protocol; /* - * Connection timeout in seconds. Application Gateway will fail the request if response is not received within - * ConnectionTimeout. Acceptable values are from 1 second to 86400 seconds. + * Connection timeout in seconds. Application Gateway will fail the request if response is not received within ConnectionTimeout. Acceptable values are from 1 second to 86400 seconds. */ @JsonProperty(value = "timeout") private Integer timeout; @@ -54,8 +54,7 @@ public final class ApplicationGatewayBackendSettingsPropertiesFormat { private String hostname; /* - * Whether to pick server name indication from the host name of the backend server for Tls protocol. Default value - * is false. + * Whether to pick server name indication from the host name of the backend server for Tls protocol. Default value is false. */ @JsonProperty(value = "pickHostNameFromBackendAddress") private Boolean pickHostnameFromBackendAddress; @@ -74,7 +73,7 @@ public ApplicationGatewayBackendSettingsPropertiesFormat() { /** * Get the port property: The destination port on the backend. - * + * * @return the port value. */ public Integer port() { @@ -83,7 +82,7 @@ public Integer port() { /** * Set the port property: The destination port on the backend. - * + * * @param port the port value to set. * @return the ApplicationGatewayBackendSettingsPropertiesFormat object itself. */ @@ -94,7 +93,7 @@ public ApplicationGatewayBackendSettingsPropertiesFormat withPort(Integer port) /** * Get the protocol property: The protocol used to communicate with the backend. - * + * * @return the protocol value. */ public ApplicationGatewayProtocol protocol() { @@ -103,7 +102,7 @@ public ApplicationGatewayProtocol protocol() { /** * Set the protocol property: The protocol used to communicate with the backend. - * + * * @param protocol the protocol value to set. * @return the ApplicationGatewayBackendSettingsPropertiesFormat object itself. */ @@ -113,9 +112,9 @@ public ApplicationGatewayBackendSettingsPropertiesFormat withProtocol(Applicatio } /** - * Get the timeout property: Connection timeout in seconds. Application Gateway will fail the request if response - * is not received within ConnectionTimeout. Acceptable values are from 1 second to 86400 seconds. - * + * Get the timeout property: Connection timeout in seconds. Application Gateway will fail the request if response is + * not received within ConnectionTimeout. Acceptable values are from 1 second to 86400 seconds. + * * @return the timeout value. */ public Integer timeout() { @@ -123,9 +122,9 @@ public Integer timeout() { } /** - * Set the timeout property: Connection timeout in seconds. Application Gateway will fail the request if response - * is not received within ConnectionTimeout. Acceptable values are from 1 second to 86400 seconds. - * + * Set the timeout property: Connection timeout in seconds. Application Gateway will fail the request if response is + * not received within ConnectionTimeout. Acceptable values are from 1 second to 86400 seconds. + * * @param timeout the timeout value to set. * @return the ApplicationGatewayBackendSettingsPropertiesFormat object itself. */ @@ -136,7 +135,7 @@ public ApplicationGatewayBackendSettingsPropertiesFormat withTimeout(Integer tim /** * Get the probe property: Probe resource of an application gateway. - * + * * @return the probe value. */ public SubResource probe() { @@ -145,7 +144,7 @@ public SubResource probe() { /** * Set the probe property: Probe resource of an application gateway. - * + * * @param probe the probe value to set. * @return the ApplicationGatewayBackendSettingsPropertiesFormat object itself. */ @@ -156,7 +155,7 @@ public ApplicationGatewayBackendSettingsPropertiesFormat withProbe(SubResource p /** * Get the trustedRootCertificates property: Array of references to application gateway trusted root certificates. - * + * * @return the trustedRootCertificates value. */ public List trustedRootCertificates() { @@ -165,7 +164,7 @@ public List trustedRootCertificates() { /** * Set the trustedRootCertificates property: Array of references to application gateway trusted root certificates. - * + * * @param trustedRootCertificates the trustedRootCertificates value to set. * @return the ApplicationGatewayBackendSettingsPropertiesFormat object itself. */ @@ -177,7 +176,7 @@ public List trustedRootCertificates() { /** * Get the hostname property: Server name indication to be sent to the backend servers for Tls protocol. - * + * * @return the hostname value. */ public String hostname() { @@ -186,7 +185,7 @@ public String hostname() { /** * Set the hostname property: Server name indication to be sent to the backend servers for Tls protocol. - * + * * @param hostname the hostname value to set. * @return the ApplicationGatewayBackendSettingsPropertiesFormat object itself. */ @@ -196,9 +195,9 @@ public ApplicationGatewayBackendSettingsPropertiesFormat withHostname(String hos } /** - * Get the pickHostnameFromBackendAddress property: Whether to pick server name indication from the host name of - * the backend server for Tls protocol. Default value is false. - * + * Get the pickHostnameFromBackendAddress property: Whether to pick server name indication from the host name of the + * backend server for Tls protocol. Default value is false. + * * @return the pickHostnameFromBackendAddress value. */ public Boolean pickHostnameFromBackendAddress() { @@ -206,9 +205,9 @@ public Boolean pickHostnameFromBackendAddress() { } /** - * Set the pickHostnameFromBackendAddress property: Whether to pick server name indication from the host name of - * the backend server for Tls protocol. Default value is false. - * + * Set the pickHostnameFromBackendAddress property: Whether to pick server name indication from the host name of the + * backend server for Tls protocol. Default value is false. + * * @param pickHostnameFromBackendAddress the pickHostnameFromBackendAddress value to set. * @return the ApplicationGatewayBackendSettingsPropertiesFormat object itself. */ @@ -220,7 +219,7 @@ public Boolean pickHostnameFromBackendAddress() { /** * Get the provisioningState property: The provisioning state of the backend HTTP settings resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -229,7 +228,7 @@ public ProvisioningState provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayFirewallRuleSetPropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayFirewallRuleSetPropertiesFormat.java index ecbaf153e398e..aaa00d240e805 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayFirewallRuleSetPropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayFirewallRuleSetPropertiesFormat.java @@ -10,6 +10,7 @@ import com.azure.resourcemanager.network.models.ApplicationGatewayTierTypes; import com.azure.resourcemanager.network.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -55,7 +56,7 @@ public ApplicationGatewayFirewallRuleSetPropertiesFormat() { /** * Get the provisioningState property: The provisioning state of the web application firewall rule set. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -64,7 +65,7 @@ public ProvisioningState provisioningState() { /** * Get the ruleSetType property: The type of the web application firewall rule set. - * + * * @return the ruleSetType value. */ public String ruleSetType() { @@ -73,7 +74,7 @@ public String 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. */ @@ -84,7 +85,7 @@ public ApplicationGatewayFirewallRuleSetPropertiesFormat withRuleSetType(String /** * Get the ruleSetVersion property: The version of the web application firewall rule set type. - * + * * @return the ruleSetVersion value. */ public String ruleSetVersion() { @@ -93,7 +94,7 @@ public String 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. */ @@ -104,7 +105,7 @@ public ApplicationGatewayFirewallRuleSetPropertiesFormat withRuleSetVersion(Stri /** * Get the ruleGroups property: The rule groups of the web application firewall rule set. - * + * * @return the ruleGroups value. */ public List ruleGroups() { @@ -113,7 +114,7 @@ public List 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. */ @@ -125,7 +126,7 @@ public List ruleGroups() { /** * Get the tiers property: Tier of an application gateway that support the rule set. - * + * * @return the tiers value. */ public List tiers() { @@ -134,7 +135,7 @@ public List 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. */ @@ -145,21 +146,24 @@ public ApplicationGatewayFirewallRuleSetPropertiesFormat withTiers(List e.validate()); } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayHttpListenerPropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayHttpListenerPropertiesFormat.java index 3b15f4d48e6df..b3641a39617b6 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayHttpListenerPropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayHttpListenerPropertiesFormat.java @@ -10,6 +10,7 @@ import com.azure.resourcemanager.network.models.ApplicationGatewayProtocol; import com.azure.resourcemanager.network.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -91,7 +92,7 @@ public ApplicationGatewayHttpListenerPropertiesFormat() { /** * Get the frontendIpConfiguration property: Frontend IP configuration resource of an application gateway. - * + * * @return the frontendIpConfiguration value. */ public SubResource frontendIpConfiguration() { @@ -100,7 +101,7 @@ public SubResource frontendIpConfiguration() { /** * Set the frontendIpConfiguration property: Frontend IP configuration resource of an application gateway. - * + * * @param frontendIpConfiguration the frontendIpConfiguration value to set. * @return the ApplicationGatewayHttpListenerPropertiesFormat object itself. */ @@ -112,7 +113,7 @@ public SubResource frontendIpConfiguration() { /** * Get the frontendPort property: Frontend port resource of an application gateway. - * + * * @return the frontendPort value. */ public SubResource frontendPort() { @@ -121,7 +122,7 @@ public SubResource frontendPort() { /** * Set the frontendPort property: Frontend port resource of an application gateway. - * + * * @param frontendPort the frontendPort value to set. * @return the ApplicationGatewayHttpListenerPropertiesFormat object itself. */ @@ -132,7 +133,7 @@ public ApplicationGatewayHttpListenerPropertiesFormat withFrontendPort(SubResour /** * Get the protocol property: Protocol of the HTTP listener. - * + * * @return the protocol value. */ public ApplicationGatewayProtocol protocol() { @@ -141,7 +142,7 @@ public ApplicationGatewayProtocol protocol() { /** * Set the protocol property: Protocol of the HTTP listener. - * + * * @param protocol the protocol value to set. * @return the ApplicationGatewayHttpListenerPropertiesFormat object itself. */ @@ -152,7 +153,7 @@ public ApplicationGatewayHttpListenerPropertiesFormat withProtocol(ApplicationGa /** * Get the hostname property: Host name of HTTP listener. - * + * * @return the hostname value. */ public String hostname() { @@ -161,7 +162,7 @@ public String hostname() { /** * Set the hostname property: Host name of HTTP listener. - * + * * @param hostname the hostname value to set. * @return the ApplicationGatewayHttpListenerPropertiesFormat object itself. */ @@ -172,7 +173,7 @@ public ApplicationGatewayHttpListenerPropertiesFormat withHostname(String hostna /** * Get the sslCertificate property: SSL certificate resource of an application gateway. - * + * * @return the sslCertificate value. */ public SubResource sslCertificate() { @@ -181,7 +182,7 @@ public SubResource sslCertificate() { /** * Set the sslCertificate property: SSL certificate resource of an application gateway. - * + * * @param sslCertificate the sslCertificate value to set. * @return the ApplicationGatewayHttpListenerPropertiesFormat object itself. */ @@ -192,7 +193,7 @@ public ApplicationGatewayHttpListenerPropertiesFormat withSslCertificate(SubReso /** * Get the sslProfile property: SSL profile resource of the application gateway. - * + * * @return the sslProfile value. */ public SubResource sslProfile() { @@ -201,7 +202,7 @@ public SubResource sslProfile() { /** * Set the sslProfile property: SSL profile resource of the application gateway. - * + * * @param sslProfile the sslProfile value to set. * @return the ApplicationGatewayHttpListenerPropertiesFormat object itself. */ @@ -213,7 +214,7 @@ public ApplicationGatewayHttpListenerPropertiesFormat withSslProfile(SubResource /** * Get the requireServerNameIndication property: Applicable only if protocol is https. Enables SNI for * multi-hosting. - * + * * @return the requireServerNameIndication value. */ public Boolean requireServerNameIndication() { @@ -223,7 +224,7 @@ public Boolean requireServerNameIndication() { /** * Set the requireServerNameIndication property: Applicable only if protocol is https. Enables SNI for * multi-hosting. - * + * * @param requireServerNameIndication the requireServerNameIndication value to set. * @return the ApplicationGatewayHttpListenerPropertiesFormat object itself. */ @@ -235,7 +236,7 @@ public Boolean requireServerNameIndication() { /** * Get the provisioningState property: The provisioning state of the HTTP listener resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -244,7 +245,7 @@ public ProvisioningState provisioningState() { /** * Get the customErrorConfigurations property: Custom error configurations of the HTTP listener. - * + * * @return the customErrorConfigurations value. */ public List customErrorConfigurations() { @@ -253,7 +254,7 @@ public List customErrorConfigurations() { /** * Set the customErrorConfigurations property: Custom error configurations of the HTTP listener. - * + * * @param customErrorConfigurations the customErrorConfigurations value to set. * @return the ApplicationGatewayHttpListenerPropertiesFormat object itself. */ @@ -265,7 +266,7 @@ public List customErrorConfigurations() { /** * Get the firewallPolicy property: Reference to the FirewallPolicy resource. - * + * * @return the firewallPolicy value. */ public SubResource firewallPolicy() { @@ -274,7 +275,7 @@ public SubResource firewallPolicy() { /** * Set the firewallPolicy property: Reference to the FirewallPolicy resource. - * + * * @param firewallPolicy the firewallPolicy value to set. * @return the ApplicationGatewayHttpListenerPropertiesFormat object itself. */ @@ -284,9 +285,8 @@ public ApplicationGatewayHttpListenerPropertiesFormat withFirewallPolicy(SubReso } /** - * Get the hostNames property: List of Host names for HTTP Listener that allows special wildcard characters as - * well. - * + * Get the hostNames property: List of Host names for HTTP Listener that allows special wildcard characters as well. + * * @return the hostNames value. */ public List hostNames() { @@ -294,9 +294,8 @@ public List hostNames() { } /** - * Set the hostNames property: List of Host names for HTTP Listener that allows special wildcard characters as - * well. - * + * Set the hostNames property: List of Host names for HTTP Listener that allows special wildcard characters as well. + * * @param hostNames the hostNames value to set. * @return the ApplicationGatewayHttpListenerPropertiesFormat object itself. */ @@ -307,7 +306,7 @@ public ApplicationGatewayHttpListenerPropertiesFormat withHostNames(List /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayInner.java index 9025593ac4038..955320507c170 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayInner.java @@ -31,6 +31,7 @@ import com.azure.resourcemanager.network.models.ManagedServiceIdentity; import com.azure.resourcemanager.network.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; import java.util.Map; @@ -77,7 +78,7 @@ public ApplicationGatewayInner() { /** * Get the innerProperties property: Properties of the application gateway. - * + * * @return the innerProperties value. */ private ApplicationGatewayPropertiesFormat innerProperties() { @@ -86,7 +87,7 @@ private ApplicationGatewayPropertiesFormat innerProperties() { /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. - * + * * @return the etag value. */ public String etag() { @@ -95,7 +96,7 @@ public String etag() { /** * Get the zones property: A list of availability zones denoting where the resource needs to come from. - * + * * @return the zones value. */ public List zones() { @@ -104,7 +105,7 @@ public List zones() { /** * 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 ApplicationGatewayInner object itself. */ @@ -115,7 +116,7 @@ public ApplicationGatewayInner withZones(List zones) { /** * Get the identity property: The identity of the application gateway, if configured. - * + * * @return the identity value. */ public ManagedServiceIdentity identity() { @@ -124,7 +125,7 @@ public ManagedServiceIdentity identity() { /** * Set the identity property: The identity of the application gateway, if configured. - * + * * @param identity the identity value to set. * @return the ApplicationGatewayInner object itself. */ @@ -135,7 +136,7 @@ public ApplicationGatewayInner withIdentity(ManagedServiceIdentity identity) { /** * Get the id property: Resource ID. - * + * * @return the id value. */ public String id() { @@ -144,7 +145,7 @@ public String id() { /** * Set the id property: Resource ID. - * + * * @param id the id value to set. * @return the ApplicationGatewayInner object itself. */ @@ -173,7 +174,7 @@ public ApplicationGatewayInner withTags(Map tags) { /** * Get the sku property: SKU of the application gateway resource. - * + * * @return the sku value. */ public ApplicationGatewaySku sku() { @@ -182,7 +183,7 @@ public ApplicationGatewaySku sku() { /** * Set the sku property: SKU of the application gateway resource. - * + * * @param sku the sku value to set. * @return the ApplicationGatewayInner object itself. */ @@ -196,7 +197,7 @@ public ApplicationGatewayInner withSku(ApplicationGatewaySku sku) { /** * Get the sslPolicy property: SSL policy of the application gateway resource. - * + * * @return the sslPolicy value. */ public ApplicationGatewaySslPolicy sslPolicy() { @@ -205,7 +206,7 @@ public ApplicationGatewaySslPolicy sslPolicy() { /** * Set the sslPolicy property: SSL policy of the application gateway resource. - * + * * @param sslPolicy the sslPolicy value to set. * @return the ApplicationGatewayInner object itself. */ @@ -219,7 +220,7 @@ public ApplicationGatewayInner withSslPolicy(ApplicationGatewaySslPolicy sslPoli /** * Get the operationalState property: Operational state of the application gateway resource. - * + * * @return the operationalState value. */ public ApplicationGatewayOperationalState operationalState() { @@ -230,7 +231,7 @@ public ApplicationGatewayOperationalState operationalState() { * Get the gatewayIpConfigurations property: Subnets of 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 gatewayIpConfigurations value. */ public List gatewayIpConfigurations() { @@ -241,7 +242,7 @@ public List gatewayIpConfigurations() { * Set the gatewayIpConfigurations property: Subnets of the application gateway resource. For default limits, see * [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). - * + * * @param gatewayIpConfigurations the gatewayIpConfigurations value to set. * @return the ApplicationGatewayInner object itself. */ @@ -255,10 +256,10 @@ public List gatewayIpConfigurations() { } /** - * Get the authenticationCertificates property: Authentication certificates of the application gateway resource. - * For default limits, see [Application Gateway + * Get the authenticationCertificates property: Authentication certificates of 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 authenticationCertificates value. */ public List authenticationCertificates() { @@ -266,10 +267,10 @@ public List authenticationCert } /** - * Set the authenticationCertificates property: Authentication certificates of the application gateway resource. - * For default limits, see [Application Gateway + * Set the authenticationCertificates property: Authentication certificates of the application gateway resource. For + * default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). - * + * * @param authenticationCertificates the authenticationCertificates value to set. * @return the ApplicationGatewayInner object itself. */ @@ -286,7 +287,7 @@ public ApplicationGatewayInner withAuthenticationCertificates( * Get the trustedRootCertificates property: Trusted Root certificates of 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 trustedRootCertificates value. */ public List trustedRootCertificates() { @@ -297,7 +298,7 @@ public List trustedRootCertificates() * Set the trustedRootCertificates property: Trusted Root certificates of the application gateway resource. For * default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). - * + * * @param trustedRootCertificates the trustedRootCertificates value to set. * @return the ApplicationGatewayInner object itself. */ @@ -314,7 +315,7 @@ public List trustedRootCertificates() * Get the trustedClientCertificates property: Trusted client certificates of 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 trustedClientCertificates value. */ public List trustedClientCertificates() { @@ -325,7 +326,7 @@ public List trustedClientCertificate * Set the trustedClientCertificates property: Trusted client certificates of the application gateway resource. For * default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). - * + * * @param trustedClientCertificates the trustedClientCertificates value to set. * @return the ApplicationGatewayInner object itself. */ @@ -342,7 +343,7 @@ public List trustedClientCertificate * Get the sslCertificates property: SSL certificates of 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 sslCertificates value. */ public List sslCertificates() { @@ -353,7 +354,7 @@ public List sslCertificates() { * Set the sslCertificates property: SSL certificates of the application gateway resource. For default limits, see * [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). - * + * * @param sslCertificates the sslCertificates value to set. * @return the ApplicationGatewayInner object itself. */ @@ -366,10 +367,10 @@ public ApplicationGatewayInner withSslCertificates(List frontendIpConfigurations() { @@ -377,10 +378,10 @@ public List frontendIpConfigurations( } /** - * Set the frontendIpConfigurations property: Frontend IP addresses of the application gateway resource. For - * default limits, see [Application Gateway + * Set the frontendIpConfigurations property: Frontend IP addresses of the application gateway resource. For default + * limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). - * + * * @param frontendIpConfigurations the frontendIpConfigurations value to set. * @return the ApplicationGatewayInner object itself. */ @@ -397,7 +398,7 @@ public List frontendIpConfigurations( * Get the frontendPorts property: Frontend ports of 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 frontendPorts value. */ public List frontendPorts() { @@ -408,7 +409,7 @@ public List frontendPorts() { * Set the frontendPorts property: Frontend ports of the application gateway resource. For default limits, see * [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). - * + * * @param frontendPorts the frontendPorts value to set. * @return the ApplicationGatewayInner object itself. */ @@ -422,7 +423,7 @@ public ApplicationGatewayInner withFrontendPorts(List probes() { @@ -431,7 +432,7 @@ public List probes() { /** * Set the probes property: Probes of the application gateway resource. - * + * * @param probes the probes value to set. * @return the ApplicationGatewayInner object itself. */ @@ -447,7 +448,7 @@ public ApplicationGatewayInner withProbes(List pro * Get the backendAddressPools property: Backend address pool of 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 backendAddressPools value. */ public List backendAddressPools() { @@ -458,7 +459,7 @@ public List backendAddressPools() { * Set the backendAddressPools property: Backend address pool of the application gateway resource. For default * limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). - * + * * @param backendAddressPools the backendAddressPools value to set. * @return the ApplicationGatewayInner object itself. */ @@ -475,7 +476,7 @@ public List backendAddressPools() { * Get the backendHttpSettingsCollection property: Backend http settings of 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 backendHttpSettingsCollection value. */ public List backendHttpSettingsCollection() { @@ -486,7 +487,7 @@ public List backendHttpSettingsCollection * Set the backendHttpSettingsCollection property: Backend http settings of the application gateway resource. For * default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). - * + * * @param backendHttpSettingsCollection the backendHttpSettingsCollection value to set. * @return the ApplicationGatewayInner object itself. */ @@ -503,7 +504,7 @@ public List backendHttpSettingsCollection * Get the backendSettingsCollection property: Backend settings of 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 backendSettingsCollection value. */ public List backendSettingsCollection() { @@ -514,7 +515,7 @@ public List backendSettingsCollection() { * Set the backendSettingsCollection property: Backend settings of the application gateway resource. For default * limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). - * + * * @param backendSettingsCollection the backendSettingsCollection value to set. * @return the ApplicationGatewayInner object itself. */ @@ -531,7 +532,7 @@ public List backendSettingsCollection() { * Get the httpListeners property: Http listeners of 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 httpListeners value. */ public List httpListeners() { @@ -542,7 +543,7 @@ public List httpListeners() { * Set the httpListeners property: Http listeners of the application gateway resource. For default limits, see * [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). - * + * * @param httpListeners the httpListeners value to set. * @return the ApplicationGatewayInner object itself. */ @@ -557,7 +558,7 @@ public ApplicationGatewayInner withHttpListeners(List listeners() { @@ -567,7 +568,7 @@ public List listeners() { /** * Set the listeners property: Listeners of the application gateway resource. For default limits, see [Application * Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). - * + * * @param listeners the listeners value to set. * @return the ApplicationGatewayInner object itself. */ @@ -583,7 +584,7 @@ public ApplicationGatewayInner withListeners(List sslProfiles() { @@ -594,7 +595,7 @@ public List sslProfiles() { * Set the sslProfiles property: SSL profiles of the application gateway resource. For default limits, see * [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). - * + * * @param sslProfiles the sslProfiles value to set. * @return the ApplicationGatewayInner object itself. */ @@ -610,7 +611,7 @@ public ApplicationGatewayInner withSslProfiles(List urlPathMaps() { @@ -621,7 +622,7 @@ public List urlPathMaps() { * Set the urlPathMaps property: URL path map of the application gateway resource. For default limits, see * [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). - * + * * @param urlPathMaps the urlPathMaps value to set. * @return the ApplicationGatewayInner object itself. */ @@ -635,7 +636,7 @@ public ApplicationGatewayInner withUrlPathMaps(List requestRoutingRules() { @@ -644,7 +645,7 @@ public List requestRoutingRules() { /** * Set the requestRoutingRules property: Request routing rules of the application gateway resource. - * + * * @param requestRoutingRules the requestRoutingRules value to set. * @return the ApplicationGatewayInner object itself. */ @@ -659,7 +660,7 @@ public List requestRoutingRules() { /** * Get the routingRules property: Routing rules of the application gateway resource. - * + * * @return the routingRules value. */ public List routingRules() { @@ -668,7 +669,7 @@ public List routingRules() { /** * Set the routingRules property: Routing rules of the application gateway resource. - * + * * @param routingRules the routingRules value to set. * @return the ApplicationGatewayInner object itself. */ @@ -682,7 +683,7 @@ public ApplicationGatewayInner withRoutingRules(List rewriteRuleSets() { @@ -691,7 +692,7 @@ public List rewriteRuleSets() { /** * Set the rewriteRuleSets property: Rewrite rules for the application gateway resource. - * + * * @param rewriteRuleSets the rewriteRuleSets value to set. * @return the ApplicationGatewayInner object itself. */ @@ -704,10 +705,10 @@ public ApplicationGatewayInner withRewriteRuleSets(List redirectConfigurations() { @@ -715,10 +716,10 @@ public List redirectConfigurations } /** - * Set the redirectConfigurations property: Redirect configurations of the application gateway resource. For - * default limits, see [Application Gateway + * Set the redirectConfigurations property: Redirect configurations of the application gateway resource. For default + * limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). - * + * * @param redirectConfigurations the redirectConfigurations value to set. * @return the ApplicationGatewayInner object itself. */ @@ -733,7 +734,7 @@ public List redirectConfigurations /** * Get the webApplicationFirewallConfiguration property: Web application firewall configuration. - * + * * @return the webApplicationFirewallConfiguration value. */ public ApplicationGatewayWebApplicationFirewallConfiguration webApplicationFirewallConfiguration() { @@ -742,7 +743,7 @@ public ApplicationGatewayWebApplicationFirewallConfiguration webApplicationFirew /** * Set the webApplicationFirewallConfiguration property: Web application firewall configuration. - * + * * @param webApplicationFirewallConfiguration the webApplicationFirewallConfiguration value to set. * @return the ApplicationGatewayInner object itself. */ @@ -757,7 +758,7 @@ public ApplicationGatewayInner withWebApplicationFirewallConfiguration( /** * Get the firewallPolicy property: Reference to the FirewallPolicy resource. - * + * * @return the firewallPolicy value. */ public SubResource firewallPolicy() { @@ -766,7 +767,7 @@ public SubResource firewallPolicy() { /** * Set the firewallPolicy property: Reference to the FirewallPolicy resource. - * + * * @param firewallPolicy the firewallPolicy value to set. * @return the ApplicationGatewayInner object itself. */ @@ -780,7 +781,7 @@ public ApplicationGatewayInner withFirewallPolicy(SubResource firewallPolicy) { /** * Get the enableHttp2 property: Whether HTTP2 is enabled on the application gateway resource. - * + * * @return the enableHttp2 value. */ public Boolean enableHttp2() { @@ -789,7 +790,7 @@ public Boolean enableHttp2() { /** * Set the enableHttp2 property: Whether HTTP2 is enabled on the application gateway resource. - * + * * @param enableHttp2 the enableHttp2 value to set. * @return the ApplicationGatewayInner object itself. */ @@ -803,7 +804,7 @@ public ApplicationGatewayInner withEnableHttp2(Boolean enableHttp2) { /** * Get the enableFips property: Whether FIPS is enabled on the application gateway resource. - * + * * @return the enableFips value. */ public Boolean enableFips() { @@ -812,7 +813,7 @@ public Boolean enableFips() { /** * Set the enableFips property: Whether FIPS is enabled on the application gateway resource. - * + * * @param enableFips the enableFips value to set. * @return the ApplicationGatewayInner object itself. */ @@ -826,7 +827,7 @@ public ApplicationGatewayInner withEnableFips(Boolean enableFips) { /** * Get the autoscaleConfiguration property: Autoscale Configuration. - * + * * @return the autoscaleConfiguration value. */ public ApplicationGatewayAutoscaleConfiguration autoscaleConfiguration() { @@ -835,7 +836,7 @@ public ApplicationGatewayAutoscaleConfiguration autoscaleConfiguration() { /** * Set the autoscaleConfiguration property: Autoscale Configuration. - * + * * @param autoscaleConfiguration the autoscaleConfiguration value to set. * @return the ApplicationGatewayInner object itself. */ @@ -850,7 +851,7 @@ public ApplicationGatewayAutoscaleConfiguration autoscaleConfiguration() { /** * Get the privateLinkConfigurations property: PrivateLink configurations on application gateway. - * + * * @return the privateLinkConfigurations value. */ public List privateLinkConfigurations() { @@ -859,7 +860,7 @@ public List privateLinkConfiguration /** * Set the privateLinkConfigurations property: PrivateLink configurations on application gateway. - * + * * @param privateLinkConfigurations the privateLinkConfigurations value to set. * @return the ApplicationGatewayInner object itself. */ @@ -874,7 +875,7 @@ public List privateLinkConfiguration /** * Get the privateEndpointConnections property: Private Endpoint connections on application gateway. - * + * * @return the privateEndpointConnections value. */ public List privateEndpointConnections() { @@ -883,7 +884,7 @@ public List privateEndpointCon /** * Get the resourceGuid property: The resource GUID property of the application gateway resource. - * + * * @return the resourceGuid value. */ public String resourceGuid() { @@ -892,7 +893,7 @@ public String resourceGuid() { /** * Get the provisioningState property: The provisioning state of the application gateway resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -901,7 +902,7 @@ public ProvisioningState provisioningState() { /** * Get the customErrorConfigurations property: Custom error configurations of the application gateway resource. - * + * * @return the customErrorConfigurations value. */ public List customErrorConfigurations() { @@ -910,7 +911,7 @@ public List customErrorConfigurations() { /** * Set the customErrorConfigurations property: Custom error configurations of the application gateway resource. - * + * * @param customErrorConfigurations the customErrorConfigurations value to set. * @return the ApplicationGatewayInner object itself. */ @@ -926,7 +927,7 @@ public List customErrorConfigurations() { /** * Get the forceFirewallPolicyAssociation property: If true, associates a firewall policy with an application * gateway regardless whether the policy differs from the WAF Config. - * + * * @return the forceFirewallPolicyAssociation value. */ public Boolean forceFirewallPolicyAssociation() { @@ -936,7 +937,7 @@ public Boolean forceFirewallPolicyAssociation() { /** * Set the forceFirewallPolicyAssociation property: If true, associates a firewall policy with an application * gateway regardless whether the policy differs from the WAF Config. - * + * * @param forceFirewallPolicyAssociation the forceFirewallPolicyAssociation value to set. * @return the ApplicationGatewayInner object itself. */ @@ -950,7 +951,7 @@ public ApplicationGatewayInner withForceFirewallPolicyAssociation(Boolean forceF /** * Get the loadDistributionPolicies property: Load distribution policies of the application gateway resource. - * + * * @return the loadDistributionPolicies value. */ public List loadDistributionPolicies() { @@ -959,7 +960,7 @@ public List loadDistributionPolicies() /** * Set the loadDistributionPolicies property: Load distribution policies of the application gateway resource. - * + * * @param loadDistributionPolicies the loadDistributionPolicies value to set. * @return the ApplicationGatewayInner object itself. */ @@ -974,7 +975,7 @@ public List loadDistributionPolicies() /** * Get the globalConfiguration property: Global Configuration. - * + * * @return the globalConfiguration value. */ public ApplicationGatewayGlobalConfiguration globalConfiguration() { @@ -983,7 +984,7 @@ public ApplicationGatewayGlobalConfiguration globalConfiguration() { /** * Set the globalConfiguration property: Global Configuration. - * + * * @param globalConfiguration the globalConfiguration value to set. * @return the ApplicationGatewayInner object itself. */ @@ -996,9 +997,9 @@ public ApplicationGatewayInner withGlobalConfiguration(ApplicationGatewayGlobalC } /** - * Get the defaultPredefinedSslPolicy property: The default predefined SSL Policy applied on the application - * gateway resource. - * + * Get the defaultPredefinedSslPolicy property: The default predefined SSL Policy applied on the application gateway + * resource. + * * @return the defaultPredefinedSslPolicy value. */ public ApplicationGatewaySslPolicyName defaultPredefinedSslPolicy() { @@ -1007,7 +1008,7 @@ public ApplicationGatewaySslPolicyName defaultPredefinedSslPolicy() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayListenerPropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayListenerPropertiesFormat.java index 84f1f875363a5..6ce7c717fb140 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayListenerPropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayListenerPropertiesFormat.java @@ -9,6 +9,7 @@ import com.azure.resourcemanager.network.models.ApplicationGatewayProtocol; import com.azure.resourcemanager.network.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -53,8 +54,7 @@ public final class ApplicationGatewayListenerPropertiesFormat { private ProvisioningState provisioningState; /* - * List of Server Name Indications(SNI) for TLS Multi-site Listener that allows special wildcard characters as - * well. + * List of Server Name Indications(SNI) for TLS Multi-site Listener that allows special wildcard characters as well. */ @JsonProperty(value = "hostNames") private List hostNames; @@ -67,7 +67,7 @@ public ApplicationGatewayListenerPropertiesFormat() { /** * Get the frontendIpConfiguration property: Frontend IP configuration resource of an application gateway. - * + * * @return the frontendIpConfiguration value. */ public SubResource frontendIpConfiguration() { @@ -76,7 +76,7 @@ public SubResource frontendIpConfiguration() { /** * Set the frontendIpConfiguration property: Frontend IP configuration resource of an application gateway. - * + * * @param frontendIpConfiguration the frontendIpConfiguration value to set. * @return the ApplicationGatewayListenerPropertiesFormat object itself. */ @@ -87,7 +87,7 @@ public ApplicationGatewayListenerPropertiesFormat withFrontendIpConfiguration(Su /** * Get the frontendPort property: Frontend port resource of an application gateway. - * + * * @return the frontendPort value. */ public SubResource frontendPort() { @@ -96,7 +96,7 @@ public SubResource frontendPort() { /** * Set the frontendPort property: Frontend port resource of an application gateway. - * + * * @param frontendPort the frontendPort value to set. * @return the ApplicationGatewayListenerPropertiesFormat object itself. */ @@ -107,7 +107,7 @@ public ApplicationGatewayListenerPropertiesFormat withFrontendPort(SubResource f /** * Get the protocol property: Protocol of the listener. - * + * * @return the protocol value. */ public ApplicationGatewayProtocol protocol() { @@ -116,7 +116,7 @@ public ApplicationGatewayProtocol protocol() { /** * Set the protocol property: Protocol of the listener. - * + * * @param protocol the protocol value to set. * @return the ApplicationGatewayListenerPropertiesFormat object itself. */ @@ -127,7 +127,7 @@ public ApplicationGatewayListenerPropertiesFormat withProtocol(ApplicationGatewa /** * Get the sslCertificate property: SSL certificate resource of an application gateway. - * + * * @return the sslCertificate value. */ public SubResource sslCertificate() { @@ -136,7 +136,7 @@ public SubResource sslCertificate() { /** * Set the sslCertificate property: SSL certificate resource of an application gateway. - * + * * @param sslCertificate the sslCertificate value to set. * @return the ApplicationGatewayListenerPropertiesFormat object itself. */ @@ -147,7 +147,7 @@ public ApplicationGatewayListenerPropertiesFormat withSslCertificate(SubResource /** * Get the sslProfile property: SSL profile resource of the application gateway. - * + * * @return the sslProfile value. */ public SubResource sslProfile() { @@ -156,7 +156,7 @@ public SubResource sslProfile() { /** * Set the sslProfile property: SSL profile resource of the application gateway. - * + * * @param sslProfile the sslProfile value to set. * @return the ApplicationGatewayListenerPropertiesFormat object itself. */ @@ -167,7 +167,7 @@ public ApplicationGatewayListenerPropertiesFormat withSslProfile(SubResource ssl /** * Get the provisioningState property: The provisioning state of the listener resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -177,7 +177,7 @@ public ProvisioningState provisioningState() { /** * Get the hostNames property: List of Server Name Indications(SNI) for TLS Multi-site Listener that allows special * wildcard characters as well. - * + * * @return the hostNames value. */ public List hostNames() { @@ -187,7 +187,7 @@ public List hostNames() { /** * Set the hostNames property: List of Server Name Indications(SNI) for TLS Multi-site Listener that allows special * wildcard characters as well. - * + * * @param hostNames the hostNames value to set. * @return the ApplicationGatewayListenerPropertiesFormat object itself. */ @@ -198,7 +198,7 @@ public ApplicationGatewayListenerPropertiesFormat withHostNames(List hos /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateEndpointConnectionInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateEndpointConnectionInner.java index 3f64c38d85e25..e355e4c69207f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateEndpointConnectionInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateEndpointConnectionInner.java @@ -111,8 +111,8 @@ public PrivateEndpointInner privateEndpoint() { } /** - * Get the privateLinkServiceConnectionState property: A collection of information about the state of the - * connection between service consumer and provider. + * Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection + * between service consumer and provider. * * @return the privateLinkServiceConnectionState value. */ @@ -121,8 +121,8 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() { } /** - * Set the privateLinkServiceConnectionState property: A collection of information about the state of the - * connection between service consumer and provider. + * Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection + * between service consumer and provider. * * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set. * @return the ApplicationGatewayPrivateEndpointConnectionInner object itself. @@ -137,8 +137,8 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() { } /** - * Get the provisioningState property: The provisioning state of the application gateway private endpoint - * connection resource. + * Get the provisioningState property: The provisioning state of the application gateway private endpoint connection + * resource. * * @return the provisioningState value. */ diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateEndpointConnectionPropertiesInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateEndpointConnectionPropertiesInner.java index 4f8ad8a6a0143..045b336d6926c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateEndpointConnectionPropertiesInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateEndpointConnectionPropertiesInner.java @@ -54,8 +54,8 @@ public PrivateEndpointInner privateEndpoint() { } /** - * Get the privateLinkServiceConnectionState property: A collection of information about the state of the - * connection between service consumer and provider. + * Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection + * between service consumer and provider. * * @return the privateLinkServiceConnectionState value. */ @@ -64,8 +64,8 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() { } /** - * Set the privateLinkServiceConnectionState property: A collection of information about the state of the - * connection between service consumer and provider. + * Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection + * between service consumer and provider. * * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set. * @return the ApplicationGatewayPrivateEndpointConnectionPropertiesInner object itself. @@ -77,8 +77,8 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() { } /** - * Get the provisioningState property: The provisioning state of the application gateway private endpoint - * connection resource. + * Get the provisioningState property: The provisioning state of the application gateway private endpoint connection + * resource. * * @return the provisioningState value. */ diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateLinkConfigurationProperties.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateLinkConfigurationProperties.java index 609e7a6834b75..2c1f12f9fdda7 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateLinkConfigurationProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPrivateLinkConfigurationProperties.java @@ -8,6 +8,7 @@ import com.azure.resourcemanager.network.models.ApplicationGatewayPrivateLinkIpConfiguration; import com.azure.resourcemanager.network.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -35,7 +36,7 @@ public ApplicationGatewayPrivateLinkConfigurationProperties() { /** * Get the ipConfigurations property: An array of application gateway private link ip configurations. - * + * * @return the ipConfigurations value. */ public List ipConfigurations() { @@ -44,7 +45,7 @@ public List ipConfigurations() { /** * Set the ipConfigurations property: An array of application gateway private link ip configurations. - * + * * @param ipConfigurations the ipConfigurations value to set. * @return the ApplicationGatewayPrivateLinkConfigurationProperties object itself. */ @@ -55,9 +56,8 @@ public List ipConfigurations() { } /** - * Get the provisioningState property: The provisioning state of the application gateway private link - * configuration. - * + * Get the provisioningState property: The provisioning state of the application gateway private link configuration. + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -66,7 +66,7 @@ public ProvisioningState provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayProbeInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayProbeInner.java index fb84bad3380f1..59fa83e121a6d 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayProbeInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayProbeInner.java @@ -224,8 +224,8 @@ public ApplicationGatewayProbeInner withTimeout(Integer timeout) { } /** - * Get the unhealthyThreshold property: The probe retry count. Backend server is marked down after consecutive - * probe failure count reaches UnhealthyThreshold. Acceptable values are from 1 second to 20. + * Get the unhealthyThreshold property: The probe retry count. Backend server is marked down after consecutive probe + * failure count reaches UnhealthyThreshold. Acceptable values are from 1 second to 20. * * @return the unhealthyThreshold value. */ @@ -234,8 +234,8 @@ public Integer unhealthyThreshold() { } /** - * Set the unhealthyThreshold property: The probe retry count. Backend server is marked down after consecutive - * probe failure count reaches UnhealthyThreshold. Acceptable values are from 1 second to 20. + * Set the unhealthyThreshold property: The probe retry count. Backend server is marked down after consecutive probe + * failure count reaches UnhealthyThreshold. Acceptable values are from 1 second to 20. * * @param unhealthyThreshold the unhealthyThreshold value to set. * @return the ApplicationGatewayProbeInner object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayProbePropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayProbePropertiesFormat.java index 42c39fefa0f81..fee1bc08e016c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayProbePropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayProbePropertiesFormat.java @@ -34,22 +34,19 @@ public final class ApplicationGatewayProbePropertiesFormat { private String path; /* - * The probing interval in seconds. This is the time interval between two consecutive probes. Acceptable values are - * from 1 second to 86400 seconds. + * The probing interval in seconds. This is the time interval between two consecutive probes. Acceptable values are from 1 second to 86400 seconds. */ @JsonProperty(value = "interval") private Integer interval; /* - * The probe timeout in seconds. Probe marked as failed if valid response is not received with this timeout period. - * Acceptable values are from 1 second to 86400 seconds. + * The probe timeout in seconds. Probe marked as failed if valid response is not received with this timeout period. Acceptable values are from 1 second to 86400 seconds. */ @JsonProperty(value = "timeout") private Integer timeout; /* - * The probe retry count. Backend server is marked down after consecutive probe failure count reaches - * UnhealthyThreshold. Acceptable values are from 1 second to 20. + * The probe retry count. Backend server is marked down after consecutive probe failure count reaches UnhealthyThreshold. Acceptable values are from 1 second to 20. */ @JsonProperty(value = "unhealthyThreshold") private Integer unhealthyThreshold; @@ -61,8 +58,7 @@ public final class ApplicationGatewayProbePropertiesFormat { private Boolean pickHostnameFromBackendHttpSettings; /* - * Whether the server name indication should be picked from the backend settings for Tls protocol. Default value is - * false. + * Whether the server name indication should be picked from the backend settings for Tls protocol. Default value is false. */ @JsonProperty(value = "pickHostNameFromBackendSettings") private Boolean pickHostnameFromBackendSettings; @@ -86,8 +82,7 @@ public final class ApplicationGatewayProbePropertiesFormat { private ProvisioningState provisioningState; /* - * Custom port which will be used for probing the backend servers. The valid value ranges from 1 to 65535. In case - * not set, port from http settings will be used. This property is valid for Basic, Standard_v2 and WAF_v2 only. + * Custom port which will be used for probing the backend servers. The valid value ranges from 1 to 65535. In case not set, port from http settings will be used. This property is valid for Basic, Standard_v2 and WAF_v2 only. */ @JsonProperty(value = "port") private Integer port; @@ -205,8 +200,8 @@ public ApplicationGatewayProbePropertiesFormat withTimeout(Integer timeout) { } /** - * Get the unhealthyThreshold property: The probe retry count. Backend server is marked down after consecutive - * probe failure count reaches UnhealthyThreshold. Acceptable values are from 1 second to 20. + * Get the unhealthyThreshold property: The probe retry count. Backend server is marked down after consecutive probe + * failure count reaches UnhealthyThreshold. Acceptable values are from 1 second to 20. * * @return the unhealthyThreshold value. */ @@ -215,8 +210,8 @@ public Integer unhealthyThreshold() { } /** - * Set the unhealthyThreshold property: The probe retry count. Backend server is marked down after consecutive - * probe failure count reaches UnhealthyThreshold. Acceptable values are from 1 second to 20. + * Set the unhealthyThreshold property: The probe retry count. Backend server is marked down after consecutive probe + * failure count reaches UnhealthyThreshold. Acceptable values are from 1 second to 20. * * @param unhealthyThreshold the unhealthyThreshold value to set. * @return the ApplicationGatewayProbePropertiesFormat object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPropertiesFormat.java index b731da02cc0bb..9ffc4ca4da90b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationGatewayPropertiesFormat.java @@ -29,6 +29,7 @@ import com.azure.resourcemanager.network.models.ApplicationGatewayWebApplicationFirewallConfiguration; import com.azure.resourcemanager.network.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -55,50 +56,43 @@ public final class ApplicationGatewayPropertiesFormat { private ApplicationGatewayOperationalState operationalState; /* - * Subnets of the application gateway resource. For default limits, see [Application Gateway - * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). + * Subnets of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). */ @JsonProperty(value = "gatewayIPConfigurations") private List gatewayIpConfigurations; /* - * Authentication certificates of the application gateway resource. For default limits, see [Application Gateway - * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). + * Authentication certificates of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). */ @JsonProperty(value = "authenticationCertificates") private List authenticationCertificates; /* - * Trusted Root certificates of the application gateway resource. For default limits, see [Application Gateway - * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). + * Trusted Root certificates of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). */ @JsonProperty(value = "trustedRootCertificates") private List trustedRootCertificates; /* - * Trusted client certificates of the application gateway resource. For default limits, see [Application Gateway - * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). + * Trusted client certificates of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). */ @JsonProperty(value = "trustedClientCertificates") private List trustedClientCertificates; /* - * SSL certificates of the application gateway resource. For default limits, see [Application Gateway - * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). + * SSL certificates of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). */ @JsonProperty(value = "sslCertificates") private List sslCertificates; /* - * Frontend IP addresses of the application gateway resource. For default limits, see [Application Gateway - * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). + * Frontend IP addresses of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). */ @JsonProperty(value = "frontendIPConfigurations") private List frontendIpConfigurations; /* - * Frontend ports of the application gateway resource. For default limits, see [Application Gateway - * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). + * Frontend ports of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). */ @JsonProperty(value = "frontendPorts") private List frontendPorts; @@ -110,50 +104,43 @@ public final class ApplicationGatewayPropertiesFormat { private List probes; /* - * Backend address pool of the application gateway resource. For default limits, see [Application Gateway - * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). + * Backend address pool of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). */ @JsonProperty(value = "backendAddressPools") private List backendAddressPools; /* - * Backend http settings of the application gateway resource. For default limits, see [Application Gateway - * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). + * Backend http settings of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). */ @JsonProperty(value = "backendHttpSettingsCollection") private List backendHttpSettingsCollection; /* - * Backend settings of the application gateway resource. For default limits, see [Application Gateway - * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). + * Backend settings of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). */ @JsonProperty(value = "backendSettingsCollection") private List backendSettingsCollection; /* - * Http listeners of the application gateway resource. For default limits, see [Application Gateway - * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). + * Http listeners of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). */ @JsonProperty(value = "httpListeners") private List httpListeners; /* - * Listeners of the application gateway resource. For default limits, see [Application Gateway - * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). + * Listeners of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). */ @JsonProperty(value = "listeners") private List listeners; /* - * SSL profiles of the application gateway resource. For default limits, see [Application Gateway - * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). + * SSL profiles of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). */ @JsonProperty(value = "sslProfiles") private List sslProfiles; /* - * URL path map of the application gateway resource. For default limits, see [Application Gateway - * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). + * URL path map of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). */ @JsonProperty(value = "urlPathMaps") private List urlPathMaps; @@ -177,8 +164,7 @@ public final class ApplicationGatewayPropertiesFormat { private List rewriteRuleSets; /* - * Redirect configurations of the application gateway resource. For default limits, see [Application Gateway - * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). + * Redirect configurations of the application gateway resource. For default limits, see [Application Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). */ @JsonProperty(value = "redirectConfigurations") private List redirectConfigurations; @@ -244,8 +230,7 @@ public final class ApplicationGatewayPropertiesFormat { private List customErrorConfigurations; /* - * If true, associates a firewall policy with an application gateway regardless whether the policy differs from the - * WAF Config. + * If true, associates a firewall policy with an application gateway regardless whether the policy differs from the WAF Config. */ @JsonProperty(value = "forceFirewallPolicyAssociation") private Boolean forceFirewallPolicyAssociation; @@ -276,7 +261,7 @@ public ApplicationGatewayPropertiesFormat() { /** * Get the sku property: SKU of the application gateway resource. - * + * * @return the sku value. */ public ApplicationGatewaySku sku() { @@ -285,7 +270,7 @@ public ApplicationGatewaySku sku() { /** * Set the sku property: SKU of the application gateway resource. - * + * * @param sku the sku value to set. * @return the ApplicationGatewayPropertiesFormat object itself. */ @@ -296,7 +281,7 @@ public ApplicationGatewayPropertiesFormat withSku(ApplicationGatewaySku sku) { /** * Get the sslPolicy property: SSL policy of the application gateway resource. - * + * * @return the sslPolicy value. */ public ApplicationGatewaySslPolicy sslPolicy() { @@ -305,7 +290,7 @@ public ApplicationGatewaySslPolicy sslPolicy() { /** * Set the sslPolicy property: SSL policy of the application gateway resource. - * + * * @param sslPolicy the sslPolicy value to set. * @return the ApplicationGatewayPropertiesFormat object itself. */ @@ -316,7 +301,7 @@ public ApplicationGatewayPropertiesFormat withSslPolicy(ApplicationGatewaySslPol /** * Get the operationalState property: Operational state of the application gateway resource. - * + * * @return the operationalState value. */ public ApplicationGatewayOperationalState operationalState() { @@ -327,7 +312,7 @@ public ApplicationGatewayOperationalState operationalState() { * Get the gatewayIpConfigurations property: Subnets of 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 gatewayIpConfigurations value. */ public List gatewayIpConfigurations() { @@ -338,7 +323,7 @@ public List gatewayIpConfigurations() { * Set the gatewayIpConfigurations property: Subnets of the application gateway resource. For default limits, see * [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). - * + * * @param gatewayIpConfigurations the gatewayIpConfigurations value to set. * @return the ApplicationGatewayPropertiesFormat object itself. */ @@ -349,10 +334,10 @@ public List gatewayIpConfigurations() { } /** - * Get the authenticationCertificates property: Authentication certificates of the application gateway resource. - * For default limits, see [Application Gateway + * Get the authenticationCertificates property: Authentication certificates of 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 authenticationCertificates value. */ public List authenticationCertificates() { @@ -360,10 +345,10 @@ public List authenticationCert } /** - * Set the authenticationCertificates property: Authentication certificates of the application gateway resource. - * For default limits, see [Application Gateway + * Set the authenticationCertificates property: Authentication certificates of the application gateway resource. For + * default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). - * + * * @param authenticationCertificates the authenticationCertificates value to set. * @return the ApplicationGatewayPropertiesFormat object itself. */ @@ -377,7 +362,7 @@ public ApplicationGatewayPropertiesFormat withAuthenticationCertificates( * Get the trustedRootCertificates property: Trusted Root certificates of 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 trustedRootCertificates value. */ public List trustedRootCertificates() { @@ -388,7 +373,7 @@ public List trustedRootCertificates() * Set the trustedRootCertificates property: Trusted Root certificates of the application gateway resource. For * default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). - * + * * @param trustedRootCertificates the trustedRootCertificates value to set. * @return the ApplicationGatewayPropertiesFormat object itself. */ @@ -402,7 +387,7 @@ public List trustedRootCertificates() * Get the trustedClientCertificates property: Trusted client certificates of 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 trustedClientCertificates value. */ public List trustedClientCertificates() { @@ -413,7 +398,7 @@ public List trustedClientCertificate * Set the trustedClientCertificates property: Trusted client certificates of the application gateway resource. For * default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). - * + * * @param trustedClientCertificates the trustedClientCertificates value to set. * @return the ApplicationGatewayPropertiesFormat object itself. */ @@ -427,7 +412,7 @@ public List trustedClientCertificate * Get the sslCertificates property: SSL certificates of 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 sslCertificates value. */ public List sslCertificates() { @@ -438,7 +423,7 @@ public List sslCertificates() { * Set the sslCertificates property: SSL certificates of the application gateway resource. For default limits, see * [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). - * + * * @param sslCertificates the sslCertificates value to set. * @return the ApplicationGatewayPropertiesFormat object itself. */ @@ -449,10 +434,10 @@ public List sslCertificates() { } /** - * Get the frontendIpConfigurations property: Frontend IP addresses of the application gateway resource. For - * default limits, see [Application Gateway + * Get the frontendIpConfigurations property: Frontend IP addresses of 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 frontendIpConfigurations value. */ public List frontendIpConfigurations() { @@ -460,10 +445,10 @@ public List frontendIpConfigurations( } /** - * Set the frontendIpConfigurations property: Frontend IP addresses of the application gateway resource. For - * default limits, see [Application Gateway + * Set the frontendIpConfigurations property: Frontend IP addresses of the application gateway resource. For default + * limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). - * + * * @param frontendIpConfigurations the frontendIpConfigurations value to set. * @return the ApplicationGatewayPropertiesFormat object itself. */ @@ -477,7 +462,7 @@ public List frontendIpConfigurations( * Get the frontendPorts property: Frontend ports of 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 frontendPorts value. */ public List frontendPorts() { @@ -488,7 +473,7 @@ public List frontendPorts() { * Set the frontendPorts property: Frontend ports of the application gateway resource. For default limits, see * [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). - * + * * @param frontendPorts the frontendPorts value to set. * @return the ApplicationGatewayPropertiesFormat object itself. */ @@ -499,7 +484,7 @@ public ApplicationGatewayPropertiesFormat withFrontendPorts(List probes() { @@ -508,7 +493,7 @@ public List probes() { /** * Set the probes property: Probes of the application gateway resource. - * + * * @param probes the probes value to set. * @return the ApplicationGatewayPropertiesFormat object itself. */ @@ -521,7 +506,7 @@ public ApplicationGatewayPropertiesFormat withProbes(List backendAddressPools() { @@ -532,7 +517,7 @@ public List backendAddressPools() { * Set the backendAddressPools property: Backend address pool of the application gateway resource. For default * limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). - * + * * @param backendAddressPools the backendAddressPools value to set. * @return the ApplicationGatewayPropertiesFormat object itself. */ @@ -546,7 +531,7 @@ public List backendAddressPools() { * Get the backendHttpSettingsCollection property: Backend http settings of 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 backendHttpSettingsCollection value. */ public List backendHttpSettingsCollection() { @@ -557,7 +542,7 @@ public List backendHttpSettingsCollection * Set the backendHttpSettingsCollection property: Backend http settings of the application gateway resource. For * default limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). - * + * * @param backendHttpSettingsCollection the backendHttpSettingsCollection value to set. * @return the ApplicationGatewayPropertiesFormat object itself. */ @@ -571,7 +556,7 @@ public List backendHttpSettingsCollection * Get the backendSettingsCollection property: Backend settings of 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 backendSettingsCollection value. */ public List backendSettingsCollection() { @@ -582,7 +567,7 @@ public List backendSettingsCollection() { * Set the backendSettingsCollection property: Backend settings of the application gateway resource. For default * limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). - * + * * @param backendSettingsCollection the backendSettingsCollection value to set. * @return the ApplicationGatewayPropertiesFormat object itself. */ @@ -596,7 +581,7 @@ public List backendSettingsCollection() { * Get the httpListeners property: Http listeners of 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 httpListeners value. */ public List httpListeners() { @@ -607,7 +592,7 @@ public List httpListeners() { * Set the httpListeners property: Http listeners of the application gateway resource. For default limits, see * [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). - * + * * @param httpListeners the httpListeners value to set. * @return the ApplicationGatewayPropertiesFormat object itself. */ @@ -619,7 +604,7 @@ public ApplicationGatewayPropertiesFormat withHttpListeners(List listeners() { @@ -629,7 +614,7 @@ public List listeners() { /** * Set the listeners property: Listeners of the application gateway resource. For default limits, see [Application * Gateway limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). - * + * * @param listeners the listeners value to set. * @return the ApplicationGatewayPropertiesFormat object itself. */ @@ -642,7 +627,7 @@ public ApplicationGatewayPropertiesFormat withListeners(List sslProfiles() { @@ -653,7 +638,7 @@ public List sslProfiles() { * Set the sslProfiles property: SSL profiles of the application gateway resource. For default limits, see * [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). - * + * * @param sslProfiles the sslProfiles value to set. * @return the ApplicationGatewayPropertiesFormat object itself. */ @@ -666,7 +651,7 @@ public ApplicationGatewayPropertiesFormat withSslProfiles(List urlPathMaps() { @@ -677,7 +662,7 @@ public List urlPathMaps() { * Set the urlPathMaps property: URL path map of the application gateway resource. For default limits, see * [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). - * + * * @param urlPathMaps the urlPathMaps value to set. * @return the ApplicationGatewayPropertiesFormat object itself. */ @@ -688,7 +673,7 @@ public ApplicationGatewayPropertiesFormat withUrlPathMaps(List requestRoutingRules() { @@ -697,7 +682,7 @@ public List requestRoutingRules() { /** * Set the requestRoutingRules property: Request routing rules of the application gateway resource. - * + * * @param requestRoutingRules the requestRoutingRules value to set. * @return the ApplicationGatewayPropertiesFormat object itself. */ @@ -709,7 +694,7 @@ public List requestRoutingRules() { /** * Get the routingRules property: Routing rules of the application gateway resource. - * + * * @return the routingRules value. */ public List routingRules() { @@ -718,7 +703,7 @@ public List routingRules() { /** * Set the routingRules property: Routing rules of the application gateway resource. - * + * * @param routingRules the routingRules value to set. * @return the ApplicationGatewayPropertiesFormat object itself. */ @@ -729,7 +714,7 @@ public ApplicationGatewayPropertiesFormat withRoutingRules(List rewriteRuleSets() { @@ -738,7 +723,7 @@ public List rewriteRuleSets() { /** * Set the rewriteRuleSets property: Rewrite rules for the application gateway resource. - * + * * @param rewriteRuleSets the rewriteRuleSets value to set. * @return the ApplicationGatewayPropertiesFormat object itself. */ @@ -749,10 +734,10 @@ public List rewriteRuleSets() { } /** - * Get the redirectConfigurations property: Redirect configurations of the application gateway resource. For - * default limits, see [Application Gateway + * Get the redirectConfigurations property: Redirect configurations of 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 redirectConfigurations value. */ public List redirectConfigurations() { @@ -760,10 +745,10 @@ public List redirectConfigurations } /** - * Set the redirectConfigurations property: Redirect configurations of the application gateway resource. For - * default limits, see [Application Gateway + * Set the redirectConfigurations property: Redirect configurations of the application gateway resource. For default + * limits, see [Application Gateway * limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits). - * + * * @param redirectConfigurations the redirectConfigurations value to set. * @return the ApplicationGatewayPropertiesFormat object itself. */ @@ -775,7 +760,7 @@ public List redirectConfigurations /** * Get the webApplicationFirewallConfiguration property: Web application firewall configuration. - * + * * @return the webApplicationFirewallConfiguration value. */ public ApplicationGatewayWebApplicationFirewallConfiguration webApplicationFirewallConfiguration() { @@ -784,7 +769,7 @@ public ApplicationGatewayWebApplicationFirewallConfiguration webApplicationFirew /** * Set the webApplicationFirewallConfiguration property: Web application firewall configuration. - * + * * @param webApplicationFirewallConfiguration the webApplicationFirewallConfiguration value to set. * @return the ApplicationGatewayPropertiesFormat object itself. */ @@ -796,7 +781,7 @@ public ApplicationGatewayPropertiesFormat withWebApplicationFirewallConfiguratio /** * Get the firewallPolicy property: Reference to the FirewallPolicy resource. - * + * * @return the firewallPolicy value. */ public SubResource firewallPolicy() { @@ -805,7 +790,7 @@ public SubResource firewallPolicy() { /** * Set the firewallPolicy property: Reference to the FirewallPolicy resource. - * + * * @param firewallPolicy the firewallPolicy value to set. * @return the ApplicationGatewayPropertiesFormat object itself. */ @@ -816,7 +801,7 @@ public ApplicationGatewayPropertiesFormat withFirewallPolicy(SubResource firewal /** * Get the enableHttp2 property: Whether HTTP2 is enabled on the application gateway resource. - * + * * @return the enableHttp2 value. */ public Boolean enableHttp2() { @@ -825,7 +810,7 @@ public Boolean enableHttp2() { /** * Set the enableHttp2 property: Whether HTTP2 is enabled on the application gateway resource. - * + * * @param enableHttp2 the enableHttp2 value to set. * @return the ApplicationGatewayPropertiesFormat object itself. */ @@ -836,7 +821,7 @@ public ApplicationGatewayPropertiesFormat withEnableHttp2(Boolean enableHttp2) { /** * Get the enableFips property: Whether FIPS is enabled on the application gateway resource. - * + * * @return the enableFips value. */ public Boolean enableFips() { @@ -845,7 +830,7 @@ public Boolean enableFips() { /** * Set the enableFips property: Whether FIPS is enabled on the application gateway resource. - * + * * @param enableFips the enableFips value to set. * @return the ApplicationGatewayPropertiesFormat object itself. */ @@ -856,7 +841,7 @@ public ApplicationGatewayPropertiesFormat withEnableFips(Boolean enableFips) { /** * Get the autoscaleConfiguration property: Autoscale Configuration. - * + * * @return the autoscaleConfiguration value. */ public ApplicationGatewayAutoscaleConfiguration autoscaleConfiguration() { @@ -865,7 +850,7 @@ public ApplicationGatewayAutoscaleConfiguration autoscaleConfiguration() { /** * Set the autoscaleConfiguration property: Autoscale Configuration. - * + * * @param autoscaleConfiguration the autoscaleConfiguration value to set. * @return the ApplicationGatewayPropertiesFormat object itself. */ @@ -877,7 +862,7 @@ public ApplicationGatewayAutoscaleConfiguration autoscaleConfiguration() { /** * Get the privateLinkConfigurations property: PrivateLink configurations on application gateway. - * + * * @return the privateLinkConfigurations value. */ public List privateLinkConfigurations() { @@ -886,7 +871,7 @@ public List privateLinkConfiguration /** * Set the privateLinkConfigurations property: PrivateLink configurations on application gateway. - * + * * @param privateLinkConfigurations the privateLinkConfigurations value to set. * @return the ApplicationGatewayPropertiesFormat object itself. */ @@ -898,7 +883,7 @@ public List privateLinkConfiguration /** * Get the privateEndpointConnections property: Private Endpoint connections on application gateway. - * + * * @return the privateEndpointConnections value. */ public List privateEndpointConnections() { @@ -907,7 +892,7 @@ public List privateEndpointCon /** * Get the resourceGuid property: The resource GUID property of the application gateway resource. - * + * * @return the resourceGuid value. */ public String resourceGuid() { @@ -916,7 +901,7 @@ public String resourceGuid() { /** * Get the provisioningState property: The provisioning state of the application gateway resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -925,7 +910,7 @@ public ProvisioningState provisioningState() { /** * Get the customErrorConfigurations property: Custom error configurations of the application gateway resource. - * + * * @return the customErrorConfigurations value. */ public List customErrorConfigurations() { @@ -934,7 +919,7 @@ public List customErrorConfigurations() { /** * Set the customErrorConfigurations property: Custom error configurations of the application gateway resource. - * + * * @param customErrorConfigurations the customErrorConfigurations value to set. * @return the ApplicationGatewayPropertiesFormat object itself. */ @@ -947,7 +932,7 @@ public List customErrorConfigurations() { /** * Get the forceFirewallPolicyAssociation property: If true, associates a firewall policy with an application * gateway regardless whether the policy differs from the WAF Config. - * + * * @return the forceFirewallPolicyAssociation value. */ public Boolean forceFirewallPolicyAssociation() { @@ -957,7 +942,7 @@ public Boolean forceFirewallPolicyAssociation() { /** * Set the forceFirewallPolicyAssociation property: If true, associates a firewall policy with an application * gateway regardless whether the policy differs from the WAF Config. - * + * * @param forceFirewallPolicyAssociation the forceFirewallPolicyAssociation value to set. * @return the ApplicationGatewayPropertiesFormat object itself. */ @@ -969,7 +954,7 @@ public Boolean forceFirewallPolicyAssociation() { /** * Get the loadDistributionPolicies property: Load distribution policies of the application gateway resource. - * + * * @return the loadDistributionPolicies value. */ public List loadDistributionPolicies() { @@ -978,7 +963,7 @@ public List loadDistributionPolicies() /** * Set the loadDistributionPolicies property: Load distribution policies of the application gateway resource. - * + * * @param loadDistributionPolicies the loadDistributionPolicies value to set. * @return the ApplicationGatewayPropertiesFormat object itself. */ @@ -990,7 +975,7 @@ public List loadDistributionPolicies() /** * Get the globalConfiguration property: Global Configuration. - * + * * @return the globalConfiguration value. */ public ApplicationGatewayGlobalConfiguration globalConfiguration() { @@ -999,7 +984,7 @@ public ApplicationGatewayGlobalConfiguration globalConfiguration() { /** * Set the globalConfiguration property: Global Configuration. - * + * * @param globalConfiguration the globalConfiguration value to set. * @return the ApplicationGatewayPropertiesFormat object itself. */ @@ -1010,9 +995,9 @@ public ApplicationGatewayGlobalConfiguration globalConfiguration() { } /** - * Get the defaultPredefinedSslPolicy property: The default predefined SSL Policy applied on the application - * gateway resource. - * + * Get the defaultPredefinedSslPolicy property: The default predefined SSL Policy applied on the application gateway + * resource. + * * @return the defaultPredefinedSslPolicy value. */ public ApplicationGatewaySslPolicyName defaultPredefinedSslPolicy() { @@ -1021,7 +1006,7 @@ public ApplicationGatewaySslPolicyName defaultPredefinedSslPolicy() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationSecurityGroupInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationSecurityGroupInner.java index ed7f780967b65..8da7af16dcab8 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationSecurityGroupInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationSecurityGroupInner.java @@ -8,6 +8,7 @@ import com.azure.core.management.Resource; import com.azure.resourcemanager.network.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.Map; /** @@ -41,7 +42,7 @@ public ApplicationSecurityGroupInner() { /** * Get the innerProperties property: Properties of the application security group. - * + * * @return the innerProperties value. */ private ApplicationSecurityGroupPropertiesFormat innerProperties() { @@ -50,7 +51,7 @@ private ApplicationSecurityGroupPropertiesFormat innerProperties() { /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. - * + * * @return the etag value. */ public String etag() { @@ -59,7 +60,7 @@ public String etag() { /** * Get the id property: Resource ID. - * + * * @return the id value. */ public String id() { @@ -68,7 +69,7 @@ public String id() { /** * Set the id property: Resource ID. - * + * * @param id the id value to set. * @return the ApplicationSecurityGroupInner object itself. */ @@ -96,10 +97,10 @@ public ApplicationSecurityGroupInner withTags(Map tags) { } /** - * Get the resourceGuid property: The resource GUID property of the application security group resource. It - * uniquely identifies a resource, even if the user changes its name or migrate the resource across subscriptions - * or resource groups. - * + * Get the resourceGuid property: The resource GUID property of the application security group resource. It uniquely + * identifies a resource, even if the user changes its name or migrate the resource across subscriptions or resource + * groups. + * * @return the resourceGuid value. */ public String resourceGuid() { @@ -108,7 +109,7 @@ public String resourceGuid() { /** * Get the provisioningState property: The provisioning state of the application security group resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -117,7 +118,7 @@ public ProvisioningState provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationSecurityGroupPropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationSecurityGroupPropertiesFormat.java index 7cf6601c6c8e9..e8ee60ebfdec7 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationSecurityGroupPropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ApplicationSecurityGroupPropertiesFormat.java @@ -14,8 +14,7 @@ @Immutable public final class ApplicationSecurityGroupPropertiesFormat { /* - * The resource GUID property of the application security group resource. It uniquely identifies a resource, even - * if the user changes its name or migrate the resource across subscriptions or resource groups. + * The resource GUID property of the application security group resource. It uniquely identifies a resource, even if the user changes its name or migrate the resource across subscriptions or resource groups. */ @JsonProperty(value = "resourceGuid", access = JsonProperty.Access.WRITE_ONLY) private String resourceGuid; @@ -33,9 +32,9 @@ public ApplicationSecurityGroupPropertiesFormat() { } /** - * Get the resourceGuid property: The resource GUID property of the application security group resource. It - * uniquely identifies a resource, even if the user changes its name or migrate the resource across subscriptions - * or resource groups. + * Get the resourceGuid property: The resource GUID property of the application security group resource. It uniquely + * identifies a resource, even if the user changes its name or migrate the resource across subscriptions or resource + * groups. * * @return the resourceGuid value. */ diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AvailableProvidersListInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AvailableProvidersListInner.java index 625456732254d..e0963334bdcbd 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AvailableProvidersListInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AvailableProvidersListInner.java @@ -8,6 +8,7 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.network.models.AvailableProvidersListCountry; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -29,7 +30,7 @@ public AvailableProvidersListInner() { /** * Get the countries property: List of available countries. - * + * * @return the countries value. */ public List countries() { @@ -38,7 +39,7 @@ public List countries() { /** * Set the countries property: List of available countries. - * + * * @param countries the countries value to set. * @return the AvailableProvidersListInner object itself. */ @@ -49,13 +50,14 @@ public AvailableProvidersListInner withCountries(List e.validate()); } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallIpConfigurationPropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallIpConfigurationPropertiesFormat.java index 1bc1789a423b1..7c4881565e23a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallIpConfigurationPropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureFirewallIpConfigurationPropertiesFormat.java @@ -21,8 +21,7 @@ public final class AzureFirewallIpConfigurationPropertiesFormat { private String privateIpAddress; /* - * Reference to the subnet resource. This resource must be named 'AzureFirewallSubnet' or - * 'AzureFirewallManagementSubnet'. + * Reference to the subnet resource. This resource must be named 'AzureFirewallSubnet' or 'AzureFirewallManagementSubnet'. */ @JsonProperty(value = "subnet") private SubResource subnet; diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureReachabilityReportInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureReachabilityReportInner.java index 3893f743d740f..82c7709b9c33c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureReachabilityReportInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/AzureReachabilityReportInner.java @@ -9,6 +9,7 @@ import com.azure.resourcemanager.network.models.AzureReachabilityReportItem; import com.azure.resourcemanager.network.models.AzureReachabilityReportLocation; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -43,7 +44,7 @@ public AzureReachabilityReportInner() { /** * Get the aggregationLevel property: The aggregation level of Azure reachability report. Can be Country, State or * City. - * + * * @return the aggregationLevel value. */ public String aggregationLevel() { @@ -53,7 +54,7 @@ public String aggregationLevel() { /** * Set the aggregationLevel property: The aggregation level of Azure reachability report. Can be Country, State or * City. - * + * * @param aggregationLevel the aggregationLevel value to set. * @return the AzureReachabilityReportInner object itself. */ @@ -64,7 +65,7 @@ public AzureReachabilityReportInner withAggregationLevel(String aggregationLevel /** * Get the providerLocation property: Parameters that define a geographic location. - * + * * @return the providerLocation value. */ public AzureReachabilityReportLocation providerLocation() { @@ -73,7 +74,7 @@ public AzureReachabilityReportLocation providerLocation() { /** * Set the providerLocation property: Parameters that define a geographic location. - * + * * @param providerLocation the providerLocation value to set. * @return the AzureReachabilityReportInner object itself. */ @@ -84,7 +85,7 @@ public AzureReachabilityReportInner withProviderLocation(AzureReachabilityReport /** * Get the reachabilityReport property: List of Azure reachability report items. - * + * * @return the reachabilityReport value. */ public List reachabilityReport() { @@ -93,7 +94,7 @@ public List reachabilityReport() { /** * Set the reachabilityReport property: List of Azure reachability report items. - * + * * @param reachabilityReport the reachabilityReport value to set. * @return the AzureReachabilityReportInner object itself. */ @@ -104,23 +105,26 @@ public AzureReachabilityReportInner withReachabilityReport(List e.validate()); } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BackendAddressPoolInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BackendAddressPoolInner.java index 34f42c138a733..34e3e4062712b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BackendAddressPoolInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BackendAddressPoolInner.java @@ -11,6 +11,7 @@ import com.azure.resourcemanager.network.models.ProvisioningState; import com.azure.resourcemanager.network.models.SyncMode; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -25,8 +26,7 @@ public final class BackendAddressPoolInner extends SubResource { 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. + * 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. */ @JsonProperty(value = "name") private String name; @@ -51,7 +51,7 @@ public BackendAddressPoolInner() { /** * Get the innerProperties property: Properties of load balancer backend address pool. - * + * * @return the innerProperties value. */ private BackendAddressPoolPropertiesFormat innerProperties() { @@ -61,7 +61,7 @@ private BackendAddressPoolPropertiesFormat 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() { @@ -71,7 +71,7 @@ public String 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. */ @@ -82,7 +82,7 @@ public BackendAddressPoolInner withName(String name) { /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. - * + * * @return the etag value. */ public String etag() { @@ -91,7 +91,7 @@ public String etag() { /** * Get the type property: Type of the resource. - * + * * @return the type value. */ public String type() { @@ -109,7 +109,7 @@ public BackendAddressPoolInner withId(String id) { /** * Get the location property: The location of the backend address pool. - * + * * @return the location value. */ public String location() { @@ -118,7 +118,7 @@ public String location() { /** * Set the location property: The location of the backend address pool. - * + * * @param location the location value to set. * @return the BackendAddressPoolInner object itself. */ @@ -132,7 +132,7 @@ public BackendAddressPoolInner withLocation(String location) { /** * Get the tunnelInterfaces property: An array of gateway load balancer tunnel interfaces. - * + * * @return the tunnelInterfaces value. */ public List tunnelInterfaces() { @@ -141,7 +141,7 @@ public List tunnelInterfaces() { /** * Set the tunnelInterfaces property: An array of gateway load balancer tunnel interfaces. - * + * * @param tunnelInterfaces the tunnelInterfaces value to set. * @return the BackendAddressPoolInner object itself. */ @@ -155,7 +155,7 @@ public BackendAddressPoolInner withTunnelInterfaces(List loadBalancerBackendAddresses() { @@ -164,7 +164,7 @@ public List loadBalancerBackendAddresses() { /** * Set the loadBalancerBackendAddresses property: An array of backend addresses. - * + * * @param loadBalancerBackendAddresses the loadBalancerBackendAddresses value to set. * @return the BackendAddressPoolInner object itself. */ @@ -179,7 +179,7 @@ public List loadBalancerBackendAddresses() { /** * Get the backendIpConfigurations property: An array of references to IP addresses defined in network interfaces. - * + * * @return the backendIpConfigurations value. */ public List backendIpConfigurations() { @@ -187,9 +187,9 @@ public List backendIpConfigurations() { } /** - * Get the loadBalancingRules property: An array of references to load balancing rules that use this backend - * address pool. - * + * Get the loadBalancingRules property: An array of references to load balancing rules that use this backend address + * pool. + * * @return the loadBalancingRules value. */ public List loadBalancingRules() { @@ -198,7 +198,7 @@ public List loadBalancingRules() { /** * Get the outboundRule property: A reference to an outbound rule that uses this backend address pool. - * + * * @return the outboundRule value. */ public SubResource outboundRule() { @@ -207,7 +207,7 @@ public SubResource outboundRule() { /** * Get the outboundRules property: An array of references to outbound rules that use this backend address pool. - * + * * @return the outboundRules value. */ public List outboundRules() { @@ -215,9 +215,8 @@ public List outboundRules() { } /** - * Get the inboundNatRules property: An array of references to inbound NAT rules that use this backend address - * pool. - * + * Get the inboundNatRules property: An array of references to inbound NAT rules that use this backend address pool. + * * @return the inboundNatRules value. */ public List inboundNatRules() { @@ -226,7 +225,7 @@ public List inboundNatRules() { /** * Get the provisioningState property: The provisioning state of the backend address pool resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -236,7 +235,7 @@ public ProvisioningState provisioningState() { /** * Get the drainPeriodInSeconds property: Amount of seconds Load Balancer waits for before sending RESET to client * and backend address. - * + * * @return the drainPeriodInSeconds value. */ public Integer drainPeriodInSeconds() { @@ -246,7 +245,7 @@ public Integer drainPeriodInSeconds() { /** * Set the drainPeriodInSeconds property: Amount of seconds Load Balancer waits for before sending RESET to client * and backend address. - * + * * @param drainPeriodInSeconds the drainPeriodInSeconds value to set. * @return the BackendAddressPoolInner object itself. */ @@ -260,7 +259,7 @@ public BackendAddressPoolInner withDrainPeriodInSeconds(Integer drainPeriodInSec /** * Get the virtualNetwork property: A reference to a virtual network. - * + * * @return the virtualNetwork value. */ public SubResource virtualNetwork() { @@ -269,7 +268,7 @@ public SubResource virtualNetwork() { /** * Set the virtualNetwork property: A reference to a virtual network. - * + * * @param virtualNetwork the virtualNetwork value to set. * @return the BackendAddressPoolInner object itself. */ @@ -283,7 +282,7 @@ public BackendAddressPoolInner withVirtualNetwork(SubResource virtualNetwork) { /** * Get the syncMode property: Backend address synchronous mode for the backend pool. - * + * * @return the syncMode value. */ public SyncMode syncMode() { @@ -292,7 +291,7 @@ public SyncMode syncMode() { /** * Set the syncMode property: Backend address synchronous mode for the backend pool. - * + * * @param syncMode the syncMode value to set. * @return the BackendAddressPoolInner object itself. */ @@ -306,7 +305,7 @@ public BackendAddressPoolInner withSyncMode(SyncMode syncMode) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BackendAddressPoolPropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BackendAddressPoolPropertiesFormat.java index 45794dbe5b785..b8fdfb990bb3b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BackendAddressPoolPropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BackendAddressPoolPropertiesFormat.java @@ -11,6 +11,7 @@ import com.azure.resourcemanager.network.models.ProvisioningState; import com.azure.resourcemanager.network.models.SyncMode; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -98,7 +99,7 @@ public BackendAddressPoolPropertiesFormat() { /** * Get the location property: The location of the backend address pool. - * + * * @return the location value. */ public String location() { @@ -107,7 +108,7 @@ public String location() { /** * Set the location property: The location of the backend address pool. - * + * * @param location the location value to set. * @return the BackendAddressPoolPropertiesFormat object itself. */ @@ -118,7 +119,7 @@ public BackendAddressPoolPropertiesFormat withLocation(String location) { /** * Get the tunnelInterfaces property: An array of gateway load balancer tunnel interfaces. - * + * * @return the tunnelInterfaces value. */ public List tunnelInterfaces() { @@ -127,7 +128,7 @@ public List tunnelInterfaces() { /** * Set the tunnelInterfaces property: An array of gateway load balancer tunnel interfaces. - * + * * @param tunnelInterfaces the tunnelInterfaces value to set. * @return the BackendAddressPoolPropertiesFormat object itself. */ @@ -139,7 +140,7 @@ public List tunnelInterfaces() { /** * Get the loadBalancerBackendAddresses property: An array of backend addresses. - * + * * @return the loadBalancerBackendAddresses value. */ public List loadBalancerBackendAddresses() { @@ -148,7 +149,7 @@ public List loadBalancerBackendAddresses() { /** * Set the loadBalancerBackendAddresses property: An array of backend addresses. - * + * * @param loadBalancerBackendAddresses the loadBalancerBackendAddresses value to set. * @return the BackendAddressPoolPropertiesFormat object itself. */ @@ -160,7 +161,7 @@ public List loadBalancerBackendAddresses() { /** * Get the backendIpConfigurations property: An array of references to IP addresses defined in network interfaces. - * + * * @return the backendIpConfigurations value. */ public List backendIpConfigurations() { @@ -168,9 +169,9 @@ public List backendIpConfigurations() { } /** - * Get the loadBalancingRules property: An array of references to load balancing rules that use this backend - * address pool. - * + * Get the loadBalancingRules property: An array of references to load balancing rules that use this backend address + * pool. + * * @return the loadBalancingRules value. */ public List loadBalancingRules() { @@ -179,7 +180,7 @@ public List loadBalancingRules() { /** * Get the outboundRule property: A reference to an outbound rule that uses this backend address pool. - * + * * @return the outboundRule value. */ public SubResource outboundRule() { @@ -188,7 +189,7 @@ public SubResource outboundRule() { /** * Get the outboundRules property: An array of references to outbound rules that use this backend address pool. - * + * * @return the outboundRules value. */ public List outboundRules() { @@ -196,9 +197,8 @@ public List outboundRules() { } /** - * Get the inboundNatRules property: An array of references to inbound NAT rules that use this backend address - * pool. - * + * Get the inboundNatRules property: An array of references to inbound NAT rules that use this backend address pool. + * * @return the inboundNatRules value. */ public List inboundNatRules() { @@ -207,7 +207,7 @@ public List inboundNatRules() { /** * Get the provisioningState property: The provisioning state of the backend address pool resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -217,7 +217,7 @@ public ProvisioningState provisioningState() { /** * Get the drainPeriodInSeconds property: Amount of seconds Load Balancer waits for before sending RESET to client * and backend address. - * + * * @return the drainPeriodInSeconds value. */ public Integer drainPeriodInSeconds() { @@ -227,7 +227,7 @@ public Integer drainPeriodInSeconds() { /** * Set the drainPeriodInSeconds property: Amount of seconds Load Balancer waits for before sending RESET to client * and backend address. - * + * * @param drainPeriodInSeconds the drainPeriodInSeconds value to set. * @return the BackendAddressPoolPropertiesFormat object itself. */ @@ -238,7 +238,7 @@ public BackendAddressPoolPropertiesFormat withDrainPeriodInSeconds(Integer drain /** * Get the virtualNetwork property: A reference to a virtual network. - * + * * @return the virtualNetwork value. */ public SubResource virtualNetwork() { @@ -247,7 +247,7 @@ public SubResource virtualNetwork() { /** * Set the virtualNetwork property: A reference to a virtual network. - * + * * @param virtualNetwork the virtualNetwork value to set. * @return the BackendAddressPoolPropertiesFormat object itself. */ @@ -258,7 +258,7 @@ public BackendAddressPoolPropertiesFormat withVirtualNetwork(SubResource virtual /** * Get the syncMode property: Backend address synchronous mode for the backend pool. - * + * * @return the syncMode value. */ public SyncMode syncMode() { @@ -267,7 +267,7 @@ public SyncMode syncMode() { /** * Set the syncMode property: Backend address synchronous mode for the backend pool. - * + * * @param syncMode the syncMode value to set. * @return the BackendAddressPoolPropertiesFormat object itself. */ @@ -278,7 +278,7 @@ public BackendAddressPoolPropertiesFormat withSyncMode(SyncMode syncMode) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BaseAdminRuleInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BaseAdminRuleInner.java index 6061534ac5fa7..3bf08c87e3b94 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BaseAdminRuleInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BaseAdminRuleInner.java @@ -7,27 +7,32 @@ import com.azure.core.annotation.Immutable; import com.azure.core.management.SystemData; import com.azure.resourcemanager.network.models.AdminRule; +import com.azure.resourcemanager.network.models.AdminRuleKind; import com.azure.resourcemanager.network.models.ChildResource; import com.azure.resourcemanager.network.models.DefaultAdminRule; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeId; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; /** * Network base admin rule. */ -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "kind", - defaultImpl = BaseAdminRuleInner.class) +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "kind", defaultImpl = BaseAdminRuleInner.class, visible = true) @JsonTypeName("BaseAdminRule") @JsonSubTypes({ @JsonSubTypes.Type(name = "Custom", value = AdminRule.class), @JsonSubTypes.Type(name = "Default", value = DefaultAdminRule.class) }) @Immutable public class BaseAdminRuleInner extends ChildResource { + /* + * Whether the rule is custom or default. + */ + @JsonTypeId + @JsonProperty(value = "kind", required = true) + private AdminRuleKind kind; + /* * The system metadata related to this resource. */ @@ -38,6 +43,16 @@ public class BaseAdminRuleInner extends ChildResource { * Creates an instance of BaseAdminRuleInner class. */ public BaseAdminRuleInner() { + this.kind = AdminRuleKind.fromString("BaseAdminRule"); + } + + /** + * Get the kind property: Whether the rule is custom or default. + * + * @return the kind value. + */ + public AdminRuleKind kind() { + return this.kind; } /** diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BastionHostIpConfigurationPropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BastionHostIpConfigurationPropertiesFormat.java index 0113a842cc4ee..f18268ab460fb 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BastionHostIpConfigurationPropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BastionHostIpConfigurationPropertiesFormat.java @@ -123,12 +123,14 @@ public IpAllocationMethod privateIpAllocationMethod() { */ public void validate() { if (subnet() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property subnet in model BastionHostIpConfigurationPropertiesFormat")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property subnet in model BastionHostIpConfigurationPropertiesFormat")); } if (publicIpAddress() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property publicIpAddress in model BastionHostIpConfigurationPropertiesFormat")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property publicIpAddress in model BastionHostIpConfigurationPropertiesFormat")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BastionShareableLinkInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BastionShareableLinkInner.java index a56524b97060b..3244ff2704f00 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BastionShareableLinkInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/BastionShareableLinkInner.java @@ -99,8 +99,8 @@ public String message() { */ public void validate() { if (vm() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property vm in model BastionShareableLinkInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property vm in model BastionShareableLinkInner")); } else { vm().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionMonitorInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionMonitorInner.java index a7701ab750cc2..2d1031b05f8ea 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionMonitorInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionMonitorInner.java @@ -14,6 +14,7 @@ import com.azure.resourcemanager.network.models.ConnectionMonitorTestGroup; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; import java.util.Map; @@ -49,7 +50,7 @@ public ConnectionMonitorInner() { /** * Get the location property: Connection monitor location. - * + * * @return the location value. */ public String location() { @@ -58,7 +59,7 @@ public String location() { /** * Set the location property: Connection monitor location. - * + * * @param location the location value to set. * @return the ConnectionMonitorInner object itself. */ @@ -69,7 +70,7 @@ public ConnectionMonitorInner withLocation(String location) { /** * Get the tags property: Connection monitor tags. - * + * * @return the tags value. */ public Map tags() { @@ -78,7 +79,7 @@ public Map tags() { /** * Set the tags property: Connection monitor tags. - * + * * @param tags the tags value to set. * @return the ConnectionMonitorInner object itself. */ @@ -89,7 +90,7 @@ public ConnectionMonitorInner withTags(Map tags) { /** * Get the innerProperties property: Properties of the connection monitor. - * + * * @return the innerProperties value. */ private ConnectionMonitorParameters innerProperties() { @@ -98,7 +99,7 @@ private ConnectionMonitorParameters innerProperties() { /** * Get the source property: Describes the source of connection monitor. - * + * * @return the source value. */ public ConnectionMonitorSource source() { @@ -107,7 +108,7 @@ public ConnectionMonitorSource source() { /** * Set the source property: Describes the source of connection monitor. - * + * * @param source the source value to set. * @return the ConnectionMonitorInner object itself. */ @@ -121,7 +122,7 @@ public ConnectionMonitorInner withSource(ConnectionMonitorSource source) { /** * Get the destination property: Describes the destination of connection monitor. - * + * * @return the destination value. */ public ConnectionMonitorDestination destination() { @@ -130,7 +131,7 @@ public ConnectionMonitorDestination destination() { /** * Set the destination property: Describes the destination of connection monitor. - * + * * @param destination the destination value to set. * @return the ConnectionMonitorInner object itself. */ @@ -144,7 +145,7 @@ public ConnectionMonitorInner withDestination(ConnectionMonitorDestination desti /** * Get the autoStart property: Determines if the connection monitor will start automatically once created. - * + * * @return the autoStart value. */ public Boolean autoStart() { @@ -153,7 +154,7 @@ public Boolean autoStart() { /** * Set the autoStart property: Determines if the connection monitor will start automatically once created. - * + * * @param autoStart the autoStart value to set. * @return the ConnectionMonitorInner object itself. */ @@ -167,7 +168,7 @@ public ConnectionMonitorInner withAutoStart(Boolean autoStart) { /** * Get the monitoringIntervalInSeconds property: Monitoring interval in seconds. - * + * * @return the monitoringIntervalInSeconds value. */ public Integer monitoringIntervalInSeconds() { @@ -176,7 +177,7 @@ public Integer monitoringIntervalInSeconds() { /** * Set the monitoringIntervalInSeconds property: Monitoring interval in seconds. - * + * * @param monitoringIntervalInSeconds the monitoringIntervalInSeconds value to set. * @return the ConnectionMonitorInner object itself. */ @@ -190,7 +191,7 @@ public ConnectionMonitorInner withMonitoringIntervalInSeconds(Integer monitoring /** * Get the endpoints property: List of connection monitor endpoints. - * + * * @return the endpoints value. */ public List endpoints() { @@ -199,7 +200,7 @@ public List endpoints() { /** * Set the endpoints property: List of connection monitor endpoints. - * + * * @param endpoints the endpoints value to set. * @return the ConnectionMonitorInner object itself. */ @@ -213,7 +214,7 @@ public ConnectionMonitorInner withEndpoints(List endp /** * Get the testConfigurations property: List of connection monitor test configurations. - * + * * @return the testConfigurations value. */ public List testConfigurations() { @@ -222,7 +223,7 @@ public List testConfigurations() { /** * Set the testConfigurations property: List of connection monitor test configurations. - * + * * @param testConfigurations the testConfigurations value to set. * @return the ConnectionMonitorInner object itself. */ @@ -236,7 +237,7 @@ public ConnectionMonitorInner withTestConfigurations(List testGroups() { @@ -245,7 +246,7 @@ public List testGroups() { /** * Set the testGroups property: List of connection monitor test groups. - * + * * @param testGroups the testGroups value to set. * @return the ConnectionMonitorInner object itself. */ @@ -259,7 +260,7 @@ public ConnectionMonitorInner withTestGroups(List te /** * Get the outputs property: List of connection monitor outputs. - * + * * @return the outputs value. */ public List outputs() { @@ -268,7 +269,7 @@ public List outputs() { /** * Set the outputs property: List of connection monitor outputs. - * + * * @param outputs the outputs value to set. * @return the ConnectionMonitorInner object itself. */ @@ -282,7 +283,7 @@ public ConnectionMonitorInner withOutputs(List outputs) /** * Get the notes property: Optional notes to be associated with the connection monitor. - * + * * @return the notes value. */ public String notes() { @@ -291,7 +292,7 @@ public String notes() { /** * Set the notes property: Optional notes to be associated with the connection monitor. - * + * * @param notes the notes value to set. * @return the ConnectionMonitorInner object itself. */ @@ -305,13 +306,14 @@ public ConnectionMonitorInner withNotes(String notes) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (innerProperties() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property innerProperties in model ConnectionMonitorInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property innerProperties in model ConnectionMonitorInner")); } else { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionSharedKeyInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionSharedKeyInner.java index f164f5ba4cd4b..87f88720696ac 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionSharedKeyInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectionSharedKeyInner.java @@ -62,8 +62,8 @@ public ConnectionSharedKeyInner withId(String id) { */ public void validate() { if (value() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property value in model ConnectionSharedKeyInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model ConnectionSharedKeyInner")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectivityConfigurationProperties.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectivityConfigurationProperties.java index 23d2c1f625ecc..47a84d51e08a0 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectivityConfigurationProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ConnectivityConfigurationProperties.java @@ -13,6 +13,7 @@ import com.azure.resourcemanager.network.models.IsGlobal; import com.azure.resourcemanager.network.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -76,7 +77,7 @@ public ConnectivityConfigurationProperties() { /** * Get the description property: A description of the connectivity configuration. - * + * * @return the description value. */ public String description() { @@ -85,7 +86,7 @@ public String description() { /** * Set the description property: A description of the connectivity configuration. - * + * * @param description the description value to set. * @return the ConnectivityConfigurationProperties object itself. */ @@ -96,7 +97,7 @@ public ConnectivityConfigurationProperties withDescription(String description) { /** * Get the connectivityTopology property: Connectivity topology type. - * + * * @return the connectivityTopology value. */ public ConnectivityTopology connectivityTopology() { @@ -105,7 +106,7 @@ public ConnectivityTopology connectivityTopology() { /** * Set the connectivityTopology property: Connectivity topology type. - * + * * @param connectivityTopology the connectivityTopology value to set. * @return the ConnectivityConfigurationProperties object itself. */ @@ -116,7 +117,7 @@ public ConnectivityConfigurationProperties withConnectivityTopology(Connectivity /** * Get the hubs property: List of hubItems. - * + * * @return the hubs value. */ public List hubs() { @@ -125,7 +126,7 @@ public List hubs() { /** * Set the hubs property: List of hubItems. - * + * * @param hubs the hubs value to set. * @return the ConnectivityConfigurationProperties object itself. */ @@ -136,7 +137,7 @@ public ConnectivityConfigurationProperties withHubs(List hubs) { /** * Get the isGlobal property: Flag if global mesh is supported. - * + * * @return the isGlobal value. */ public IsGlobal isGlobal() { @@ -145,7 +146,7 @@ public IsGlobal isGlobal() { /** * Set the isGlobal property: Flag if global mesh is supported. - * + * * @param isGlobal the isGlobal value to set. * @return the ConnectivityConfigurationProperties object itself. */ @@ -156,7 +157,7 @@ public ConnectivityConfigurationProperties withIsGlobal(IsGlobal isGlobal) { /** * Get the appliesToGroups property: Groups for configuration. - * + * * @return the appliesToGroups value. */ public List appliesToGroups() { @@ -165,7 +166,7 @@ public List appliesToGroups() { /** * Set the appliesToGroups property: Groups for configuration. - * + * * @param appliesToGroups the appliesToGroups value to set. * @return the ConnectivityConfigurationProperties object itself. */ @@ -176,7 +177,7 @@ public ConnectivityConfigurationProperties withAppliesToGroups(List e.validate()); } if (appliesToGroups() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property appliesToGroups in model ConnectivityConfigurationProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property appliesToGroups in model ConnectivityConfigurationProperties")); } else { appliesToGroups().forEach(e -> e.validate()); } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/CustomIpPrefixInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/CustomIpPrefixInner.java index 6114f7e4bba80..09c705bd458b8 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/CustomIpPrefixInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/CustomIpPrefixInner.java @@ -13,6 +13,7 @@ import com.azure.resourcemanager.network.models.Geo; import com.azure.resourcemanager.network.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; import java.util.Map; @@ -59,7 +60,7 @@ public CustomIpPrefixInner() { /** * Get the extendedLocation property: The extended location of the custom IP prefix. - * + * * @return the extendedLocation value. */ public ExtendedLocation extendedLocation() { @@ -68,7 +69,7 @@ public ExtendedLocation extendedLocation() { /** * Set the extendedLocation property: The extended location of the custom IP prefix. - * + * * @param extendedLocation the extendedLocation value to set. * @return the CustomIpPrefixInner object itself. */ @@ -79,7 +80,7 @@ public CustomIpPrefixInner withExtendedLocation(ExtendedLocation extendedLocatio /** * Get the innerProperties property: Custom IP prefix properties. - * + * * @return the innerProperties value. */ private CustomIpPrefixPropertiesFormat innerProperties() { @@ -88,7 +89,7 @@ private CustomIpPrefixPropertiesFormat innerProperties() { /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. - * + * * @return the etag value. */ public String etag() { @@ -98,7 +99,7 @@ public String etag() { /** * Get the zones property: A list of availability zones denoting the IP allocated for the resource needs to come * from. - * + * * @return the zones value. */ public List zones() { @@ -108,7 +109,7 @@ public List zones() { /** * Set the zones property: A list of availability zones denoting the IP allocated for the resource needs to come * from. - * + * * @param zones the zones value to set. * @return the CustomIpPrefixInner object itself. */ @@ -119,7 +120,7 @@ public CustomIpPrefixInner withZones(List zones) { /** * Get the id property: Resource ID. - * + * * @return the id value. */ public String id() { @@ -128,7 +129,7 @@ public String id() { /** * Set the id property: Resource ID. - * + * * @param id the id value to set. * @return the CustomIpPrefixInner object itself. */ @@ -157,7 +158,7 @@ public CustomIpPrefixInner withTags(Map tags) { /** * Get the asn property: The ASN for CIDR advertising. Should be an integer as string. - * + * * @return the asn value. */ public String asn() { @@ -166,7 +167,7 @@ public String asn() { /** * Set the asn property: The ASN for CIDR advertising. Should be an integer as string. - * + * * @param asn the asn value to set. * @return the CustomIpPrefixInner object itself. */ @@ -179,9 +180,8 @@ public CustomIpPrefixInner withAsn(String asn) { } /** - * Get the cidr property: The prefix range in CIDR notation. Should include the start address and the prefix - * length. - * + * Get the cidr property: The prefix range in CIDR notation. Should include the start address and the prefix length. + * * @return the cidr value. */ public String cidr() { @@ -189,9 +189,8 @@ public String cidr() { } /** - * Set the cidr property: The prefix range in CIDR notation. Should include the start address and the prefix - * length. - * + * Set the cidr property: The prefix range in CIDR notation. Should include the start address and the prefix length. + * * @param cidr the cidr value to set. * @return the CustomIpPrefixInner object itself. */ @@ -205,7 +204,7 @@ public CustomIpPrefixInner withCidr(String cidr) { /** * Get the signedMessage property: Signed message for WAN validation. - * + * * @return the signedMessage value. */ public String signedMessage() { @@ -214,7 +213,7 @@ public String signedMessage() { /** * Set the signedMessage property: Signed message for WAN validation. - * + * * @param signedMessage the signedMessage value to set. * @return the CustomIpPrefixInner object itself. */ @@ -228,7 +227,7 @@ public CustomIpPrefixInner withSignedMessage(String signedMessage) { /** * Get the authorizationMessage property: Authorization message for WAN validation. - * + * * @return the authorizationMessage value. */ public String authorizationMessage() { @@ -237,7 +236,7 @@ public String authorizationMessage() { /** * Set the authorizationMessage property: Authorization message for WAN validation. - * + * * @param authorizationMessage the authorizationMessage value to set. * @return the CustomIpPrefixInner object itself. */ @@ -251,7 +250,7 @@ public CustomIpPrefixInner withAuthorizationMessage(String authorizationMessage) /** * Get the customIpPrefixParent property: The Parent CustomIpPrefix for IPv6 /64 CustomIpPrefix. - * + * * @return the customIpPrefixParent value. */ public SubResource customIpPrefixParent() { @@ -260,7 +259,7 @@ public SubResource customIpPrefixParent() { /** * Set the customIpPrefixParent property: The Parent CustomIpPrefix for IPv6 /64 CustomIpPrefix. - * + * * @param customIpPrefixParent the customIpPrefixParent value to set. * @return the CustomIpPrefixInner object itself. */ @@ -274,7 +273,7 @@ public CustomIpPrefixInner withCustomIpPrefixParent(SubResource customIpPrefixPa /** * Get the childCustomIpPrefixes property: The list of all Children for IPv6 /48 CustomIpPrefix. - * + * * @return the childCustomIpPrefixes value. */ public List childCustomIpPrefixes() { @@ -283,7 +282,7 @@ public List childCustomIpPrefixes() { /** * Get the commissionedState property: The commissioned state of the Custom IP Prefix. - * + * * @return the commissionedState value. */ public CommissionedState commissionedState() { @@ -292,7 +291,7 @@ public CommissionedState commissionedState() { /** * Set the commissionedState property: The commissioned state of the Custom IP Prefix. - * + * * @param commissionedState the commissionedState value to set. * @return the CustomIpPrefixInner object itself. */ @@ -306,7 +305,7 @@ public CustomIpPrefixInner withCommissionedState(CommissionedState commissionedS /** * Get the expressRouteAdvertise property: Whether to do express route advertise. - * + * * @return the expressRouteAdvertise value. */ public Boolean expressRouteAdvertise() { @@ -315,7 +314,7 @@ public Boolean expressRouteAdvertise() { /** * Set the expressRouteAdvertise property: Whether to do express route advertise. - * + * * @param expressRouteAdvertise the expressRouteAdvertise value to set. * @return the CustomIpPrefixInner object itself. */ @@ -329,7 +328,7 @@ public CustomIpPrefixInner withExpressRouteAdvertise(Boolean expressRouteAdverti /** * Get the geo property: The Geo for CIDR advertising. Should be an Geo code. - * + * * @return the geo value. */ public Geo geo() { @@ -338,7 +337,7 @@ public Geo geo() { /** * Set the geo property: The Geo for CIDR advertising. Should be an Geo code. - * + * * @param geo the geo value to set. * @return the CustomIpPrefixInner object itself. */ @@ -352,7 +351,7 @@ public CustomIpPrefixInner withGeo(Geo geo) { /** * Get the noInternetAdvertise property: Whether to Advertise the range to Internet. - * + * * @return the noInternetAdvertise value. */ public Boolean noInternetAdvertise() { @@ -361,7 +360,7 @@ public Boolean noInternetAdvertise() { /** * Set the noInternetAdvertise property: Whether to Advertise the range to Internet. - * + * * @param noInternetAdvertise the noInternetAdvertise value to set. * @return the CustomIpPrefixInner object itself. */ @@ -375,7 +374,7 @@ public CustomIpPrefixInner withNoInternetAdvertise(Boolean noInternetAdvertise) /** * Get the prefixType property: Type of custom IP prefix. Should be Singular, Parent, or Child. - * + * * @return the prefixType value. */ public CustomIpPrefixType prefixType() { @@ -384,7 +383,7 @@ public CustomIpPrefixType prefixType() { /** * Set the prefixType property: Type of custom IP prefix. Should be Singular, Parent, or Child. - * + * * @param prefixType the prefixType value to set. * @return the CustomIpPrefixInner object itself. */ @@ -398,7 +397,7 @@ public CustomIpPrefixInner withPrefixType(CustomIpPrefixType prefixType) { /** * Get the publicIpPrefixes property: The list of all referenced PublicIpPrefixes. - * + * * @return the publicIpPrefixes value. */ public List publicIpPrefixes() { @@ -407,7 +406,7 @@ public List publicIpPrefixes() { /** * Get the resourceGuid property: The resource GUID property of the custom IP prefix resource. - * + * * @return the resourceGuid value. */ public String resourceGuid() { @@ -416,7 +415,7 @@ public String resourceGuid() { /** * Get the failedReason property: The reason why resource is in failed state. - * + * * @return the failedReason value. */ public String failedReason() { @@ -425,7 +424,7 @@ public String failedReason() { /** * Get the provisioningState property: The provisioning state of the custom IP prefix resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -434,7 +433,7 @@ public ProvisioningState provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/CustomIpPrefixPropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/CustomIpPrefixPropertiesFormat.java index 44dba0bf40cf4..7d00e7326e06b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/CustomIpPrefixPropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/CustomIpPrefixPropertiesFormat.java @@ -11,6 +11,7 @@ import com.azure.resourcemanager.network.models.Geo; import com.azure.resourcemanager.network.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -116,7 +117,7 @@ public CustomIpPrefixPropertiesFormat() { /** * Get the asn property: The ASN for CIDR advertising. Should be an integer as string. - * + * * @return the asn value. */ public String asn() { @@ -125,7 +126,7 @@ public String asn() { /** * Set the asn property: The ASN for CIDR advertising. Should be an integer as string. - * + * * @param asn the asn value to set. * @return the CustomIpPrefixPropertiesFormat object itself. */ @@ -135,9 +136,8 @@ public CustomIpPrefixPropertiesFormat withAsn(String asn) { } /** - * Get the cidr property: The prefix range in CIDR notation. Should include the start address and the prefix - * length. - * + * Get the cidr property: The prefix range in CIDR notation. Should include the start address and the prefix length. + * * @return the cidr value. */ public String cidr() { @@ -145,9 +145,8 @@ public String cidr() { } /** - * Set the cidr property: The prefix range in CIDR notation. Should include the start address and the prefix - * length. - * + * Set the cidr property: The prefix range in CIDR notation. Should include the start address and the prefix length. + * * @param cidr the cidr value to set. * @return the CustomIpPrefixPropertiesFormat object itself. */ @@ -158,7 +157,7 @@ public CustomIpPrefixPropertiesFormat withCidr(String cidr) { /** * Get the signedMessage property: Signed message for WAN validation. - * + * * @return the signedMessage value. */ public String signedMessage() { @@ -167,7 +166,7 @@ public String signedMessage() { /** * Set the signedMessage property: Signed message for WAN validation. - * + * * @param signedMessage the signedMessage value to set. * @return the CustomIpPrefixPropertiesFormat object itself. */ @@ -178,7 +177,7 @@ public CustomIpPrefixPropertiesFormat withSignedMessage(String signedMessage) { /** * Get the authorizationMessage property: Authorization message for WAN validation. - * + * * @return the authorizationMessage value. */ public String authorizationMessage() { @@ -187,7 +186,7 @@ public String authorizationMessage() { /** * Set the authorizationMessage property: Authorization message for WAN validation. - * + * * @param authorizationMessage the authorizationMessage value to set. * @return the CustomIpPrefixPropertiesFormat object itself. */ @@ -198,7 +197,7 @@ public CustomIpPrefixPropertiesFormat withAuthorizationMessage(String authorizat /** * Get the customIpPrefixParent property: The Parent CustomIpPrefix for IPv6 /64 CustomIpPrefix. - * + * * @return the customIpPrefixParent value. */ public SubResource customIpPrefixParent() { @@ -207,7 +206,7 @@ public SubResource customIpPrefixParent() { /** * Set the customIpPrefixParent property: The Parent CustomIpPrefix for IPv6 /64 CustomIpPrefix. - * + * * @param customIpPrefixParent the customIpPrefixParent value to set. * @return the CustomIpPrefixPropertiesFormat object itself. */ @@ -218,7 +217,7 @@ public CustomIpPrefixPropertiesFormat withCustomIpPrefixParent(SubResource custo /** * Get the childCustomIpPrefixes property: The list of all Children for IPv6 /48 CustomIpPrefix. - * + * * @return the childCustomIpPrefixes value. */ public List childCustomIpPrefixes() { @@ -227,7 +226,7 @@ public List childCustomIpPrefixes() { /** * Get the commissionedState property: The commissioned state of the Custom IP Prefix. - * + * * @return the commissionedState value. */ public CommissionedState commissionedState() { @@ -236,7 +235,7 @@ public CommissionedState commissionedState() { /** * Set the commissionedState property: The commissioned state of the Custom IP Prefix. - * + * * @param commissionedState the commissionedState value to set. * @return the CustomIpPrefixPropertiesFormat object itself. */ @@ -247,7 +246,7 @@ public CustomIpPrefixPropertiesFormat withCommissionedState(CommissionedState co /** * Get the expressRouteAdvertise property: Whether to do express route advertise. - * + * * @return the expressRouteAdvertise value. */ public Boolean expressRouteAdvertise() { @@ -256,7 +255,7 @@ public Boolean expressRouteAdvertise() { /** * Set the expressRouteAdvertise property: Whether to do express route advertise. - * + * * @param expressRouteAdvertise the expressRouteAdvertise value to set. * @return the CustomIpPrefixPropertiesFormat object itself. */ @@ -267,7 +266,7 @@ public CustomIpPrefixPropertiesFormat withExpressRouteAdvertise(Boolean expressR /** * Get the geo property: The Geo for CIDR advertising. Should be an Geo code. - * + * * @return the geo value. */ public Geo geo() { @@ -276,7 +275,7 @@ public Geo geo() { /** * Set the geo property: The Geo for CIDR advertising. Should be an Geo code. - * + * * @param geo the geo value to set. * @return the CustomIpPrefixPropertiesFormat object itself. */ @@ -287,7 +286,7 @@ public CustomIpPrefixPropertiesFormat withGeo(Geo geo) { /** * Get the noInternetAdvertise property: Whether to Advertise the range to Internet. - * + * * @return the noInternetAdvertise value. */ public Boolean noInternetAdvertise() { @@ -296,7 +295,7 @@ public Boolean noInternetAdvertise() { /** * Set the noInternetAdvertise property: Whether to Advertise the range to Internet. - * + * * @param noInternetAdvertise the noInternetAdvertise value to set. * @return the CustomIpPrefixPropertiesFormat object itself. */ @@ -307,7 +306,7 @@ public CustomIpPrefixPropertiesFormat withNoInternetAdvertise(Boolean noInternet /** * Get the prefixType property: Type of custom IP prefix. Should be Singular, Parent, or Child. - * + * * @return the prefixType value. */ public CustomIpPrefixType prefixType() { @@ -316,7 +315,7 @@ public CustomIpPrefixType prefixType() { /** * Set the prefixType property: Type of custom IP prefix. Should be Singular, Parent, or Child. - * + * * @param prefixType the prefixType value to set. * @return the CustomIpPrefixPropertiesFormat object itself. */ @@ -327,7 +326,7 @@ public CustomIpPrefixPropertiesFormat withPrefixType(CustomIpPrefixType prefixTy /** * Get the publicIpPrefixes property: The list of all referenced PublicIpPrefixes. - * + * * @return the publicIpPrefixes value. */ public List publicIpPrefixes() { @@ -336,7 +335,7 @@ public List publicIpPrefixes() { /** * Get the resourceGuid property: The resource GUID property of the custom IP prefix resource. - * + * * @return the resourceGuid value. */ public String resourceGuid() { @@ -345,7 +344,7 @@ public String resourceGuid() { /** * Get the failedReason property: The reason why resource is in failed state. - * + * * @return the failedReason value. */ public String failedReason() { @@ -354,7 +353,7 @@ public String failedReason() { /** * Get the provisioningState property: The provisioning state of the custom IP prefix resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -363,7 +362,7 @@ public ProvisioningState provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DdosCustomPolicyPropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DdosCustomPolicyPropertiesFormat.java index ac244077bce9c..1700281321ace 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DdosCustomPolicyPropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DdosCustomPolicyPropertiesFormat.java @@ -14,8 +14,7 @@ @Immutable public final class DdosCustomPolicyPropertiesFormat { /* - * The resource GUID property of the DDoS custom policy resource. It uniquely identifies the resource, even if the - * user changes its name or migrate the resource across subscriptions or resource groups. + * The resource GUID property of the DDoS custom policy resource. It uniquely identifies the resource, even if the user changes its name or migrate the resource across subscriptions or resource groups. */ @JsonProperty(value = "resourceGuid", access = JsonProperty.Access.WRITE_ONLY) private String resourceGuid; diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DdosProtectionPlanInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DdosProtectionPlanInner.java index 24e97e5bee4e7..0e9559f16a87a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DdosProtectionPlanInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DdosProtectionPlanInner.java @@ -9,6 +9,7 @@ import com.azure.core.management.SubResource; import com.azure.resourcemanager.network.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; import java.util.Map; @@ -37,7 +38,7 @@ public DdosProtectionPlanInner() { /** * Get the innerProperties property: Properties of the DDoS protection plan. - * + * * @return the innerProperties value. */ private DdosProtectionPlanPropertiesFormat innerProperties() { @@ -46,7 +47,7 @@ private DdosProtectionPlanPropertiesFormat innerProperties() { /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. - * + * * @return the etag value. */ public String etag() { @@ -75,7 +76,7 @@ public DdosProtectionPlanInner withTags(Map tags) { * 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 * resource groups. - * + * * @return the resourceGuid value. */ public String resourceGuid() { @@ -84,7 +85,7 @@ public String resourceGuid() { /** * Get the provisioningState property: The provisioning state of the DDoS protection plan resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -94,7 +95,7 @@ public ProvisioningState provisioningState() { /** * Get the publicIpAddresses property: The list of public IPs associated with the DDoS protection plan resource. * This list is read-only. - * + * * @return the publicIpAddresses value. */ public List publicIpAddresses() { @@ -102,9 +103,9 @@ public List publicIpAddresses() { } /** - * Get the virtualNetworks property: The list of virtual networks associated with the DDoS protection plan - * resource. This list is read-only. - * + * Get the virtualNetworks property: The list of virtual networks associated with the DDoS protection plan resource. + * This list is read-only. + * * @return the virtualNetworks value. */ public List virtualNetworks() { @@ -113,7 +114,7 @@ public List virtualNetworks() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DdosProtectionPlanPropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DdosProtectionPlanPropertiesFormat.java index 217001636d4a8..3f1823faf19b6 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DdosProtectionPlanPropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DdosProtectionPlanPropertiesFormat.java @@ -8,6 +8,7 @@ import com.azure.core.management.SubResource; import com.azure.resourcemanager.network.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -16,8 +17,7 @@ @Immutable public final class DdosProtectionPlanPropertiesFormat { /* - * 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 resource groups. + * 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 resource groups. */ @JsonProperty(value = "resourceGuid", access = JsonProperty.Access.WRITE_ONLY) private String resourceGuid; @@ -50,7 +50,7 @@ public DdosProtectionPlanPropertiesFormat() { * 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 * resource groups. - * + * * @return the resourceGuid value. */ public String resourceGuid() { @@ -59,7 +59,7 @@ public String resourceGuid() { /** * Get the provisioningState property: The provisioning state of the DDoS protection plan resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -69,7 +69,7 @@ public ProvisioningState provisioningState() { /** * Get the publicIpAddresses property: The list of public IPs associated with the DDoS protection plan resource. * This list is read-only. - * + * * @return the publicIpAddresses value. */ public List publicIpAddresses() { @@ -77,9 +77,9 @@ public List publicIpAddresses() { } /** - * Get the virtualNetworks property: The list of virtual networks associated with the DDoS protection plan - * resource. This list is read-only. - * + * Get the virtualNetworks property: The list of virtual networks associated with the DDoS protection plan resource. + * This list is read-only. + * * @return the virtualNetworks value. */ public List virtualNetworks() { @@ -88,7 +88,7 @@ public List virtualNetworks() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DefaultAdminPropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DefaultAdminPropertiesFormat.java index df7a2f23ba74f..ba2afdc757c32 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DefaultAdminPropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/DefaultAdminPropertiesFormat.java @@ -11,6 +11,7 @@ import com.azure.resourcemanager.network.models.SecurityConfigurationRuleDirection; import com.azure.resourcemanager.network.models.SecurityConfigurationRuleProtocol; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -67,8 +68,7 @@ public final class DefaultAdminPropertiesFormat { private SecurityConfigurationRuleAccess access; /* - * 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. + * 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. */ @JsonProperty(value = "priority", access = JsonProperty.Access.WRITE_ONLY) private Integer priority; @@ -99,7 +99,7 @@ public DefaultAdminPropertiesFormat() { /** * Get the description property: A description for this rule. Restricted to 140 chars. - * + * * @return the description value. */ public String description() { @@ -108,7 +108,7 @@ public String description() { /** * Get the flag property: Default rule flag. - * + * * @return the flag value. */ public String flag() { @@ -117,7 +117,7 @@ public String flag() { /** * Set the flag property: Default rule flag. - * + * * @param flag the flag value to set. * @return the DefaultAdminPropertiesFormat object itself. */ @@ -128,7 +128,7 @@ public DefaultAdminPropertiesFormat withFlag(String flag) { /** * Get the protocol property: Network protocol this rule applies to. - * + * * @return the protocol value. */ public SecurityConfigurationRuleProtocol protocol() { @@ -137,7 +137,7 @@ public SecurityConfigurationRuleProtocol protocol() { /** * Get the sources property: The CIDR or source IP ranges. - * + * * @return the sources value. */ public List sources() { @@ -146,7 +146,7 @@ public List sources() { /** * Get the destinations property: The destination address prefixes. CIDR or destination IP ranges. - * + * * @return the destinations value. */ public List destinations() { @@ -155,7 +155,7 @@ public List destinations() { /** * Get the sourcePortRanges property: The source port ranges. - * + * * @return the sourcePortRanges value. */ public List sourcePortRanges() { @@ -164,7 +164,7 @@ public List sourcePortRanges() { /** * Get the destinationPortRanges property: The destination port ranges. - * + * * @return the destinationPortRanges value. */ public List destinationPortRanges() { @@ -173,7 +173,7 @@ public List destinationPortRanges() { /** * Get the access property: Indicates the access allowed for this particular rule. - * + * * @return the access value. */ public SecurityConfigurationRuleAccess access() { @@ -184,7 +184,7 @@ public SecurityConfigurationRuleAccess access() { * 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 * rule. - * + * * @return the priority value. */ public Integer priority() { @@ -193,7 +193,7 @@ public Integer priority() { /** * Get the direction property: Indicates if the traffic matched against the rule in inbound or outbound. - * + * * @return the direction value. */ public SecurityConfigurationRuleDirection direction() { @@ -202,7 +202,7 @@ public SecurityConfigurationRuleDirection direction() { /** * Get the provisioningState property: The provisioning state of the resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -211,7 +211,7 @@ public ProvisioningState provisioningState() { /** * Get the resourceGuid property: Unique identifier for this resource. - * + * * @return the resourceGuid value. */ public String resourceGuid() { @@ -220,7 +220,7 @@ public String resourceGuid() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitInner.java index 991ed3a3511b4..630abe2a847d7 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ExpressRouteCircuitInner.java @@ -12,6 +12,7 @@ import com.azure.resourcemanager.network.models.ProvisioningState; import com.azure.resourcemanager.network.models.ServiceProviderProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; import java.util.Map; @@ -52,7 +53,7 @@ public ExpressRouteCircuitInner() { /** * Get the sku property: The SKU. - * + * * @return the sku value. */ public ExpressRouteCircuitSku sku() { @@ -61,7 +62,7 @@ public ExpressRouteCircuitSku sku() { /** * Set the sku property: The SKU. - * + * * @param sku the sku value to set. * @return the ExpressRouteCircuitInner object itself. */ @@ -72,7 +73,7 @@ public ExpressRouteCircuitInner withSku(ExpressRouteCircuitSku sku) { /** * Get the innerProperties property: Properties of the express route circuit. - * + * * @return the innerProperties value. */ private ExpressRouteCircuitPropertiesFormat innerProperties() { @@ -81,7 +82,7 @@ private ExpressRouteCircuitPropertiesFormat innerProperties() { /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. - * + * * @return the etag value. */ public String etag() { @@ -90,7 +91,7 @@ public String etag() { /** * Get the id property: Resource ID. - * + * * @return the id value. */ public String id() { @@ -99,7 +100,7 @@ public String id() { /** * Set the id property: Resource ID. - * + * * @param id the id value to set. * @return the ExpressRouteCircuitInner object itself. */ @@ -128,7 +129,7 @@ public ExpressRouteCircuitInner withTags(Map tags) { /** * Get the allowClassicOperations property: Allow classic operations. - * + * * @return the allowClassicOperations value. */ public Boolean allowClassicOperations() { @@ -137,7 +138,7 @@ public Boolean allowClassicOperations() { /** * Set the allowClassicOperations property: Allow classic operations. - * + * * @param allowClassicOperations the allowClassicOperations value to set. * @return the ExpressRouteCircuitInner object itself. */ @@ -151,7 +152,7 @@ public ExpressRouteCircuitInner withAllowClassicOperations(Boolean allowClassicO /** * Get the circuitProvisioningState property: The CircuitProvisioningState state of the resource. - * + * * @return the circuitProvisioningState value. */ public String circuitProvisioningState() { @@ -160,7 +161,7 @@ public String circuitProvisioningState() { /** * Set the circuitProvisioningState property: The CircuitProvisioningState state of the resource. - * + * * @param circuitProvisioningState the circuitProvisioningState value to set. * @return the ExpressRouteCircuitInner object itself. */ @@ -174,7 +175,7 @@ public ExpressRouteCircuitInner withCircuitProvisioningState(String circuitProvi /** * Get the serviceProviderProvisioningState property: The ServiceProviderProvisioningState state of the resource. - * + * * @return the serviceProviderProvisioningState value. */ public ServiceProviderProvisioningState serviceProviderProvisioningState() { @@ -183,7 +184,7 @@ public ServiceProviderProvisioningState serviceProviderProvisioningState() { /** * Set the serviceProviderProvisioningState property: The ServiceProviderProvisioningState state of the resource. - * + * * @param serviceProviderProvisioningState the serviceProviderProvisioningState value to set. * @return the ExpressRouteCircuitInner object itself. */ @@ -198,7 +199,7 @@ public ServiceProviderProvisioningState serviceProviderProvisioningState() { /** * Get the authorizations property: The list of authorizations. - * + * * @return the authorizations value. */ public List authorizations() { @@ -207,7 +208,7 @@ public List authorizations() { /** * Set the authorizations property: The list of authorizations. - * + * * @param authorizations the authorizations value to set. * @return the ExpressRouteCircuitInner object itself. */ @@ -221,7 +222,7 @@ public ExpressRouteCircuitInner withAuthorizations(List peerings() { @@ -230,7 +231,7 @@ public List peerings() { /** * Set the peerings property: The list of peerings. - * + * * @param peerings the peerings value to set. * @return the ExpressRouteCircuitInner object itself. */ @@ -244,7 +245,7 @@ public ExpressRouteCircuitInner withPeerings(List authorizations() { @@ -191,7 +198,7 @@ public List authorizations() { /** * Set the authorizations property: The list of authorizations. - * + * * @param authorizations the authorizations value to set. * @return the ExpressRouteCircuitPropertiesFormat object itself. */ @@ -203,7 +210,7 @@ public List authorizations() { /** * Get the peerings property: The list of peerings. - * + * * @return the peerings value. */ public List peerings() { @@ -212,7 +219,7 @@ public List peerings() { /** * Set the peerings property: The list of peerings. - * + * * @param peerings the peerings value to set. * @return the ExpressRouteCircuitPropertiesFormat object itself. */ @@ -223,7 +230,7 @@ public ExpressRouteCircuitPropertiesFormat withPeerings(List expressRouteConnections() { @@ -85,7 +86,7 @@ public List expressRouteConnections() { /** * Set the expressRouteConnections property: List of ExpressRoute connections to the ExpressRoute gateway. - * + * * @param expressRouteConnections the expressRouteConnections value to set. * @return the ExpressRouteGatewayProperties object itself. */ @@ -97,7 +98,7 @@ public List expressRouteConnections() { /** * Get the provisioningState property: The provisioning state of the express route gateway resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -106,7 +107,7 @@ public ProvisioningState provisioningState() { /** * Get the virtualHub property: The Virtual Hub where the ExpressRoute gateway is or will be deployed. - * + * * @return the virtualHub value. */ public VirtualHubId virtualHub() { @@ -115,7 +116,7 @@ public VirtualHubId virtualHub() { /** * Set the virtualHub property: The Virtual Hub where the ExpressRoute gateway is or will be deployed. - * + * * @param virtualHub the virtualHub value to set. * @return the ExpressRouteGatewayProperties object itself. */ @@ -127,7 +128,7 @@ public ExpressRouteGatewayProperties withVirtualHub(VirtualHubId virtualHub) { /** * Get the allowNonVirtualWanTraffic property: Configures this gateway to accept traffic from non Virtual WAN * networks. - * + * * @return the allowNonVirtualWanTraffic value. */ public Boolean allowNonVirtualWanTraffic() { @@ -137,7 +138,7 @@ public Boolean allowNonVirtualWanTraffic() { /** * Set the allowNonVirtualWanTraffic property: Configures this gateway to accept traffic from non Virtual WAN * networks. - * + * * @param allowNonVirtualWanTraffic the allowNonVirtualWanTraffic value to set. * @return the ExpressRouteGatewayProperties object itself. */ @@ -148,7 +149,7 @@ public ExpressRouteGatewayProperties withAllowNonVirtualWanTraffic(Boolean allow /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { @@ -159,8 +160,9 @@ public void validate() { expressRouteConnections().forEach(e -> e.validate()); } if (virtualHub() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property virtualHub in model ExpressRouteGatewayProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property virtualHub in model ExpressRouteGatewayProperties")); } else { virtualHub().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyDraftInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyDraftInner.java new file mode 100644 index 0000000000000..9fa70763b6832 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyDraftInner.java @@ -0,0 +1,309 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest 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.management.SubResource; +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.FirewallPolicySnat; +import com.azure.resourcemanager.network.models.FirewallPolicySql; +import com.azure.resourcemanager.network.models.FirewallPolicyThreatIntelWhitelist; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Map; + +/** + * FirewallPolicy Resource. + */ +@Fluent +public final class FirewallPolicyDraftInner extends Resource { + /* + * Properties of the firewall policy. + */ + @JsonProperty(value = "properties") + private FirewallPolicyDraftProperties innerProperties; + + /* + * Resource ID. + */ + @JsonProperty(value = "id") + private String id; + + /** + * Creates an instance of FirewallPolicyDraftInner class. + */ + public FirewallPolicyDraftInner() { + } + + /** + * Get the innerProperties property: Properties of the firewall policy. + * + * @return the innerProperties value. + */ + private FirewallPolicyDraftProperties innerProperties() { + return this.innerProperties; + } + + /** + * 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 FirewallPolicyDraftInner object itself. + */ + public FirewallPolicyDraftInner withId(String id) { + this.id = id; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public FirewallPolicyDraftInner withLocation(String location) { + super.withLocation(location); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public FirewallPolicyDraftInner withTags(Map tags) { + super.withTags(tags); + return this; + } + + /** + * Get the basePolicy property: The parent firewall policy from which rules are inherited. + * + * @return the basePolicy value. + */ + public SubResource basePolicy() { + return this.innerProperties() == null ? null : this.innerProperties().basePolicy(); + } + + /** + * Set the basePolicy property: The parent firewall policy from which rules are inherited. + * + * @param basePolicy the basePolicy value to set. + * @return the FirewallPolicyDraftInner object itself. + */ + public FirewallPolicyDraftInner withBasePolicy(SubResource basePolicy) { + if (this.innerProperties() == null) { + this.innerProperties = new FirewallPolicyDraftProperties(); + } + this.innerProperties().withBasePolicy(basePolicy); + return this; + } + + /** + * Get the threatIntelMode property: The operation mode for Threat Intelligence. + * + * @return the threatIntelMode value. + */ + public AzureFirewallThreatIntelMode threatIntelMode() { + return this.innerProperties() == null ? null : this.innerProperties().threatIntelMode(); + } + + /** + * Set the threatIntelMode property: The operation mode for Threat Intelligence. + * + * @param threatIntelMode the threatIntelMode value to set. + * @return the FirewallPolicyDraftInner object itself. + */ + public FirewallPolicyDraftInner withThreatIntelMode(AzureFirewallThreatIntelMode threatIntelMode) { + if (this.innerProperties() == null) { + this.innerProperties = new FirewallPolicyDraftProperties(); + } + this.innerProperties().withThreatIntelMode(threatIntelMode); + return this; + } + + /** + * Get the threatIntelWhitelist property: ThreatIntel Whitelist for Firewall Policy. + * + * @return the threatIntelWhitelist value. + */ + public FirewallPolicyThreatIntelWhitelist threatIntelWhitelist() { + return this.innerProperties() == null ? null : this.innerProperties().threatIntelWhitelist(); + } + + /** + * Set the threatIntelWhitelist property: ThreatIntel Whitelist for Firewall Policy. + * + * @param threatIntelWhitelist the threatIntelWhitelist value to set. + * @return the FirewallPolicyDraftInner object itself. + */ + public FirewallPolicyDraftInner withThreatIntelWhitelist(FirewallPolicyThreatIntelWhitelist threatIntelWhitelist) { + if (this.innerProperties() == null) { + this.innerProperties = new FirewallPolicyDraftProperties(); + } + this.innerProperties().withThreatIntelWhitelist(threatIntelWhitelist); + return this; + } + + /** + * Get the insights property: Insights on Firewall Policy. + * + * @return the insights value. + */ + public FirewallPolicyInsights insights() { + return this.innerProperties() == null ? null : this.innerProperties().insights(); + } + + /** + * Set the insights property: Insights on Firewall Policy. + * + * @param insights the insights value to set. + * @return the FirewallPolicyDraftInner object itself. + */ + public FirewallPolicyDraftInner withInsights(FirewallPolicyInsights insights) { + if (this.innerProperties() == null) { + this.innerProperties = new FirewallPolicyDraftProperties(); + } + this.innerProperties().withInsights(insights); + return this; + } + + /** + * Get the snat property: The private IP addresses/IP ranges to which traffic will not be SNAT. + * + * @return the snat value. + */ + public FirewallPolicySnat snat() { + return this.innerProperties() == null ? null : this.innerProperties().snat(); + } + + /** + * Set the snat property: The private IP addresses/IP ranges to which traffic will not be SNAT. + * + * @param snat the snat value to set. + * @return the FirewallPolicyDraftInner object itself. + */ + public FirewallPolicyDraftInner withSnat(FirewallPolicySnat snat) { + if (this.innerProperties() == null) { + this.innerProperties = new FirewallPolicyDraftProperties(); + } + this.innerProperties().withSnat(snat); + return this; + } + + /** + * Get the sql property: SQL Settings definition. + * + * @return the sql value. + */ + public FirewallPolicySql sql() { + return this.innerProperties() == null ? null : this.innerProperties().sql(); + } + + /** + * Set the sql property: SQL Settings definition. + * + * @param sql the sql value to set. + * @return the FirewallPolicyDraftInner object itself. + */ + public FirewallPolicyDraftInner withSql(FirewallPolicySql sql) { + if (this.innerProperties() == null) { + this.innerProperties = new FirewallPolicyDraftProperties(); + } + this.innerProperties().withSql(sql); + return this; + } + + /** + * Get the dnsSettings property: DNS Proxy Settings definition. + * + * @return the dnsSettings value. + */ + public DnsSettings dnsSettings() { + return this.innerProperties() == null ? null : this.innerProperties().dnsSettings(); + } + + /** + * Set the dnsSettings property: DNS Proxy Settings definition. + * + * @param dnsSettings the dnsSettings value to set. + * @return the FirewallPolicyDraftInner object itself. + */ + public FirewallPolicyDraftInner withDnsSettings(DnsSettings dnsSettings) { + if (this.innerProperties() == null) { + this.innerProperties = new FirewallPolicyDraftProperties(); + } + this.innerProperties().withDnsSettings(dnsSettings); + return this; + } + + /** + * Get the explicitProxy property: Explicit Proxy Settings definition. + * + * @return the explicitProxy value. + */ + public ExplicitProxy explicitProxy() { + return this.innerProperties() == null ? null : this.innerProperties().explicitProxy(); + } + + /** + * Set the explicitProxy property: Explicit Proxy Settings definition. + * + * @param explicitProxy the explicitProxy value to set. + * @return the FirewallPolicyDraftInner object itself. + */ + public FirewallPolicyDraftInner withExplicitProxy(ExplicitProxy explicitProxy) { + if (this.innerProperties() == null) { + this.innerProperties = new FirewallPolicyDraftProperties(); + } + this.innerProperties().withExplicitProxy(explicitProxy); + return this; + } + + /** + * Get the intrusionDetection property: The configuration for Intrusion detection. + * + * @return the intrusionDetection value. + */ + public FirewallPolicyIntrusionDetection intrusionDetection() { + return this.innerProperties() == null ? null : this.innerProperties().intrusionDetection(); + } + + /** + * Set the intrusionDetection property: The configuration for Intrusion detection. + * + * @param intrusionDetection the intrusionDetection value to set. + * @return the FirewallPolicyDraftInner object itself. + */ + public FirewallPolicyDraftInner withIntrusionDetection(FirewallPolicyIntrusionDetection intrusionDetection) { + if (this.innerProperties() == null) { + this.innerProperties = new FirewallPolicyDraftProperties(); + } + this.innerProperties().withIntrusionDetection(intrusionDetection); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (innerProperties() != null) { + innerProperties().validate(); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyDraftProperties.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyDraftProperties.java new file mode 100644 index 0000000000000..1f1b0b969f179 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyDraftProperties.java @@ -0,0 +1,293 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.network.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.SubResource; +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.FirewallPolicySnat; +import com.azure.resourcemanager.network.models.FirewallPolicySql; +import com.azure.resourcemanager.network.models.FirewallPolicyThreatIntelWhitelist; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The FirewallPolicyDraftProperties model. + */ +@Fluent +public final class FirewallPolicyDraftProperties { + /* + * The parent firewall policy from which rules are inherited. + */ + @JsonProperty(value = "basePolicy") + private SubResource basePolicy; + + /* + * The operation mode for Threat Intelligence. + */ + @JsonProperty(value = "threatIntelMode") + private AzureFirewallThreatIntelMode threatIntelMode; + + /* + * ThreatIntel Whitelist for Firewall Policy. + */ + @JsonProperty(value = "threatIntelWhitelist") + private FirewallPolicyThreatIntelWhitelist threatIntelWhitelist; + + /* + * Insights on Firewall Policy. + */ + @JsonProperty(value = "insights") + private FirewallPolicyInsights insights; + + /* + * The private IP addresses/IP ranges to which traffic will not be SNAT. + */ + @JsonProperty(value = "snat") + private FirewallPolicySnat snat; + + /* + * SQL Settings definition. + */ + @JsonProperty(value = "sql") + private FirewallPolicySql sql; + + /* + * DNS Proxy Settings definition. + */ + @JsonProperty(value = "dnsSettings") + private DnsSettings dnsSettings; + + /* + * Explicit Proxy Settings definition. + */ + @JsonProperty(value = "explicitProxy") + private ExplicitProxy explicitProxy; + + /* + * The configuration for Intrusion detection. + */ + @JsonProperty(value = "intrusionDetection") + private FirewallPolicyIntrusionDetection intrusionDetection; + + /** + * Creates an instance of FirewallPolicyDraftProperties class. + */ + public FirewallPolicyDraftProperties() { + } + + /** + * Get the basePolicy property: The parent firewall policy from which rules are inherited. + * + * @return the basePolicy value. + */ + public SubResource basePolicy() { + return this.basePolicy; + } + + /** + * Set the basePolicy property: The parent firewall policy from which rules are inherited. + * + * @param basePolicy the basePolicy value to set. + * @return the FirewallPolicyDraftProperties object itself. + */ + public FirewallPolicyDraftProperties withBasePolicy(SubResource basePolicy) { + this.basePolicy = basePolicy; + return this; + } + + /** + * Get the threatIntelMode property: The operation mode for Threat Intelligence. + * + * @return the threatIntelMode value. + */ + public AzureFirewallThreatIntelMode threatIntelMode() { + return this.threatIntelMode; + } + + /** + * Set the threatIntelMode property: The operation mode for Threat Intelligence. + * + * @param threatIntelMode the threatIntelMode value to set. + * @return the FirewallPolicyDraftProperties object itself. + */ + public FirewallPolicyDraftProperties withThreatIntelMode(AzureFirewallThreatIntelMode threatIntelMode) { + this.threatIntelMode = threatIntelMode; + return this; + } + + /** + * Get the threatIntelWhitelist property: ThreatIntel Whitelist for Firewall Policy. + * + * @return the threatIntelWhitelist value. + */ + public FirewallPolicyThreatIntelWhitelist threatIntelWhitelist() { + return this.threatIntelWhitelist; + } + + /** + * Set the threatIntelWhitelist property: ThreatIntel Whitelist for Firewall Policy. + * + * @param threatIntelWhitelist the threatIntelWhitelist value to set. + * @return the FirewallPolicyDraftProperties object itself. + */ + public FirewallPolicyDraftProperties + withThreatIntelWhitelist(FirewallPolicyThreatIntelWhitelist threatIntelWhitelist) { + this.threatIntelWhitelist = threatIntelWhitelist; + return this; + } + + /** + * Get the insights property: Insights on Firewall Policy. + * + * @return the insights value. + */ + public FirewallPolicyInsights insights() { + return this.insights; + } + + /** + * Set the insights property: Insights on Firewall Policy. + * + * @param insights the insights value to set. + * @return the FirewallPolicyDraftProperties object itself. + */ + public FirewallPolicyDraftProperties withInsights(FirewallPolicyInsights insights) { + this.insights = insights; + return this; + } + + /** + * Get the snat property: The private IP addresses/IP ranges to which traffic will not be SNAT. + * + * @return the snat value. + */ + public FirewallPolicySnat snat() { + return this.snat; + } + + /** + * Set the snat property: The private IP addresses/IP ranges to which traffic will not be SNAT. + * + * @param snat the snat value to set. + * @return the FirewallPolicyDraftProperties object itself. + */ + public FirewallPolicyDraftProperties withSnat(FirewallPolicySnat snat) { + this.snat = snat; + return this; + } + + /** + * Get the sql property: SQL Settings definition. + * + * @return the sql value. + */ + public FirewallPolicySql sql() { + return this.sql; + } + + /** + * Set the sql property: SQL Settings definition. + * + * @param sql the sql value to set. + * @return the FirewallPolicyDraftProperties object itself. + */ + public FirewallPolicyDraftProperties withSql(FirewallPolicySql sql) { + this.sql = sql; + return this; + } + + /** + * Get the dnsSettings property: DNS Proxy Settings definition. + * + * @return the dnsSettings value. + */ + public DnsSettings dnsSettings() { + return this.dnsSettings; + } + + /** + * Set the dnsSettings property: DNS Proxy Settings definition. + * + * @param dnsSettings the dnsSettings value to set. + * @return the FirewallPolicyDraftProperties object itself. + */ + public FirewallPolicyDraftProperties withDnsSettings(DnsSettings dnsSettings) { + this.dnsSettings = dnsSettings; + return this; + } + + /** + * Get the explicitProxy property: Explicit Proxy Settings definition. + * + * @return the explicitProxy value. + */ + public ExplicitProxy explicitProxy() { + return this.explicitProxy; + } + + /** + * Set the explicitProxy property: Explicit Proxy Settings definition. + * + * @param explicitProxy the explicitProxy value to set. + * @return the FirewallPolicyDraftProperties object itself. + */ + public FirewallPolicyDraftProperties withExplicitProxy(ExplicitProxy explicitProxy) { + this.explicitProxy = explicitProxy; + return this; + } + + /** + * Get the intrusionDetection property: The configuration for Intrusion detection. + * + * @return the intrusionDetection value. + */ + public FirewallPolicyIntrusionDetection intrusionDetection() { + return this.intrusionDetection; + } + + /** + * Set the intrusionDetection property: The configuration for Intrusion detection. + * + * @param intrusionDetection the intrusionDetection value to set. + * @return the FirewallPolicyDraftProperties object itself. + */ + public FirewallPolicyDraftProperties withIntrusionDetection(FirewallPolicyIntrusionDetection intrusionDetection) { + this.intrusionDetection = intrusionDetection; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (threatIntelWhitelist() != null) { + threatIntelWhitelist().validate(); + } + if (insights() != null) { + insights().validate(); + } + if (snat() != null) { + snat().validate(); + } + if (sql() != null) { + sql().validate(); + } + if (dnsSettings() != null) { + dnsSettings().validate(); + } + if (explicitProxy() != null) { + explicitProxy().validate(); + } + if (intrusionDetection() != null) { + intrusionDetection().validate(); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupDraftInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupDraftInner.java new file mode 100644 index 0000000000000..019280c02bee9 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupDraftInner.java @@ -0,0 +1,159 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.network.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.SubResource; +import com.azure.resourcemanager.network.models.FirewallPolicyRuleCollection; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.List; + +/** + * Rule Collection Group resource. + */ +@Fluent +public final class FirewallPolicyRuleCollectionGroupDraftInner extends SubResource { + /* + * The properties of the firewall policy rule collection group. + */ + @JsonProperty(value = "properties") + private FirewallPolicyRuleCollectionGroupDraftProperties innerProperties; + + /* + * The name of the resource that is unique within a resource group. This name can be used to access the resource. + */ + @JsonProperty(value = "name") + private String name; + + /* + * Rule Group type. + */ + @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) + private String type; + + /** + * Creates an instance of FirewallPolicyRuleCollectionGroupDraftInner class. + */ + public FirewallPolicyRuleCollectionGroupDraftInner() { + } + + /** + * Get the innerProperties property: The properties of the firewall policy rule collection group. + * + * @return the innerProperties value. + */ + private FirewallPolicyRuleCollectionGroupDraftProperties 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 FirewallPolicyRuleCollectionGroupDraftInner object itself. + */ + public FirewallPolicyRuleCollectionGroupDraftInner withName(String name) { + this.name = name; + return this; + } + + /** + * Get the type property: Rule Group type. + * + * @return the type value. + */ + public String type() { + return this.type; + } + + /** + * {@inheritDoc} + */ + @Override + public FirewallPolicyRuleCollectionGroupDraftInner withId(String id) { + super.withId(id); + return this; + } + + /** + * Get the size property: A read-only string that represents the size of the + * FirewallPolicyRuleCollectionGroupProperties in MB. (ex 1.2MB). + * + * @return the size value. + */ + public String size() { + return this.innerProperties() == null ? null : this.innerProperties().size(); + } + + /** + * Get the priority property: Priority of the Firewall Policy Rule Collection Group resource. + * + * @return the priority value. + */ + public Integer priority() { + return this.innerProperties() == null ? null : this.innerProperties().priority(); + } + + /** + * Set the priority property: Priority of the Firewall Policy Rule Collection Group resource. + * + * @param priority the priority value to set. + * @return the FirewallPolicyRuleCollectionGroupDraftInner object itself. + */ + public FirewallPolicyRuleCollectionGroupDraftInner withPriority(Integer priority) { + if (this.innerProperties() == null) { + this.innerProperties = new FirewallPolicyRuleCollectionGroupDraftProperties(); + } + this.innerProperties().withPriority(priority); + return this; + } + + /** + * Get the ruleCollections property: Group of Firewall Policy rule collections. + * + * @return the ruleCollections value. + */ + public List ruleCollections() { + return this.innerProperties() == null ? null : this.innerProperties().ruleCollections(); + } + + /** + * Set the ruleCollections property: Group of Firewall Policy rule collections. + * + * @param ruleCollections the ruleCollections value to set. + * @return the FirewallPolicyRuleCollectionGroupDraftInner object itself. + */ + public FirewallPolicyRuleCollectionGroupDraftInner + withRuleCollections(List ruleCollections) { + if (this.innerProperties() == null) { + this.innerProperties = new FirewallPolicyRuleCollectionGroupDraftProperties(); + } + this.innerProperties().withRuleCollections(ruleCollections); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (innerProperties() != null) { + innerProperties().validate(); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupDraftProperties.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupDraftProperties.java new file mode 100644 index 0000000000000..a94c0a52aba3b --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupDraftProperties.java @@ -0,0 +1,103 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.network.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.resourcemanager.network.models.FirewallPolicyRuleCollection; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.List; + +/** + * Properties of the rule collection group draft. + */ +@Fluent +public final class FirewallPolicyRuleCollectionGroupDraftProperties { + /* + * A read-only string that represents the size of the FirewallPolicyRuleCollectionGroupProperties in MB. (ex 1.2MB) + */ + @JsonProperty(value = "size", access = JsonProperty.Access.WRITE_ONLY) + private String size; + + /* + * Priority of the Firewall Policy Rule Collection Group resource. + */ + @JsonProperty(value = "priority") + private Integer priority; + + /* + * Group of Firewall Policy rule collections. + */ + @JsonProperty(value = "ruleCollections") + private List ruleCollections; + + /** + * Creates an instance of FirewallPolicyRuleCollectionGroupDraftProperties class. + */ + public FirewallPolicyRuleCollectionGroupDraftProperties() { + } + + /** + * Get the size property: A read-only string that represents the size of the + * FirewallPolicyRuleCollectionGroupProperties in MB. (ex 1.2MB). + * + * @return the size value. + */ + public String size() { + return this.size; + } + + /** + * Get the priority property: Priority of the Firewall Policy Rule Collection Group resource. + * + * @return the priority value. + */ + public Integer priority() { + return this.priority; + } + + /** + * Set the priority property: Priority of the Firewall Policy Rule Collection Group resource. + * + * @param priority the priority value to set. + * @return the FirewallPolicyRuleCollectionGroupDraftProperties object itself. + */ + public FirewallPolicyRuleCollectionGroupDraftProperties withPriority(Integer priority) { + this.priority = priority; + return this; + } + + /** + * Get the ruleCollections property: Group of Firewall Policy rule collections. + * + * @return the ruleCollections value. + */ + public List ruleCollections() { + return this.ruleCollections; + } + + /** + * Set the ruleCollections property: Group of Firewall Policy rule collections. + * + * @param ruleCollections the ruleCollections value to set. + * @return the FirewallPolicyRuleCollectionGroupDraftProperties object itself. + */ + public FirewallPolicyRuleCollectionGroupDraftProperties + withRuleCollections(List ruleCollections) { + this.ruleCollections = ruleCollections; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (ruleCollections() != null) { + ruleCollections().forEach(e -> e.validate()); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupInner.java index 6c23d72dbb4e6..c4839077cdc0a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupInner.java @@ -9,6 +9,7 @@ import com.azure.resourcemanager.network.models.FirewallPolicyRuleCollection; import com.azure.resourcemanager.network.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -48,7 +49,7 @@ public FirewallPolicyRuleCollectionGroupInner() { /** * Get the innerProperties property: The properties of the firewall policy rule collection group. - * + * * @return the innerProperties value. */ private FirewallPolicyRuleCollectionGroupProperties innerProperties() { @@ -58,7 +59,7 @@ private FirewallPolicyRuleCollectionGroupProperties 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() { @@ -68,7 +69,7 @@ public String 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. */ @@ -79,7 +80,7 @@ public FirewallPolicyRuleCollectionGroupInner withName(String name) { /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. - * + * * @return the etag value. */ public String etag() { @@ -88,7 +89,7 @@ public String etag() { /** * Get the type property: Rule Group type. - * + * * @return the type value. */ public String type() { @@ -107,7 +108,7 @@ public FirewallPolicyRuleCollectionGroupInner withId(String id) { /** * Get the size property: A read-only string that represents the size of the * FirewallPolicyRuleCollectionGroupProperties in MB. (ex 1.2MB). - * + * * @return the size value. */ public String size() { @@ -116,7 +117,7 @@ public String size() { /** * Get the priority property: Priority of the Firewall Policy Rule Collection Group resource. - * + * * @return the priority value. */ public Integer priority() { @@ -125,7 +126,7 @@ public Integer priority() { /** * Set the priority property: Priority of the Firewall Policy Rule Collection Group resource. - * + * * @param priority the priority value to set. * @return the FirewallPolicyRuleCollectionGroupInner object itself. */ @@ -139,7 +140,7 @@ public FirewallPolicyRuleCollectionGroupInner withPriority(Integer priority) { /** * Get the ruleCollections property: Group of Firewall Policy rule collections. - * + * * @return the ruleCollections value. */ public List ruleCollections() { @@ -148,7 +149,7 @@ public List ruleCollections() { /** * Set the ruleCollections property: Group of Firewall Policy rule collections. - * + * * @param ruleCollections the ruleCollections value to set. * @return the FirewallPolicyRuleCollectionGroupInner object itself. */ @@ -162,9 +163,8 @@ public List ruleCollections() { } /** - * Get the provisioningState property: The provisioning state of the firewall policy rule collection group - * resource. - * + * Get the provisioningState property: The provisioning state of the firewall policy rule collection group resource. + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -173,7 +173,7 @@ public ProvisioningState provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupProperties.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupProperties.java index 99d6a77cdea04..2ba6a17f10068 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FirewallPolicyRuleCollectionGroupProperties.java @@ -8,6 +8,7 @@ import com.azure.resourcemanager.network.models.FirewallPolicyRuleCollection; import com.azure.resourcemanager.network.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -48,7 +49,7 @@ public FirewallPolicyRuleCollectionGroupProperties() { /** * Get the size property: A read-only string that represents the size of the * FirewallPolicyRuleCollectionGroupProperties in MB. (ex 1.2MB). - * + * * @return the size value. */ public String size() { @@ -57,7 +58,7 @@ public String size() { /** * Get the priority property: Priority of the Firewall Policy Rule Collection Group resource. - * + * * @return the priority value. */ public Integer priority() { @@ -66,7 +67,7 @@ public Integer priority() { /** * Set the priority property: Priority of the Firewall Policy Rule Collection Group resource. - * + * * @param priority the priority value to set. * @return the FirewallPolicyRuleCollectionGroupProperties object itself. */ @@ -77,7 +78,7 @@ public FirewallPolicyRuleCollectionGroupProperties withPriority(Integer priority /** * Get the ruleCollections property: Group of Firewall Policy rule collections. - * + * * @return the ruleCollections value. */ public List ruleCollections() { @@ -86,7 +87,7 @@ public List ruleCollections() { /** * Set the ruleCollections property: Group of Firewall Policy rule collections. - * + * * @param ruleCollections the ruleCollections value to set. * @return the FirewallPolicyRuleCollectionGroupProperties object itself. */ @@ -97,9 +98,8 @@ public List ruleCollections() { } /** - * Get the provisioningState property: The provisioning state of the firewall policy rule collection group - * resource. - * + * Get the provisioningState property: The provisioning state of the firewall policy rule collection group resource. + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -108,7 +108,7 @@ public ProvisioningState provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FlowLogInformationInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FlowLogInformationInner.java index 795f682a6ffac..c6b38e72ccbaa 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FlowLogInformationInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FlowLogInformationInner.java @@ -191,12 +191,14 @@ public FlowLogInformationInner withFormat(FlowLogFormatParameters format) { */ public void validate() { if (targetResourceId() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property targetResourceId in model FlowLogInformationInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property targetResourceId in model FlowLogInformationInner")); } if (innerProperties() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property innerProperties in model FlowLogInformationInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property innerProperties in model FlowLogInformationInner")); } else { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FlowLogProperties.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FlowLogProperties.java index 9d50062854f25..fa710a6f2c189 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FlowLogProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FlowLogProperties.java @@ -132,8 +132,8 @@ public FlowLogProperties withFormat(FlowLogFormatParameters format) { */ public void validate() { if (storageId() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property storageId in model FlowLogProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property storageId in model FlowLogProperties")); } if (retentionPolicy() != null) { retentionPolicy().validate(); diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FlowLogPropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FlowLogPropertiesFormat.java index 27770d58947b8..d5538b76bb80c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FlowLogPropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FlowLogPropertiesFormat.java @@ -217,12 +217,14 @@ public ProvisioningState provisioningState() { */ public void validate() { if (targetResourceId() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property targetResourceId in model FlowLogPropertiesFormat")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property targetResourceId in model FlowLogPropertiesFormat")); } if (storageId() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property storageId in model FlowLogPropertiesFormat")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property storageId in model FlowLogPropertiesFormat")); } if (retentionPolicy() != null) { retentionPolicy().validate(); diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FrontendIpConfigurationInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FrontendIpConfigurationInner.java index 6f9114513f848..d0113eabe74fd 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FrontendIpConfigurationInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/FrontendIpConfigurationInner.java @@ -10,6 +10,7 @@ import com.azure.resourcemanager.network.models.IpVersion; import com.azure.resourcemanager.network.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -24,8 +25,7 @@ public final class FrontendIpConfigurationInner extends SubResource { 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. + * 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. */ @JsonProperty(value = "name") private String name; @@ -56,7 +56,7 @@ public FrontendIpConfigurationInner() { /** * Get the innerProperties property: Properties of the load balancer probe. - * + * * @return the innerProperties value. */ private FrontendIpConfigurationPropertiesFormatInner innerProperties() { @@ -66,7 +66,7 @@ private FrontendIpConfigurationPropertiesFormatInner 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() { @@ -76,7 +76,7 @@ public String 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. */ @@ -87,7 +87,7 @@ public FrontendIpConfigurationInner withName(String name) { /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. - * + * * @return the etag value. */ public String etag() { @@ -96,7 +96,7 @@ public String etag() { /** * Get the type property: Type of the resource. - * + * * @return the type value. */ public String type() { @@ -106,7 +106,7 @@ public String type() { /** * Get the zones property: A list of availability zones denoting the IP allocated for the resource needs to come * from. - * + * * @return the zones value. */ public List zones() { @@ -116,7 +116,7 @@ public List zones() { /** * Set the zones property: A list of availability zones denoting the IP allocated for the resource needs to come * from. - * + * * @param zones the zones value to set. * @return the FrontendIpConfigurationInner object itself. */ @@ -136,7 +136,7 @@ public FrontendIpConfigurationInner withId(String id) { /** * Get the inboundNatRules property: An array of references to inbound rules that use this frontend IP. - * + * * @return the inboundNatRules value. */ public List inboundNatRules() { @@ -145,7 +145,7 @@ public List inboundNatRules() { /** * Get the inboundNatPools property: An array of references to inbound pools that use this frontend IP. - * + * * @return the inboundNatPools value. */ public List inboundNatPools() { @@ -154,7 +154,7 @@ public List inboundNatPools() { /** * Get the outboundRules property: An array of references to outbound rules that use this frontend IP. - * + * * @return the outboundRules value. */ public List outboundRules() { @@ -163,7 +163,7 @@ public List outboundRules() { /** * Get the loadBalancingRules property: An array of references to load balancing rules that use this frontend IP. - * + * * @return the loadBalancingRules value. */ public List loadBalancingRules() { @@ -172,7 +172,7 @@ public List loadBalancingRules() { /** * Get the privateIpAddress property: The private IP address of the IP configuration. - * + * * @return the privateIpAddress value. */ public String privateIpAddress() { @@ -181,7 +181,7 @@ public String privateIpAddress() { /** * Set the privateIpAddress property: The private IP address of the IP configuration. - * + * * @param privateIpAddress the privateIpAddress value to set. * @return the FrontendIpConfigurationInner object itself. */ @@ -195,7 +195,7 @@ public FrontendIpConfigurationInner withPrivateIpAddress(String privateIpAddress /** * Get the privateIpAllocationMethod property: The Private IP allocation method. - * + * * @return the privateIpAllocationMethod value. */ public IpAllocationMethod privateIpAllocationMethod() { @@ -204,7 +204,7 @@ public IpAllocationMethod privateIpAllocationMethod() { /** * Set the privateIpAllocationMethod property: The Private IP allocation method. - * + * * @param privateIpAllocationMethod the privateIpAllocationMethod value to set. * @return the FrontendIpConfigurationInner object itself. */ @@ -219,7 +219,7 @@ public FrontendIpConfigurationInner withPrivateIpAllocationMethod(IpAllocationMe /** * Get the privateIpAddressVersion property: Whether the specific ipconfiguration is IPv4 or IPv6. Default is taken * as IPv4. - * + * * @return the privateIpAddressVersion value. */ public IpVersion privateIpAddressVersion() { @@ -229,7 +229,7 @@ public IpVersion privateIpAddressVersion() { /** * Set the privateIpAddressVersion property: Whether the specific ipconfiguration is IPv4 or IPv6. Default is taken * as IPv4. - * + * * @param privateIpAddressVersion the privateIpAddressVersion value to set. * @return the FrontendIpConfigurationInner object itself. */ @@ -243,7 +243,7 @@ public FrontendIpConfigurationInner withPrivateIpAddressVersion(IpVersion privat /** * Get the subnet property: The reference to the subnet resource. - * + * * @return the subnet value. */ public SubnetInner subnet() { @@ -252,7 +252,7 @@ public SubnetInner subnet() { /** * Set the subnet property: The reference to the subnet resource. - * + * * @param subnet the subnet value to set. * @return the FrontendIpConfigurationInner object itself. */ @@ -266,7 +266,7 @@ public FrontendIpConfigurationInner withSubnet(SubnetInner subnet) { /** * Get the publicIpAddress property: The reference to the Public IP resource. - * + * * @return the publicIpAddress value. */ public PublicIpAddressInner publicIpAddress() { @@ -275,7 +275,7 @@ public PublicIpAddressInner publicIpAddress() { /** * Set the publicIpAddress property: The reference to the Public IP resource. - * + * * @param publicIpAddress the publicIpAddress value to set. * @return the FrontendIpConfigurationInner object itself. */ @@ -289,7 +289,7 @@ public FrontendIpConfigurationInner withPublicIpAddress(PublicIpAddressInner pub /** * Get the publicIpPrefix property: The reference to the Public IP Prefix resource. - * + * * @return the publicIpPrefix value. */ public SubResource publicIpPrefix() { @@ -298,7 +298,7 @@ public SubResource publicIpPrefix() { /** * Set the publicIpPrefix property: The reference to the Public IP Prefix resource. - * + * * @param publicIpPrefix the publicIpPrefix value to set. * @return the FrontendIpConfigurationInner object itself. */ @@ -312,7 +312,7 @@ public FrontendIpConfigurationInner withPublicIpPrefix(SubResource publicIpPrefi /** * Get the gatewayLoadBalancer property: The reference to gateway load balancer frontend IP. - * + * * @return the gatewayLoadBalancer value. */ public SubResource gatewayLoadBalancer() { @@ -321,7 +321,7 @@ public SubResource gatewayLoadBalancer() { /** * Set the gatewayLoadBalancer property: The reference to gateway load balancer frontend IP. - * + * * @param gatewayLoadBalancer the gatewayLoadBalancer value to set. * @return the FrontendIpConfigurationInner object itself. */ @@ -335,7 +335,7 @@ public FrontendIpConfigurationInner withGatewayLoadBalancer(SubResource gatewayL /** * Get the provisioningState property: The provisioning state of the frontend IP configuration resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -344,7 +344,7 @@ public ProvisioningState provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/HubVirtualNetworkConnectionInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/HubVirtualNetworkConnectionInner.java index f0b471237a458..de33c04c822a3 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/HubVirtualNetworkConnectionInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/HubVirtualNetworkConnectionInner.java @@ -135,8 +135,7 @@ public HubVirtualNetworkConnectionInner withAllowHubToRemoteVnetTransit(Boolean } /** - * Get the allowRemoteVnetToUseHubVnetGateways property: Deprecated: Allow RemoteVnet to use Virtual Hub's - * gateways. + * Get the allowRemoteVnetToUseHubVnetGateways property: Deprecated: Allow RemoteVnet to use Virtual Hub's gateways. * * @return the allowRemoteVnetToUseHubVnetGateways value. */ @@ -145,8 +144,7 @@ public Boolean allowRemoteVnetToUseHubVnetGateways() { } /** - * Set the allowRemoteVnetToUseHubVnetGateways property: Deprecated: Allow RemoteVnet to use Virtual Hub's - * gateways. + * Set the allowRemoteVnetToUseHubVnetGateways property: Deprecated: Allow RemoteVnet to use Virtual Hub's gateways. * * @param allowRemoteVnetToUseHubVnetGateways the allowRemoteVnetToUseHubVnetGateways value to set. * @return the HubVirtualNetworkConnectionInner object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/HubVirtualNetworkConnectionProperties.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/HubVirtualNetworkConnectionProperties.java index 71fde1bef3046..45a6a02f3e48a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/HubVirtualNetworkConnectionProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/HubVirtualNetworkConnectionProperties.java @@ -98,8 +98,7 @@ public HubVirtualNetworkConnectionProperties withAllowHubToRemoteVnetTransit(Boo } /** - * Get the allowRemoteVnetToUseHubVnetGateways property: Deprecated: Allow RemoteVnet to use Virtual Hub's - * gateways. + * Get the allowRemoteVnetToUseHubVnetGateways property: Deprecated: Allow RemoteVnet to use Virtual Hub's gateways. * * @return the allowRemoteVnetToUseHubVnetGateways value. */ @@ -108,8 +107,7 @@ public Boolean allowRemoteVnetToUseHubVnetGateways() { } /** - * Set the allowRemoteVnetToUseHubVnetGateways property: Deprecated: Allow RemoteVnet to use Virtual Hub's - * gateways. + * Set the allowRemoteVnetToUseHubVnetGateways property: Deprecated: Allow RemoteVnet to use Virtual Hub's gateways. * * @param allowRemoteVnetToUseHubVnetGateways the allowRemoteVnetToUseHubVnetGateways value to set. * @return the HubVirtualNetworkConnectionProperties object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/InboundNatPoolPropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/InboundNatPoolPropertiesFormat.java index 86b71c9caef1c..0aef3194727b2 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/InboundNatPoolPropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/InboundNatPoolPropertiesFormat.java @@ -29,15 +29,13 @@ public final class InboundNatPoolPropertiesFormat { private TransportProtocol protocol; /* - * The first port number in the range of external ports that will be used to provide Inbound Nat to NICs associated - * with a load balancer. Acceptable values range between 1 and 65534. + * The first port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with a load balancer. Acceptable values range between 1 and 65534. */ @JsonProperty(value = "frontendPortRangeStart", required = true) private int frontendPortRangeStart; /* - * The last port number in the range of external ports that will be used to provide Inbound Nat to NICs associated - * with a load balancer. Acceptable values range between 1 and 65535. + * The last port number in the range of external ports that will be used to provide Inbound Nat to NICs associated with a load balancer. Acceptable values range between 1 and 65535. */ @JsonProperty(value = "frontendPortRangeEnd", required = true) private int frontendPortRangeEnd; @@ -49,23 +47,19 @@ public final class InboundNatPoolPropertiesFormat { private int backendPort; /* - * The timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 - * minutes. This element is only used when the protocol is set to TCP. + * The timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the protocol is set to TCP. */ @JsonProperty(value = "idleTimeoutInMinutes") private Integer idleTimeoutInMinutes; /* - * Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn - * Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This - * setting can't be changed after you create the endpoint. + * Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you create the endpoint. */ @JsonProperty(value = "enableFloatingIP") private Boolean enableFloatingIp; /* - * Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is - * only used when the protocol is set to TCP. + * Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is only used when the protocol is set to TCP. */ @JsonProperty(value = "enableTcpReset") private Boolean enableTcpReset; @@ -272,8 +266,9 @@ public ProvisioningState provisioningState() { */ public void validate() { if (protocol() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property protocol in model InboundNatPoolPropertiesFormat")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property protocol in model InboundNatPoolPropertiesFormat")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/InboundNatRuleInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/InboundNatRuleInner.java index d84a20736d9a8..5fbdd47d9e04b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/InboundNatRuleInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/InboundNatRuleInner.java @@ -22,8 +22,7 @@ public final class InboundNatRuleInner extends SubResource { private InboundNatRulePropertiesFormatInner innerProperties; /* - * The name of the resource that is unique within the set of inbound NAT rules used by the load balancer. This name - * can be used to access the resource. + * The name of the resource that is unique within the set of inbound NAT rules used by the load balancer. This name can be used to access the resource. */ @JsonProperty(value = "name") private String name; diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/InboundNatRulePropertiesFormatInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/InboundNatRulePropertiesFormatInner.java index f6159e3cbbbaa..72d61afee8252 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/InboundNatRulePropertiesFormatInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/InboundNatRulePropertiesFormatInner.java @@ -22,8 +22,7 @@ public final class InboundNatRulePropertiesFormatInner { private SubResource frontendIpConfiguration; /* - * A reference to a private IP address defined on a network interface of a VM. Traffic sent to the frontend port of - * each of the frontend IP configurations is forwarded to the backend IP. + * A reference to a private IP address defined on a network interface of a VM. Traffic sent to the frontend port of each of the frontend IP configurations is forwarded to the backend IP. */ @JsonProperty(value = "backendIPConfiguration", access = JsonProperty.Access.WRITE_ONLY) private NetworkInterfaceIpConfigurationInner backendIpConfiguration; @@ -35,8 +34,7 @@ public final class InboundNatRulePropertiesFormatInner { private TransportProtocol protocol; /* - * The port for the external endpoint. Port numbers for each rule must be unique within the Load Balancer. - * Acceptable values range from 1 to 65534. + * The port for the external endpoint. Port numbers for each rule must be unique within the Load Balancer. Acceptable values range from 1 to 65534. */ @JsonProperty(value = "frontendPort") private Integer frontendPort; @@ -48,39 +46,31 @@ public final class InboundNatRulePropertiesFormatInner { private Integer backendPort; /* - * The timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 - * minutes. This element is only used when the protocol is set to TCP. + * The timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the protocol is set to TCP. */ @JsonProperty(value = "idleTimeoutInMinutes") private Integer idleTimeoutInMinutes; /* - * Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn - * Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This - * setting can't be changed after you create the endpoint. + * Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you create the endpoint. */ @JsonProperty(value = "enableFloatingIP") private Boolean enableFloatingIp; /* - * Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is - * only used when the protocol is set to TCP. + * Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is only used when the protocol is set to TCP. */ @JsonProperty(value = "enableTcpReset") private Boolean enableTcpReset; /* - * The port range start for the external endpoint. This property is used together with BackendAddressPool and - * FrontendPortRangeEnd. Individual inbound NAT rule port mappings will be created for each backend address from - * BackendAddressPool. Acceptable values range from 1 to 65534. + * The port range start for the external endpoint. This property is used together with BackendAddressPool and FrontendPortRangeEnd. Individual inbound NAT rule port mappings will be created for each backend address from BackendAddressPool. Acceptable values range from 1 to 65534. */ @JsonProperty(value = "frontendPortRangeStart") private Integer frontendPortRangeStart; /* - * The port range end for the external endpoint. This property is used together with BackendAddressPool and - * FrontendPortRangeStart. Individual inbound NAT rule port mappings will be created for each backend address from - * BackendAddressPool. Acceptable values range from 1 to 65534. + * The port range end for the external endpoint. This property is used together with BackendAddressPool and FrontendPortRangeStart. Individual inbound NAT rule port mappings will be created for each backend address from BackendAddressPool. Acceptable values range from 1 to 65534. */ @JsonProperty(value = "frontendPortRangeEnd") private Integer frontendPortRangeEnd; diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/InboundSecurityRuleInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/InboundSecurityRuleInner.java index dc3540088f96e..bf16d1fb00918 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/InboundSecurityRuleInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/InboundSecurityRuleInner.java @@ -6,9 +6,11 @@ import com.azure.core.annotation.Fluent; import com.azure.core.management.SubResource; +import com.azure.resourcemanager.network.models.InboundSecurityRuleType; import com.azure.resourcemanager.network.models.InboundSecurityRules; import com.azure.resourcemanager.network.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -48,7 +50,7 @@ public InboundSecurityRuleInner() { /** * Get the innerProperties property: The properties of the Inbound Security Rules. - * + * * @return the innerProperties value. */ private InboundSecurityRuleProperties innerProperties() { @@ -57,7 +59,7 @@ private InboundSecurityRuleProperties innerProperties() { /** * Get the name property: Name of security rule collection. - * + * * @return the name value. */ public String name() { @@ -66,7 +68,7 @@ public String name() { /** * Set the name property: Name of security rule collection. - * + * * @param name the name value to set. * @return the InboundSecurityRuleInner object itself. */ @@ -77,7 +79,7 @@ public InboundSecurityRuleInner withName(String name) { /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. - * + * * @return the etag value. */ public String etag() { @@ -86,7 +88,7 @@ public String etag() { /** * Get the type property: NVA inbound security rule type. - * + * * @return the type value. */ public String type() { @@ -102,9 +104,34 @@ public InboundSecurityRuleInner withId(String id) { return this; } + /** + * Get the ruleType property: Rule Type. This should be either AutoExpire or Permanent. Auto Expire Rule only + * creates NSG rules. Permanent Rule creates NSG rule and SLB LB Rule. + * + * @return the ruleType value. + */ + public InboundSecurityRuleType ruleType() { + return this.innerProperties() == null ? null : this.innerProperties().ruleType(); + } + + /** + * Set the ruleType property: Rule Type. This should be either AutoExpire or Permanent. Auto Expire Rule only + * creates NSG rules. Permanent Rule creates NSG rule and SLB LB Rule. + * + * @param ruleType the ruleType value to set. + * @return the InboundSecurityRuleInner object itself. + */ + public InboundSecurityRuleInner withRuleType(InboundSecurityRuleType ruleType) { + if (this.innerProperties() == null) { + this.innerProperties = new InboundSecurityRuleProperties(); + } + this.innerProperties().withRuleType(ruleType); + return this; + } + /** * Get the rules property: List of allowed rules. - * + * * @return the rules value. */ public List rules() { @@ -113,7 +140,7 @@ public List rules() { /** * Set the rules property: List of allowed rules. - * + * * @param rules the rules value to set. * @return the InboundSecurityRuleInner object itself. */ @@ -127,7 +154,7 @@ public InboundSecurityRuleInner withRules(List rules) { /** * Get the provisioningState property: The provisioning state of the resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -136,7 +163,7 @@ public ProvisioningState provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/InboundSecurityRuleProperties.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/InboundSecurityRuleProperties.java index ecb1753403792..4e30393aa4618 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/InboundSecurityRuleProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/InboundSecurityRuleProperties.java @@ -5,9 +5,11 @@ package com.azure.resourcemanager.network.fluent.models; import com.azure.core.annotation.Fluent; +import com.azure.resourcemanager.network.models.InboundSecurityRuleType; import com.azure.resourcemanager.network.models.InboundSecurityRules; import com.azure.resourcemanager.network.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -15,6 +17,12 @@ */ @Fluent public final class InboundSecurityRuleProperties { + /* + * Rule Type. This should be either AutoExpire or Permanent. Auto Expire Rule only creates NSG rules. Permanent Rule creates NSG rule and SLB LB Rule. + */ + @JsonProperty(value = "ruleType") + private InboundSecurityRuleType ruleType; + /* * List of allowed rules. */ @@ -33,9 +41,31 @@ public final class InboundSecurityRuleProperties { public InboundSecurityRuleProperties() { } + /** + * Get the ruleType property: Rule Type. This should be either AutoExpire or Permanent. Auto Expire Rule only + * creates NSG rules. Permanent Rule creates NSG rule and SLB LB Rule. + * + * @return the ruleType value. + */ + public InboundSecurityRuleType ruleType() { + return this.ruleType; + } + + /** + * Set the ruleType property: Rule Type. This should be either AutoExpire or Permanent. Auto Expire Rule only + * creates NSG rules. Permanent Rule creates NSG rule and SLB LB Rule. + * + * @param ruleType the ruleType value to set. + * @return the InboundSecurityRuleProperties object itself. + */ + public InboundSecurityRuleProperties withRuleType(InboundSecurityRuleType ruleType) { + this.ruleType = ruleType; + return this; + } + /** * Get the rules property: List of allowed rules. - * + * * @return the rules value. */ public List rules() { @@ -44,7 +74,7 @@ public List rules() { /** * Set the rules property: List of allowed rules. - * + * * @param rules the rules value to set. * @return the InboundSecurityRuleProperties object itself. */ @@ -55,7 +85,7 @@ public InboundSecurityRuleProperties withRules(List rules) /** * Get the provisioningState property: The provisioning state of the resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -64,7 +94,7 @@ public ProvisioningState provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerBackendAddressPropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerBackendAddressPropertiesFormat.java index aa7d3dd8c4cf9..af552c66017e6 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerBackendAddressPropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerBackendAddressPropertiesFormat.java @@ -9,6 +9,7 @@ import com.azure.resourcemanager.network.models.LoadBalancerBackendAddressAdminState; import com.azure.resourcemanager.network.models.NatRulePortMapping; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -53,8 +54,7 @@ public final class LoadBalancerBackendAddressPropertiesFormat { private List inboundNatRulesPortMapping; /* - * A list of administrative states which once set can override health probe so that Load Balancer will always - * forward new connections to backend, or deny new connections and reset existing connections. + * A list of administrative states which once set can override health probe so that Load Balancer will always forward new connections to backend, or deny new connections and reset existing connections. */ @JsonProperty(value = "adminState") private LoadBalancerBackendAddressAdminState adminState; @@ -67,7 +67,7 @@ public LoadBalancerBackendAddressPropertiesFormat() { /** * Get the virtualNetwork property: Reference to an existing virtual network. - * + * * @return the virtualNetwork value. */ public SubResource virtualNetwork() { @@ -76,7 +76,7 @@ public SubResource virtualNetwork() { /** * Set the virtualNetwork property: Reference to an existing virtual network. - * + * * @param virtualNetwork the virtualNetwork value to set. * @return the LoadBalancerBackendAddressPropertiesFormat object itself. */ @@ -87,7 +87,7 @@ public LoadBalancerBackendAddressPropertiesFormat withVirtualNetwork(SubResource /** * Get the subnet property: Reference to an existing subnet. - * + * * @return the subnet value. */ public SubResource subnet() { @@ -96,7 +96,7 @@ public SubResource subnet() { /** * Set the subnet property: Reference to an existing subnet. - * + * * @param subnet the subnet value to set. * @return the LoadBalancerBackendAddressPropertiesFormat object itself. */ @@ -107,7 +107,7 @@ public LoadBalancerBackendAddressPropertiesFormat withSubnet(SubResource subnet) /** * Get the ipAddress property: IP Address belonging to the referenced virtual network. - * + * * @return the ipAddress value. */ public String ipAddress() { @@ -116,7 +116,7 @@ public String ipAddress() { /** * Set the ipAddress property: IP Address belonging to the referenced virtual network. - * + * * @param ipAddress the ipAddress value to set. * @return the LoadBalancerBackendAddressPropertiesFormat object itself. */ @@ -127,7 +127,7 @@ public LoadBalancerBackendAddressPropertiesFormat withIpAddress(String ipAddress /** * Get the networkInterfaceIpConfiguration property: Reference to IP address defined in network interfaces. - * + * * @return the networkInterfaceIpConfiguration value. */ public SubResource networkInterfaceIpConfiguration() { @@ -137,7 +137,7 @@ public SubResource networkInterfaceIpConfiguration() { /** * Get the loadBalancerFrontendIpConfiguration property: Reference to the frontend ip address configuration defined * in regional loadbalancer. - * + * * @return the loadBalancerFrontendIpConfiguration value. */ public SubResource loadBalancerFrontendIpConfiguration() { @@ -147,7 +147,7 @@ public SubResource loadBalancerFrontendIpConfiguration() { /** * Set the loadBalancerFrontendIpConfiguration property: Reference to the frontend ip address configuration defined * in regional loadbalancer. - * + * * @param loadBalancerFrontendIpConfiguration the loadBalancerFrontendIpConfiguration value to set. * @return the LoadBalancerBackendAddressPropertiesFormat object itself. */ @@ -159,7 +159,7 @@ public SubResource loadBalancerFrontendIpConfiguration() { /** * Get the inboundNatRulesPortMapping property: Collection of inbound NAT rule port mappings. - * + * * @return the inboundNatRulesPortMapping value. */ public List inboundNatRulesPortMapping() { @@ -170,7 +170,7 @@ public List inboundNatRulesPortMapping() { * Get the adminState property: A list of administrative states which once set can override health probe so that * Load Balancer will always forward new connections to backend, or deny new connections and reset existing * connections. - * + * * @return the adminState value. */ public LoadBalancerBackendAddressAdminState adminState() { @@ -181,7 +181,7 @@ public LoadBalancerBackendAddressAdminState adminState() { * Set the adminState property: A list of administrative states which once set can override health probe so that * Load Balancer will always forward new connections to backend, or deny new connections and reset existing * connections. - * + * * @param adminState the adminState value to set. * @return the LoadBalancerBackendAddressPropertiesFormat object itself. */ @@ -192,7 +192,7 @@ public LoadBalancerBackendAddressPropertiesFormat withAdminState(LoadBalancerBac /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerInner.java index 37aabfa92d7d5..08d72c1d86e36 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerInner.java @@ -11,6 +11,7 @@ import com.azure.resourcemanager.network.models.LoadBalancerSku; import com.azure.resourcemanager.network.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; import java.util.Map; @@ -57,7 +58,7 @@ public LoadBalancerInner() { /** * Get the extendedLocation property: The extended location of the load balancer. - * + * * @return the extendedLocation value. */ public ExtendedLocation extendedLocation() { @@ -66,7 +67,7 @@ public ExtendedLocation extendedLocation() { /** * Set the extendedLocation property: The extended location of the load balancer. - * + * * @param extendedLocation the extendedLocation value to set. * @return the LoadBalancerInner object itself. */ @@ -77,7 +78,7 @@ public LoadBalancerInner withExtendedLocation(ExtendedLocation extendedLocation) /** * Get the sku property: The load balancer SKU. - * + * * @return the sku value. */ public LoadBalancerSku sku() { @@ -86,7 +87,7 @@ public LoadBalancerSku sku() { /** * Set the sku property: The load balancer SKU. - * + * * @param sku the sku value to set. * @return the LoadBalancerInner object itself. */ @@ -97,7 +98,7 @@ public LoadBalancerInner withSku(LoadBalancerSku sku) { /** * Get the innerProperties property: Properties of load balancer. - * + * * @return the innerProperties value. */ private LoadBalancerPropertiesFormat innerProperties() { @@ -106,7 +107,7 @@ private LoadBalancerPropertiesFormat innerProperties() { /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. - * + * * @return the etag value. */ public String etag() { @@ -115,7 +116,7 @@ public String etag() { /** * Get the id property: Resource ID. - * + * * @return the id value. */ public String id() { @@ -124,7 +125,7 @@ public String id() { /** * Set the id property: Resource ID. - * + * * @param id the id value to set. * @return the LoadBalancerInner object itself. */ @@ -152,9 +153,8 @@ public LoadBalancerInner withTags(Map tags) { } /** - * Get the frontendIpConfigurations property: Object representing the frontend IPs to be used for the load - * balancer. - * + * Get the frontendIpConfigurations property: Object representing the frontend IPs to be used for the load balancer. + * * @return the frontendIpConfigurations value. */ public List frontendIpConfigurations() { @@ -162,9 +162,8 @@ public List frontendIpConfigurations() { } /** - * Set the frontendIpConfigurations property: Object representing the frontend IPs to be used for the load - * balancer. - * + * Set the frontendIpConfigurations property: Object representing the frontend IPs to be used for the load balancer. + * * @param frontendIpConfigurations the frontendIpConfigurations value to set. * @return the LoadBalancerInner object itself. */ @@ -178,7 +177,7 @@ public LoadBalancerInner withFrontendIpConfigurations(List backendAddressPools() { @@ -187,7 +186,7 @@ public List backendAddressPools() { /** * Set the backendAddressPools property: Collection of backend address pools used by a load balancer. - * + * * @param backendAddressPools the backendAddressPools value to set. * @return the LoadBalancerInner object itself. */ @@ -202,7 +201,7 @@ public LoadBalancerInner withBackendAddressPools(List b /** * Get the loadBalancingRules property: Object collection representing the load balancing rules Gets the * provisioning. - * + * * @return the loadBalancingRules value. */ public List loadBalancingRules() { @@ -212,7 +211,7 @@ public List loadBalancingRules() { /** * Set the loadBalancingRules property: Object collection representing the load balancing rules Gets the * provisioning. - * + * * @param loadBalancingRules the loadBalancingRules value to set. * @return the LoadBalancerInner object itself. */ @@ -226,7 +225,7 @@ public LoadBalancerInner withLoadBalancingRules(List loa /** * Get the probes property: Collection of probe objects used in the load balancer. - * + * * @return the probes value. */ public List probes() { @@ -235,7 +234,7 @@ public List probes() { /** * Set the probes property: Collection of probe objects used in the load balancer. - * + * * @param probes the probes value to set. * @return the LoadBalancerInner object itself. */ @@ -252,7 +251,7 @@ public LoadBalancerInner withProbes(List probes) { * rules on your load balancer is mutually exclusive with defining an inbound NAT pool. Inbound NAT pools are * referenced from virtual machine scale sets. NICs that are associated with individual virtual machines cannot * reference an Inbound NAT pool. They have to reference individual inbound NAT rules. - * + * * @return the inboundNatRules value. */ public List inboundNatRules() { @@ -264,7 +263,7 @@ public List inboundNatRules() { * rules on your load balancer is mutually exclusive with defining an inbound NAT pool. Inbound NAT pools are * referenced from virtual machine scale sets. NICs that are associated with individual virtual machines cannot * reference an Inbound NAT pool. They have to reference individual inbound NAT rules. - * + * * @param inboundNatRules the inboundNatRules value to set. * @return the LoadBalancerInner object itself. */ @@ -277,13 +276,13 @@ public LoadBalancerInner withInboundNatRules(List inboundNa } /** - * Get the inboundNatPools property: Defines an external port range for inbound NAT to a single backend port on - * NICs associated with a load balancer. Inbound NAT rules are created automatically for each NIC associated with - * the Load Balancer using an external port from this range. Defining an Inbound NAT pool on your Load Balancer is + * Get the inboundNatPools property: Defines an external port range for inbound NAT to a single backend port on NICs + * associated with a load balancer. Inbound NAT rules are created automatically for each NIC associated with the + * Load Balancer using an external port from this range. Defining an Inbound NAT pool on your Load Balancer is * mutually exclusive with defining inbound NAT rules. Inbound NAT pools are referenced from virtual machine scale * sets. NICs that are associated with individual virtual machines cannot reference an inbound NAT pool. They have * to reference individual inbound NAT rules. - * + * * @return the inboundNatPools value. */ public List inboundNatPools() { @@ -291,13 +290,13 @@ public List inboundNatPools() { } /** - * Set the inboundNatPools property: Defines an external port range for inbound NAT to a single backend port on - * NICs associated with a load balancer. Inbound NAT rules are created automatically for each NIC associated with - * the Load Balancer using an external port from this range. Defining an Inbound NAT pool on your Load Balancer is + * Set the inboundNatPools property: Defines an external port range for inbound NAT to a single backend port on NICs + * associated with a load balancer. Inbound NAT rules are created automatically for each NIC associated with the + * Load Balancer using an external port from this range. Defining an Inbound NAT pool on your Load Balancer is * mutually exclusive with defining inbound NAT rules. Inbound NAT pools are referenced from virtual machine scale * sets. NICs that are associated with individual virtual machines cannot reference an inbound NAT pool. They have * to reference individual inbound NAT rules. - * + * * @param inboundNatPools the inboundNatPools value to set. * @return the LoadBalancerInner object itself. */ @@ -311,7 +310,7 @@ public LoadBalancerInner withInboundNatPools(List inboundNatPool /** * Get the outboundRules property: The outbound rules. - * + * * @return the outboundRules value. */ public List outboundRules() { @@ -320,7 +319,7 @@ public List outboundRules() { /** * Set the outboundRules property: The outbound rules. - * + * * @param outboundRules the outboundRules value to set. * @return the LoadBalancerInner object itself. */ @@ -334,7 +333,7 @@ public LoadBalancerInner withOutboundRules(List outboundRules /** * Get the resourceGuid property: The resource GUID property of the load balancer resource. - * + * * @return the resourceGuid value. */ public String resourceGuid() { @@ -343,7 +342,7 @@ public String resourceGuid() { /** * Get the provisioningState property: The provisioning state of the load balancer resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -352,7 +351,7 @@ public ProvisioningState provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerPropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerPropertiesFormat.java index e624b678ec07b..e6083a73e360d 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerPropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancerPropertiesFormat.java @@ -8,6 +8,7 @@ import com.azure.resourcemanager.network.models.InboundNatPool; import com.azure.resourcemanager.network.models.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -40,21 +41,13 @@ public final class LoadBalancerPropertiesFormat { private List probes; /* - * Collection of inbound NAT Rules used by a load balancer. Defining inbound NAT rules on your load balancer is - * mutually exclusive with defining an inbound NAT pool. Inbound NAT pools are referenced from virtual machine - * scale sets. NICs that are associated with individual virtual machines cannot reference an Inbound NAT pool. They - * have to reference individual inbound NAT rules. + * Collection of inbound NAT Rules used by a load balancer. Defining inbound NAT rules on your load balancer is mutually exclusive with defining an inbound NAT pool. Inbound NAT pools are referenced from virtual machine scale sets. NICs that are associated with individual virtual machines cannot reference an Inbound NAT pool. They have to reference individual inbound NAT rules. */ @JsonProperty(value = "inboundNatRules") private List inboundNatRules; /* - * Defines an external port range for inbound NAT to a single backend port on NICs associated with a load balancer. - * Inbound NAT rules are created automatically for each NIC associated with the Load Balancer using an external - * port from this range. Defining an Inbound NAT pool on your Load Balancer is mutually exclusive with defining - * inbound NAT rules. Inbound NAT pools are referenced from virtual machine scale sets. NICs that are associated - * with individual virtual machines cannot reference an inbound NAT pool. They have to reference individual inbound - * NAT rules. + * Defines an external port range for inbound NAT to a single backend port on NICs associated with a load balancer. Inbound NAT rules are created automatically for each NIC associated with the Load Balancer using an external port from this range. Defining an Inbound NAT pool on your Load Balancer is mutually exclusive with defining inbound NAT rules. Inbound NAT pools are referenced from virtual machine scale sets. NICs that are associated with individual virtual machines cannot reference an inbound NAT pool. They have to reference individual inbound NAT rules. */ @JsonProperty(value = "inboundNatPools") private List inboundNatPools; @@ -84,9 +77,8 @@ public LoadBalancerPropertiesFormat() { } /** - * Get the frontendIpConfigurations property: Object representing the frontend IPs to be used for the load - * balancer. - * + * Get the frontendIpConfigurations property: Object representing the frontend IPs to be used for the load balancer. + * * @return the frontendIpConfigurations value. */ public List frontendIpConfigurations() { @@ -94,9 +86,8 @@ public List frontendIpConfigurations() { } /** - * Set the frontendIpConfigurations property: Object representing the frontend IPs to be used for the load - * balancer. - * + * Set the frontendIpConfigurations property: Object representing the frontend IPs to be used for the load balancer. + * * @param frontendIpConfigurations the frontendIpConfigurations value to set. * @return the LoadBalancerPropertiesFormat object itself. */ @@ -108,7 +99,7 @@ public List frontendIpConfigurations() { /** * Get the backendAddressPools property: Collection of backend address pools used by a load balancer. - * + * * @return the backendAddressPools value. */ public List backendAddressPools() { @@ -117,7 +108,7 @@ public List backendAddressPools() { /** * Set the backendAddressPools property: Collection of backend address pools used by a load balancer. - * + * * @param backendAddressPools the backendAddressPools value to set. * @return the LoadBalancerPropertiesFormat object itself. */ @@ -129,7 +120,7 @@ public LoadBalancerPropertiesFormat withBackendAddressPools(List loadBalancingRules() { @@ -139,7 +130,7 @@ public List loadBalancingRules() { /** * Set the loadBalancingRules property: Object collection representing the load balancing rules Gets the * provisioning. - * + * * @param loadBalancingRules the loadBalancingRules value to set. * @return the LoadBalancerPropertiesFormat object itself. */ @@ -150,7 +141,7 @@ public LoadBalancerPropertiesFormat withLoadBalancingRules(List probes() { @@ -159,7 +150,7 @@ public List probes() { /** * Set the probes property: Collection of probe objects used in the load balancer. - * + * * @param probes the probes value to set. * @return the LoadBalancerPropertiesFormat object itself. */ @@ -173,7 +164,7 @@ public LoadBalancerPropertiesFormat withProbes(List probes) { * rules on your load balancer is mutually exclusive with defining an inbound NAT pool. Inbound NAT pools are * referenced from virtual machine scale sets. NICs that are associated with individual virtual machines cannot * reference an Inbound NAT pool. They have to reference individual inbound NAT rules. - * + * * @return the inboundNatRules value. */ public List inboundNatRules() { @@ -185,7 +176,7 @@ public List inboundNatRules() { * rules on your load balancer is mutually exclusive with defining an inbound NAT pool. Inbound NAT pools are * referenced from virtual machine scale sets. NICs that are associated with individual virtual machines cannot * reference an Inbound NAT pool. They have to reference individual inbound NAT rules. - * + * * @param inboundNatRules the inboundNatRules value to set. * @return the LoadBalancerPropertiesFormat object itself. */ @@ -195,13 +186,13 @@ public LoadBalancerPropertiesFormat withInboundNatRules(List inboundNatPools() { @@ -209,13 +200,13 @@ public List inboundNatPools() { } /** - * Set the inboundNatPools property: Defines an external port range for inbound NAT to a single backend port on - * NICs associated with a load balancer. Inbound NAT rules are created automatically for each NIC associated with - * the Load Balancer using an external port from this range. Defining an Inbound NAT pool on your Load Balancer is + * Set the inboundNatPools property: Defines an external port range for inbound NAT to a single backend port on NICs + * associated with a load balancer. Inbound NAT rules are created automatically for each NIC associated with the + * Load Balancer using an external port from this range. Defining an Inbound NAT pool on your Load Balancer is * mutually exclusive with defining inbound NAT rules. Inbound NAT pools are referenced from virtual machine scale * sets. NICs that are associated with individual virtual machines cannot reference an inbound NAT pool. They have * to reference individual inbound NAT rules. - * + * * @param inboundNatPools the inboundNatPools value to set. * @return the LoadBalancerPropertiesFormat object itself. */ @@ -226,7 +217,7 @@ public LoadBalancerPropertiesFormat withInboundNatPools(List inb /** * Get the outboundRules property: The outbound rules. - * + * * @return the outboundRules value. */ public List outboundRules() { @@ -235,7 +226,7 @@ public List outboundRules() { /** * Set the outboundRules property: The outbound rules. - * + * * @param outboundRules the outboundRules value to set. * @return the LoadBalancerPropertiesFormat object itself. */ @@ -246,7 +237,7 @@ public LoadBalancerPropertiesFormat withOutboundRules(List ou /** * Get the resourceGuid property: The resource GUID property of the load balancer resource. - * + * * @return the resourceGuid value. */ public String resourceGuid() { @@ -255,7 +246,7 @@ public String resourceGuid() { /** * Get the provisioningState property: The provisioning state of the load balancer resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -264,7 +255,7 @@ public ProvisioningState provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancingRuleInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancingRuleInner.java index 664fcdbbf42fc..18dcdb4441bbc 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancingRuleInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancingRuleInner.java @@ -24,8 +24,7 @@ public final class LoadBalancingRuleInner extends SubResource { 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. + * 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. */ @JsonProperty(value = "name") private String name; @@ -58,8 +57,8 @@ private LoadBalancingRulePropertiesFormat 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. + * 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. */ @@ -68,8 +67,8 @@ public String 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. + * 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. @@ -374,8 +373,8 @@ public LoadBalancingRuleInner withEnableTcpReset(Boolean enableTcpReset) { } /** - * Get the disableOutboundSnat property: Configures SNAT for the VMs in the backend pool to use the publicIP - * address specified in the frontend of the load balancing rule. + * Get the disableOutboundSnat property: Configures SNAT for the VMs in the backend pool to use the publicIP address + * specified in the frontend of the load balancing rule. * * @return the disableOutboundSnat value. */ @@ -384,8 +383,8 @@ public Boolean disableOutboundSnat() { } /** - * Set the disableOutboundSnat property: Configures SNAT for the VMs in the backend pool to use the publicIP - * address specified in the frontend of the load balancing rule. + * Set the disableOutboundSnat property: Configures SNAT for the VMs in the backend pool to use the publicIP address + * specified in the frontend of the load balancing rule. * * @param disableOutboundSnat the disableOutboundSnat value to set. * @return the LoadBalancingRuleInner object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancingRulePropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancingRulePropertiesFormat.java index 85e10234d8177..135a6914821c7 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancingRulePropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LoadBalancingRulePropertiesFormat.java @@ -55,44 +55,37 @@ public final class LoadBalancingRulePropertiesFormat { private LoadDistribution loadDistribution; /* - * The port for the external endpoint. Port numbers for each rule must be unique within the Load Balancer. - * Acceptable values are between 0 and 65534. Note that value 0 enables "Any Port". + * The port for the external endpoint. Port numbers for each rule must be unique within the Load Balancer. Acceptable values are between 0 and 65534. Note that value 0 enables "Any Port". */ @JsonProperty(value = "frontendPort", required = true) private int frontendPort; /* - * The port used for internal connections on the endpoint. Acceptable values are between 0 and 65535. Note that - * value 0 enables "Any Port". + * The port used for internal connections on the endpoint. Acceptable values are between 0 and 65535. Note that value 0 enables "Any Port". */ @JsonProperty(value = "backendPort") private Integer backendPort; /* - * The timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 - * minutes. This element is only used when the protocol is set to TCP. + * The timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the protocol is set to TCP. */ @JsonProperty(value = "idleTimeoutInMinutes") private Integer idleTimeoutInMinutes; /* - * Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn - * Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This - * setting can't be changed after you create the endpoint. + * Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you create the endpoint. */ @JsonProperty(value = "enableFloatingIP") private Boolean enableFloatingIp; /* - * Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is - * only used when the protocol is set to TCP. + * Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is only used when the protocol is set to TCP. */ @JsonProperty(value = "enableTcpReset") private Boolean enableTcpReset; /* - * Configures SNAT for the VMs in the backend pool to use the publicIP address specified in the frontend of the - * load balancing rule. + * Configures SNAT for the VMs in the backend pool to use the publicIP address specified in the frontend of the load balancing rule. */ @JsonProperty(value = "disableOutboundSnat") private Boolean disableOutboundSnat; @@ -344,8 +337,8 @@ public LoadBalancingRulePropertiesFormat withEnableTcpReset(Boolean enableTcpRes } /** - * Get the disableOutboundSnat property: Configures SNAT for the VMs in the backend pool to use the publicIP - * address specified in the frontend of the load balancing rule. + * Get the disableOutboundSnat property: Configures SNAT for the VMs in the backend pool to use the publicIP address + * specified in the frontend of the load balancing rule. * * @return the disableOutboundSnat value. */ @@ -354,8 +347,8 @@ public Boolean disableOutboundSnat() { } /** - * Set the disableOutboundSnat property: Configures SNAT for the VMs in the backend pool to use the publicIP - * address specified in the frontend of the load balancing rule. + * Set the disableOutboundSnat property: Configures SNAT for the VMs in the backend pool to use the publicIP address + * specified in the frontend of the load balancing rule. * * @param disableOutboundSnat the disableOutboundSnat value to set. * @return the LoadBalancingRulePropertiesFormat object itself. @@ -381,8 +374,9 @@ public ProvisioningState provisioningState() { */ public void validate() { if (protocol() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property protocol in model LoadBalancingRulePropertiesFormat")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property protocol in model LoadBalancingRulePropertiesFormat")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LocalNetworkGatewayInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LocalNetworkGatewayInner.java index c71b9ceece140..0a4e218e4bfb1 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LocalNetworkGatewayInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/LocalNetworkGatewayInner.java @@ -215,8 +215,9 @@ public ProvisioningState provisioningState() { */ public void validate() { if (innerProperties() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property innerProperties in model LocalNetworkGatewayInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property innerProperties in model LocalNetworkGatewayInner")); } else { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfaceIpConfigurationInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfaceIpConfigurationInner.java index 170db1630ccfd..2dc341e6dcf91 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfaceIpConfigurationInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfaceIpConfigurationInner.java @@ -240,7 +240,8 @@ public List loadBalancerInboundNatRules() { } /** - * Get the privateIpAddress property: Private IP address of the IP configuration. + * Get the privateIpAddress property: Private IP address of the IP configuration. It can be a single IP address or a + * CIDR block in the format <address>/<prefix-length>. * * @return the privateIpAddress value. */ @@ -249,7 +250,8 @@ public String privateIpAddress() { } /** - * Set the privateIpAddress property: Private IP address of the IP configuration. + * Set the privateIpAddress property: Private IP address of the IP configuration. It can be a single IP address or a + * CIDR block in the format <address>/<prefix-length>. * * @param privateIpAddress the privateIpAddress value to set. * @return the NetworkInterfaceIpConfigurationInner object itself. @@ -262,6 +264,31 @@ public NetworkInterfaceIpConfigurationInner withPrivateIpAddress(String privateI return this; } + /** + * 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. + */ + 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 + * allocation method is dynamic, the service will allocate a CIDR block instead of a single IP address. + * + * @param privateIpAddressPrefixLength the privateIpAddressPrefixLength value to set. + * @return the NetworkInterfaceIpConfigurationInner object itself. + */ + public NetworkInterfaceIpConfigurationInner withPrivateIpAddressPrefixLength(Integer privateIpAddressPrefixLength) { + if (this.innerProperties() == null) { + this.innerProperties = new NetworkInterfaceIpConfigurationPropertiesFormatInner(); + } + this.innerProperties().withPrivateIpAddressPrefixLength(privateIpAddressPrefixLength); + return this; + } + /** * Get the privateIpAllocationMethod property: The private IP address allocation method. * @@ -287,8 +314,7 @@ public IpAllocationMethod privateIpAllocationMethod() { } /** - * Get the privateIpAddressVersion property: Whether the specific IP configuration is IPv4 or IPv6. Default is - * IPv4. + * Get the privateIpAddressVersion property: Whether the specific IP configuration is IPv4 or IPv6. Default is IPv4. * * @return the privateIpAddressVersion value. */ @@ -297,8 +323,7 @@ public IpVersion privateIpAddressVersion() { } /** - * Set the privateIpAddressVersion property: Whether the specific IP configuration is IPv4 or IPv6. Default is - * IPv4. + * 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 NetworkInterfaceIpConfigurationInner object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfaceIpConfigurationPropertiesFormatInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfaceIpConfigurationPropertiesFormatInner.java index 9cc5e57ae39d8..2cf34e8c1b23a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfaceIpConfigurationPropertiesFormatInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfaceIpConfigurationPropertiesFormatInner.java @@ -50,11 +50,17 @@ public final class NetworkInterfaceIpConfigurationPropertiesFormatInner { private List loadBalancerInboundNatRules; /* - * Private IP address of the IP configuration. + * Private IP address of the IP configuration. It can be a single IP address or a CIDR block in the format
/. */ @JsonProperty(value = "privateIPAddress") private String privateIpAddress; + /* + * The private IP address prefix length. If specified and the allocation method is dynamic, the service will allocate a CIDR block instead of a single IP address. + */ + @JsonProperty(value = "privateIPAddressPrefixLength") + private Integer privateIpAddressPrefixLength; + /* * The private IP address allocation method. */ @@ -217,7 +223,8 @@ public List loadBalancerInboundNatRules() { } /** - * Get the privateIpAddress property: Private IP address of the IP configuration. + * Get the privateIpAddress property: Private IP address of the IP configuration. It can be a single IP address or a + * CIDR block in the format <address>/<prefix-length>. * * @return the privateIpAddress value. */ @@ -226,7 +233,8 @@ public String privateIpAddress() { } /** - * Set the privateIpAddress property: Private IP address of the IP configuration. + * Set the privateIpAddress property: Private IP address of the IP configuration. It can be a single IP address or a + * CIDR block in the format <address>/<prefix-length>. * * @param privateIpAddress the privateIpAddress value to set. * @return the NetworkInterfaceIpConfigurationPropertiesFormatInner object itself. @@ -236,6 +244,29 @@ public NetworkInterfaceIpConfigurationPropertiesFormatInner withPrivateIpAddress return this; } + /** + * 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. + */ + public Integer privateIpAddressPrefixLength() { + return this.privateIpAddressPrefixLength; + } + + /** + * 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. + * @return the NetworkInterfaceIpConfigurationPropertiesFormatInner object itself. + */ + public NetworkInterfaceIpConfigurationPropertiesFormatInner + withPrivateIpAddressPrefixLength(Integer privateIpAddressPrefixLength) { + this.privateIpAddressPrefixLength = privateIpAddressPrefixLength; + return this; + } + /** * Get the privateIpAllocationMethod property: The private IP address allocation method. * @@ -258,8 +289,7 @@ public IpAllocationMethod privateIpAllocationMethod() { } /** - * Get the privateIpAddressVersion property: Whether the specific IP configuration is IPv4 or IPv6. Default is - * IPv4. + * Get the privateIpAddressVersion property: Whether the specific IP configuration is IPv4 or IPv6. Default is IPv4. * * @return the privateIpAddressVersion value. */ @@ -268,8 +298,7 @@ public IpVersion privateIpAddressVersion() { } /** - * Set the privateIpAddressVersion property: Whether the specific IP configuration is IPv4 or IPv6. Default is - * IPv4. + * 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 NetworkInterfaceIpConfigurationPropertiesFormatInner object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfacePropertiesFormatInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfacePropertiesFormatInner.java index 873fccd060292..a4c781ed51988 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfacePropertiesFormatInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkInterfacePropertiesFormatInner.java @@ -75,8 +75,7 @@ public final class NetworkInterfacePropertiesFormatInner { private Boolean vnetEncryptionSupported; /* - * If the network interface is configured for accelerated networking. Not applicable to VM sizes which require - * accelerated networking. + * If the network interface is configured for accelerated networking. Not applicable to VM sizes which require accelerated networking. */ @JsonProperty(value = "enableAcceleratedNetworking") private Boolean enableAcceleratedNetworking; diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerCommitInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerCommitInner.java index 3916668f2e74d..dc2e3d72fd6c7 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerCommitInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerCommitInner.java @@ -121,12 +121,14 @@ public NetworkManagerCommitInner withCommitType(ConfigurationType commitType) { */ public void validate() { if (targetLocations() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property targetLocations in model NetworkManagerCommitInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property targetLocations in model NetworkManagerCommitInner")); } if (commitType() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property commitType in model NetworkManagerCommitInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property commitType in model NetworkManagerCommitInner")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerDeploymentStatusListResultInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerDeploymentStatusListResultInner.java index d407b2dd27b03..65dd3934ae121 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerDeploymentStatusListResultInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerDeploymentStatusListResultInner.java @@ -21,8 +21,7 @@ public final class NetworkManagerDeploymentStatusListResultInner { private List value; /* - * 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. + * 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. */ @JsonProperty(value = "skipToken") private String skipToken; diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerEffectiveConnectivityConfigurationListResultInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerEffectiveConnectivityConfigurationListResultInner.java index 842be18af4c96..c8111a519e70d 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerEffectiveConnectivityConfigurationListResultInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerEffectiveConnectivityConfigurationListResultInner.java @@ -22,8 +22,7 @@ public final class NetworkManagerEffectiveConnectivityConfigurationListResultInn private List value; /* - * 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. + * 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. */ @JsonProperty(value = "skipToken") private String skipToken; diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerEffectiveSecurityAdminRulesListResultInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerEffectiveSecurityAdminRulesListResultInner.java index 15f26384d8d69..cffefaebbecb8 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerEffectiveSecurityAdminRulesListResultInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerEffectiveSecurityAdminRulesListResultInner.java @@ -10,8 +10,8 @@ import java.util.List; /** - * Result of the request to list networkManagerEffectiveSecurityAdminRules. It contains a list of groups and a - * skiptoken to get the next set of results. + * Result of the request to list networkManagerEffectiveSecurityAdminRules. It contains a list of groups and a skiptoken + * to get the next set of results. */ @Fluent public final class NetworkManagerEffectiveSecurityAdminRulesListResultInner { @@ -22,8 +22,7 @@ public final class NetworkManagerEffectiveSecurityAdminRulesListResultInner { private List value; /* - * 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. + * 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. */ @JsonProperty(value = "skipToken") private String skipToken; diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerProperties.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerProperties.java index 65b7a7150cd14..bb68a74f31c4c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkManagerProperties.java @@ -140,14 +140,16 @@ public String resourceGuid() { */ public void validate() { if (networkManagerScopes() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property networkManagerScopes in model NetworkManagerProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property networkManagerScopes in model NetworkManagerProperties")); } else { networkManagerScopes().validate(); } if (networkManagerScopeAccesses() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property networkManagerScopeAccesses in model NetworkManagerProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property networkManagerScopeAccesses in model NetworkManagerProperties")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkSecurityGroupPropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkSecurityGroupPropertiesFormat.java index 629ae89c805b5..6d81bb9a39123 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkSecurityGroupPropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkSecurityGroupPropertiesFormat.java @@ -15,8 +15,7 @@ @Fluent public final class NetworkSecurityGroupPropertiesFormat { /* - * When enabled, flows created from Network Security Group connections will be re-evaluated when rules are updates. - * Initial enablement will trigger re-evaluation. + * When enabled, flows created from Network Security Group connections will be re-evaluated when rules are updates. Initial enablement will trigger re-evaluation. */ @JsonProperty(value = "flushConnection") private Boolean flushConnection; diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceInner.java index dcfba66206148..8bb8b68d92771 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceInner.java @@ -10,6 +10,7 @@ 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.NetworkVirtualAppliancePropertiesFormatNetworkProfile; import com.azure.resourcemanager.network.models.PartnerManagedResourceProperties; import com.azure.resourcemanager.network.models.ProvisioningState; import com.azure.resourcemanager.network.models.VirtualApplianceAdditionalNicProperties; @@ -311,6 +312,30 @@ public List virtualApplianceNics() { return this.innerProperties() == null ? null : this.innerProperties().virtualApplianceNics(); } + /** + * Get the networkProfile property: Network Profile containing configurations for Public and Private NIC. + * + * @return the networkProfile value. + */ + public NetworkVirtualAppliancePropertiesFormatNetworkProfile networkProfile() { + return this.innerProperties() == null ? null : this.innerProperties().networkProfile(); + } + + /** + * Set the networkProfile property: Network Profile containing configurations for Public and Private NIC. + * + * @param networkProfile the networkProfile value to set. + * @return the NetworkVirtualApplianceInner object itself. + */ + public NetworkVirtualApplianceInner + withNetworkProfile(NetworkVirtualAppliancePropertiesFormatNetworkProfile networkProfile) { + if (this.innerProperties() == null) { + this.innerProperties = new NetworkVirtualAppliancePropertiesFormat(); + } + this.innerProperties().withNetworkProfile(networkProfile); + return this; + } + /** * Get the additionalNics property: Details required for Additional Network Interface. * diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceInstanceIdsInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceInstanceIdsInner.java new file mode 100644 index 0000000000000..3e2d5085666e1 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualApplianceInstanceIdsInner.java @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.network.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** + * Specifies a list of virtual machine instance IDs from the Network Virtual Appliance VM instances. + */ +@Fluent +public final class NetworkVirtualApplianceInstanceIdsInner { + /* + * The network virtual appliance instance ids. Omitting the network virtual appliance instance ids will result in the operation being performed on all virtual machines belonging to the network virtual appliance. + */ + @JsonProperty(value = "instanceIds") + private List instanceIds; + + /** + * Creates an instance of NetworkVirtualApplianceInstanceIdsInner class. + */ + public NetworkVirtualApplianceInstanceIdsInner() { + } + + /** + * Get the instanceIds property: The network virtual appliance instance ids. Omitting the network virtual appliance + * instance ids will result in the operation being performed on all virtual machines belonging to the network + * virtual appliance. + * + * @return the instanceIds value. + */ + public List instanceIds() { + return this.instanceIds; + } + + /** + * Set the instanceIds property: The network virtual appliance instance ids. Omitting the network virtual appliance + * instance ids will result in the operation being performed on all virtual machines belonging to the network + * virtual appliance. + * + * @param instanceIds the instanceIds value to set. + * @return the NetworkVirtualApplianceInstanceIdsInner object itself. + */ + public NetworkVirtualApplianceInstanceIdsInner withInstanceIds(List instanceIds) { + this.instanceIds = instanceIds; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualAppliancePropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualAppliancePropertiesFormat.java index 40576357d03ee..dd4eaeed62585 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualAppliancePropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NetworkVirtualAppliancePropertiesFormat.java @@ -8,6 +8,7 @@ import com.azure.core.management.SubResource; import com.azure.resourcemanager.network.models.DelegationProperties; import com.azure.resourcemanager.network.models.InternetIngressPublicIpsProperties; +import com.azure.resourcemanager.network.models.NetworkVirtualAppliancePropertiesFormatNetworkProfile; import com.azure.resourcemanager.network.models.PartnerManagedResourceProperties; import com.azure.resourcemanager.network.models.ProvisioningState; import com.azure.resourcemanager.network.models.VirtualApplianceAdditionalNicProperties; @@ -75,6 +76,12 @@ public final class NetworkVirtualAppliancePropertiesFormat { @JsonProperty(value = "virtualApplianceNics", access = JsonProperty.Access.WRITE_ONLY) private List virtualApplianceNics; + /* + * Network Profile containing configurations for Public and Private NIC. + */ + @JsonProperty(value = "networkProfile") + private NetworkVirtualAppliancePropertiesFormatNetworkProfile networkProfile; + /* * Details required for Additional Network Interface. */ @@ -297,6 +304,27 @@ public List virtualApplianceNics() { return this.virtualApplianceNics; } + /** + * Get the networkProfile property: Network Profile containing configurations for Public and Private NIC. + * + * @return the networkProfile value. + */ + public NetworkVirtualAppliancePropertiesFormatNetworkProfile networkProfile() { + return this.networkProfile; + } + + /** + * Set the networkProfile property: Network Profile containing configurations for Public and Private NIC. + * + * @param networkProfile the networkProfile value to set. + * @return the NetworkVirtualAppliancePropertiesFormat object itself. + */ + public NetworkVirtualAppliancePropertiesFormat + withNetworkProfile(NetworkVirtualAppliancePropertiesFormatNetworkProfile networkProfile) { + this.networkProfile = networkProfile; + return this; + } + /** * Get the additionalNics property: Details required for Additional Network Interface. * @@ -437,6 +465,9 @@ public void validate() { if (virtualApplianceNics() != null) { virtualApplianceNics().forEach(e -> e.validate()); } + if (networkProfile() != null) { + networkProfile().validate(); + } if (additionalNics() != null) { additionalNics().forEach(e -> e.validate()); } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NextHopResultInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NextHopResultInner.java index 34907ea21c435..727677aeae748 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NextHopResultInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/NextHopResultInner.java @@ -26,8 +26,7 @@ public final class NextHopResultInner { private String nextHopIpAddress; /* - * The resource identifier for the route table associated with the route being returned. If the route being - * returned does not correspond to any user created routes then this field will be the string 'System Route'. + * The resource identifier for the route table associated with the route being returned. If the route being returned does not correspond to any user created routes then this field will be the string 'System Route'. */ @JsonProperty(value = "routeTableId") private String routeTableId; diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/OutboundRuleInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/OutboundRuleInner.java index 46fab04ce9f19..ec217d2174f75 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/OutboundRuleInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/OutboundRuleInner.java @@ -23,8 +23,7 @@ public final class OutboundRuleInner extends SubResource { 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. + * 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. */ @JsonProperty(value = "name") private String name; diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/OutboundRulePropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/OutboundRulePropertiesFormat.java index d8ff91776b9fe..fae7d80c6b4a9 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/OutboundRulePropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/OutboundRulePropertiesFormat.java @@ -48,8 +48,7 @@ public final class OutboundRulePropertiesFormat { private LoadBalancerOutboundRuleProtocol protocol; /* - * Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is - * only used when the protocol is set to TCP. + * Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is only used when the protocol is set to TCP. */ @JsonProperty(value = "enableTcpReset") private Boolean enableTcpReset; @@ -206,16 +205,19 @@ public OutboundRulePropertiesFormat withIdleTimeoutInMinutes(Integer idleTimeout */ public void validate() { if (frontendIpConfigurations() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property frontendIpConfigurations in model OutboundRulePropertiesFormat")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property frontendIpConfigurations in model OutboundRulePropertiesFormat")); } if (backendAddressPool() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property backendAddressPool in model OutboundRulePropertiesFormat")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property backendAddressPool in model OutboundRulePropertiesFormat")); } if (protocol() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property protocol in model OutboundRulePropertiesFormat")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property protocol in model OutboundRulePropertiesFormat")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/P2SConnectionConfigurationProperties.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/P2SConnectionConfigurationProperties.java index b70802097b4a1..a0c75c1fc35e3 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/P2SConnectionConfigurationProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/P2SConnectionConfigurationProperties.java @@ -60,8 +60,8 @@ public P2SConnectionConfigurationProperties() { } /** - * Get the vpnClientAddressPool property: The reference to the address space resource which represents Address - * space for P2S VpnClient. + * Get the vpnClientAddressPool property: The reference to the address space resource which represents Address space + * for P2S VpnClient. * * @return the vpnClientAddressPool value. */ @@ -70,8 +70,8 @@ public AddressSpace vpnClientAddressPool() { } /** - * Set the vpnClientAddressPool property: The reference to the address space resource which represents Address - * space for P2S VpnClient. + * Set the vpnClientAddressPool property: The reference to the address space resource which represents Address space + * for P2S VpnClient. * * @param vpnClientAddressPool the vpnClientAddressPool value to set. * @return the P2SConnectionConfigurationProperties object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PacketCaptureInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PacketCaptureInner.java index 0e6594d0ddbd1..77ff2d377ffb0 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PacketCaptureInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PacketCaptureInner.java @@ -8,6 +8,7 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.network.models.PacketCaptureFilter; import com.azure.resourcemanager.network.models.PacketCaptureMachineScope; +import com.azure.resourcemanager.network.models.PacketCaptureSettings; import com.azure.resourcemanager.network.models.PacketCaptureStorageLocation; import com.azure.resourcemanager.network.models.PacketCaptureTargetType; import com.fasterxml.jackson.annotation.JsonProperty; @@ -40,8 +41,8 @@ private PacketCaptureParameters innerProperties() { } /** - * Get the target property: The ID of the targeted resource, only AzureVM and AzureVMSS as target type are - * currently supported. + * Get the target property: The ID of the targeted resource, only AzureVM and AzureVMSS as target type are currently + * supported. * * @return the target value. */ @@ -50,8 +51,8 @@ public String target() { } /** - * Set the target property: The ID of the targeted resource, only AzureVM and AzureVMSS as target type are - * currently supported. + * Set the target property: The ID of the targeted resource, only AzureVM and AzureVMSS as target type are currently + * supported. * * @param target the target value to set. * @return the PacketCaptureInner object itself. @@ -65,8 +66,8 @@ public PacketCaptureInner withTarget(String target) { } /** - * Get the scope property: A list of AzureVMSS instances which can be included or excluded to run packet capture. - * If both included and excluded are empty, then the packet capture will run on all instances of AzureVMSS. + * Get the scope property: A list of AzureVMSS instances which can be included or excluded to run packet capture. If + * both included and excluded are empty, then the packet capture will run on all instances of AzureVMSS. * * @return the scope value. */ @@ -75,8 +76,8 @@ public PacketCaptureMachineScope scope() { } /** - * Set the scope property: A list of AzureVMSS instances which can be included or excluded to run packet capture. - * If both included and excluded are empty, then the packet capture will run on all instances of AzureVMSS. + * Set the scope property: A list of AzureVMSS instances which can be included or excluded to run packet capture. If + * both included and excluded are empty, then the packet capture will run on all instances of AzureVMSS. * * @param scope the scope value to set. * @return the PacketCaptureInner object itself. @@ -113,8 +114,7 @@ public PacketCaptureInner withTargetType(PacketCaptureTargetType targetType) { } /** - * Get the bytesToCapturePerPacket property: Number of bytes captured per packet, the remaining bytes are - * truncated. + * Get the bytesToCapturePerPacket property: Number of bytes captured per packet, the remaining bytes are truncated. * * @return the bytesToCapturePerPacket value. */ @@ -123,8 +123,7 @@ public Long bytesToCapturePerPacket() { } /** - * Set the bytesToCapturePerPacket property: Number of bytes captured per packet, the remaining bytes are - * truncated. + * Set the bytesToCapturePerPacket property: Number of bytes captured per packet, the remaining bytes are truncated. * * @param bytesToCapturePerPacket the bytesToCapturePerPacket value to set. * @return the PacketCaptureInner object itself. @@ -229,6 +228,56 @@ public PacketCaptureInner withFilters(List filters) { return this; } + /** + * Get the continuousCapture property: This continuous capture is a nullable boolean, which can hold 'null', 'true' + * or 'false' value. If we do not pass this parameter, it would be consider as 'null', default value is 'null'. + * + * @return the continuousCapture value. + */ + public Boolean continuousCapture() { + return this.innerProperties() == null ? null : this.innerProperties().continuousCapture(); + } + + /** + * Set the continuousCapture property: This continuous capture is a nullable boolean, which can hold 'null', 'true' + * or 'false' value. If we do not pass this parameter, it would be consider as 'null', default value is 'null'. + * + * @param continuousCapture the continuousCapture value to set. + * @return the PacketCaptureInner object itself. + */ + public PacketCaptureInner withContinuousCapture(Boolean continuousCapture) { + if (this.innerProperties() == null) { + this.innerProperties = new PacketCaptureParameters(); + } + this.innerProperties().withContinuousCapture(continuousCapture); + return this; + } + + /** + * Get the captureSettings property: The capture setting holds the 'FileCount', 'FileSizeInBytes', + * 'SessionTimeLimitInSeconds' values. + * + * @return the captureSettings value. + */ + public PacketCaptureSettings captureSettings() { + return this.innerProperties() == null ? null : this.innerProperties().captureSettings(); + } + + /** + * Set the captureSettings property: The capture setting holds the 'FileCount', 'FileSizeInBytes', + * 'SessionTimeLimitInSeconds' values. + * + * @param captureSettings the captureSettings value to set. + * @return the PacketCaptureInner object itself. + */ + public PacketCaptureInner withCaptureSettings(PacketCaptureSettings captureSettings) { + if (this.innerProperties() == null) { + this.innerProperties = new PacketCaptureParameters(); + } + this.innerProperties().withCaptureSettings(captureSettings); + return this; + } + /** * Validates the instance. * @@ -236,8 +285,9 @@ public PacketCaptureInner withFilters(List filters) { */ public void validate() { if (innerProperties() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property innerProperties in model PacketCaptureInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property innerProperties in model PacketCaptureInner")); } else { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PacketCaptureParameters.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PacketCaptureParameters.java index a03f5f10eebd2..828699c193f98 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PacketCaptureParameters.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PacketCaptureParameters.java @@ -8,6 +8,7 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.network.models.PacketCaptureFilter; import com.azure.resourcemanager.network.models.PacketCaptureMachineScope; +import com.azure.resourcemanager.network.models.PacketCaptureSettings; import com.azure.resourcemanager.network.models.PacketCaptureStorageLocation; import com.azure.resourcemanager.network.models.PacketCaptureTargetType; import com.fasterxml.jackson.annotation.JsonProperty; @@ -25,8 +26,7 @@ public class PacketCaptureParameters { private String target; /* - * A list of AzureVMSS instances which can be included or excluded to run packet capture. If both included and - * excluded are empty, then the packet capture will run on all instances of AzureVMSS. + * A list of AzureVMSS instances which can be included or excluded to run packet capture. If both included and excluded are empty, then the packet capture will run on all instances of AzureVMSS. */ @JsonProperty(value = "scope") private PacketCaptureMachineScope scope; @@ -67,6 +67,18 @@ public class PacketCaptureParameters { @JsonProperty(value = "filters") private List filters; + /* + * This continuous capture is a nullable boolean, which can hold 'null', 'true' or 'false' value. If we do not pass this parameter, it would be consider as 'null', default value is 'null'. + */ + @JsonProperty(value = "continuousCapture") + private Boolean continuousCapture; + + /* + * The capture setting holds the 'FileCount', 'FileSizeInBytes', 'SessionTimeLimitInSeconds' values. + */ + @JsonProperty(value = "captureSettings") + private PacketCaptureSettings captureSettings; + /** * Creates an instance of PacketCaptureParameters class. */ @@ -74,8 +86,8 @@ public PacketCaptureParameters() { } /** - * Get the target property: The ID of the targeted resource, only AzureVM and AzureVMSS as target type are - * currently supported. + * Get the target property: The ID of the targeted resource, only AzureVM and AzureVMSS as target type are currently + * supported. * * @return the target value. */ @@ -84,8 +96,8 @@ public String target() { } /** - * Set the target property: The ID of the targeted resource, only AzureVM and AzureVMSS as target type are - * currently supported. + * Set the target property: The ID of the targeted resource, only AzureVM and AzureVMSS as target type are currently + * supported. * * @param target the target value to set. * @return the PacketCaptureParameters object itself. @@ -96,8 +108,8 @@ public PacketCaptureParameters withTarget(String target) { } /** - * Get the scope property: A list of AzureVMSS instances which can be included or excluded to run packet capture. - * If both included and excluded are empty, then the packet capture will run on all instances of AzureVMSS. + * Get the scope property: A list of AzureVMSS instances which can be included or excluded to run packet capture. If + * both included and excluded are empty, then the packet capture will run on all instances of AzureVMSS. * * @return the scope value. */ @@ -106,8 +118,8 @@ public PacketCaptureMachineScope scope() { } /** - * Set the scope property: A list of AzureVMSS instances which can be included or excluded to run packet capture. - * If both included and excluded are empty, then the packet capture will run on all instances of AzureVMSS. + * Set the scope property: A list of AzureVMSS instances which can be included or excluded to run packet capture. If + * both included and excluded are empty, then the packet capture will run on all instances of AzureVMSS. * * @param scope the scope value to set. * @return the PacketCaptureParameters object itself. @@ -138,8 +150,7 @@ public PacketCaptureParameters withTargetType(PacketCaptureTargetType targetType } /** - * Get the bytesToCapturePerPacket property: Number of bytes captured per packet, the remaining bytes are - * truncated. + * Get the bytesToCapturePerPacket property: Number of bytes captured per packet, the remaining bytes are truncated. * * @return the bytesToCapturePerPacket value. */ @@ -148,8 +159,7 @@ public Long bytesToCapturePerPacket() { } /** - * Set the bytesToCapturePerPacket property: Number of bytes captured per packet, the remaining bytes are - * truncated. + * Set the bytesToCapturePerPacket property: Number of bytes captured per packet, the remaining bytes are truncated. * * @param bytesToCapturePerPacket the bytesToCapturePerPacket value to set. * @return the PacketCaptureParameters object itself. @@ -239,6 +249,50 @@ public PacketCaptureParameters withFilters(List filters) { return this; } + /** + * Get the continuousCapture property: This continuous capture is a nullable boolean, which can hold 'null', 'true' + * or 'false' value. If we do not pass this parameter, it would be consider as 'null', default value is 'null'. + * + * @return the continuousCapture value. + */ + public Boolean continuousCapture() { + return this.continuousCapture; + } + + /** + * Set the continuousCapture property: This continuous capture is a nullable boolean, which can hold 'null', 'true' + * or 'false' value. If we do not pass this parameter, it would be consider as 'null', default value is 'null'. + * + * @param continuousCapture the continuousCapture value to set. + * @return the PacketCaptureParameters object itself. + */ + public PacketCaptureParameters withContinuousCapture(Boolean continuousCapture) { + this.continuousCapture = continuousCapture; + return this; + } + + /** + * Get the captureSettings property: The capture setting holds the 'FileCount', 'FileSizeInBytes', + * 'SessionTimeLimitInSeconds' values. + * + * @return the captureSettings value. + */ + public PacketCaptureSettings captureSettings() { + return this.captureSettings; + } + + /** + * Set the captureSettings property: The capture setting holds the 'FileCount', 'FileSizeInBytes', + * 'SessionTimeLimitInSeconds' values. + * + * @param captureSettings the captureSettings value to set. + * @return the PacketCaptureParameters object itself. + */ + public PacketCaptureParameters withCaptureSettings(PacketCaptureSettings captureSettings) { + this.captureSettings = captureSettings; + return this; + } + /** * Validates the instance. * @@ -246,21 +300,25 @@ public PacketCaptureParameters withFilters(List filters) { */ public void validate() { if (target() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property target in model PacketCaptureParameters")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property target in model PacketCaptureParameters")); } if (scope() != null) { scope().validate(); } if (storageLocation() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property storageLocation in model PacketCaptureParameters")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property storageLocation in model PacketCaptureParameters")); } else { storageLocation().validate(); } if (filters() != null) { filters().forEach(e -> e.validate()); } + if (captureSettings() != null) { + captureSettings().validate(); + } } private static final ClientLogger LOGGER = new ClientLogger(PacketCaptureParameters.class); diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PacketCaptureResultInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PacketCaptureResultInner.java index a867ccf88db2f..d94532a22bf3a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PacketCaptureResultInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PacketCaptureResultInner.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.azure.resourcemanager.network.models.PacketCaptureFilter; import com.azure.resourcemanager.network.models.PacketCaptureMachineScope; +import com.azure.resourcemanager.network.models.PacketCaptureSettings; import com.azure.resourcemanager.network.models.PacketCaptureStorageLocation; import com.azure.resourcemanager.network.models.PacketCaptureTargetType; import com.azure.resourcemanager.network.models.ProvisioningState; @@ -94,8 +95,8 @@ public ProvisioningState provisioningState() { } /** - * Get the target property: The ID of the targeted resource, only AzureVM and AzureVMSS as target type are - * currently supported. + * Get the target property: The ID of the targeted resource, only AzureVM and AzureVMSS as target type are currently + * supported. * * @return the target value. */ @@ -104,8 +105,8 @@ public String target() { } /** - * Set the target property: The ID of the targeted resource, only AzureVM and AzureVMSS as target type are - * currently supported. + * Set the target property: The ID of the targeted resource, only AzureVM and AzureVMSS as target type are currently + * supported. * * @param target the target value to set. * @return the PacketCaptureResultInner object itself. @@ -119,8 +120,8 @@ public PacketCaptureResultInner withTarget(String target) { } /** - * Get the scope property: A list of AzureVMSS instances which can be included or excluded to run packet capture. - * If both included and excluded are empty, then the packet capture will run on all instances of AzureVMSS. + * Get the scope property: A list of AzureVMSS instances which can be included or excluded to run packet capture. If + * both included and excluded are empty, then the packet capture will run on all instances of AzureVMSS. * * @return the scope value. */ @@ -129,8 +130,8 @@ public PacketCaptureMachineScope scope() { } /** - * Set the scope property: A list of AzureVMSS instances which can be included or excluded to run packet capture. - * If both included and excluded are empty, then the packet capture will run on all instances of AzureVMSS. + * Set the scope property: A list of AzureVMSS instances which can be included or excluded to run packet capture. If + * both included and excluded are empty, then the packet capture will run on all instances of AzureVMSS. * * @param scope the scope value to set. * @return the PacketCaptureResultInner object itself. @@ -167,8 +168,7 @@ public PacketCaptureResultInner withTargetType(PacketCaptureTargetType targetTyp } /** - * Get the bytesToCapturePerPacket property: Number of bytes captured per packet, the remaining bytes are - * truncated. + * Get the bytesToCapturePerPacket property: Number of bytes captured per packet, the remaining bytes are truncated. * * @return the bytesToCapturePerPacket value. */ @@ -177,8 +177,7 @@ public Long bytesToCapturePerPacket() { } /** - * Set the bytesToCapturePerPacket property: Number of bytes captured per packet, the remaining bytes are - * truncated. + * Set the bytesToCapturePerPacket property: Number of bytes captured per packet, the remaining bytes are truncated. * * @param bytesToCapturePerPacket the bytesToCapturePerPacket value to set. * @return the PacketCaptureResultInner object itself. @@ -283,6 +282,56 @@ public PacketCaptureResultInner withFilters(List filters) { return this; } + /** + * Get the continuousCapture property: This continuous capture is a nullable boolean, which can hold 'null', 'true' + * or 'false' value. If we do not pass this parameter, it would be consider as 'null', default value is 'null'. + * + * @return the continuousCapture value. + */ + public Boolean continuousCapture() { + return this.innerProperties() == null ? null : this.innerProperties().continuousCapture(); + } + + /** + * Set the continuousCapture property: This continuous capture is a nullable boolean, which can hold 'null', 'true' + * or 'false' value. If we do not pass this parameter, it would be consider as 'null', default value is 'null'. + * + * @param continuousCapture the continuousCapture value to set. + * @return the PacketCaptureResultInner object itself. + */ + public PacketCaptureResultInner withContinuousCapture(Boolean continuousCapture) { + if (this.innerProperties() == null) { + this.innerProperties = new PacketCaptureResultProperties(); + } + this.innerProperties().withContinuousCapture(continuousCapture); + return this; + } + + /** + * Get the captureSettings property: The capture setting holds the 'FileCount', 'FileSizeInBytes', + * 'SessionTimeLimitInSeconds' values. + * + * @return the captureSettings value. + */ + public PacketCaptureSettings captureSettings() { + return this.innerProperties() == null ? null : this.innerProperties().captureSettings(); + } + + /** + * Set the captureSettings property: The capture setting holds the 'FileCount', 'FileSizeInBytes', + * 'SessionTimeLimitInSeconds' values. + * + * @param captureSettings the captureSettings value to set. + * @return the PacketCaptureResultInner object itself. + */ + public PacketCaptureResultInner withCaptureSettings(PacketCaptureSettings captureSettings) { + if (this.innerProperties() == null) { + this.innerProperties = new PacketCaptureResultProperties(); + } + this.innerProperties().withCaptureSettings(captureSettings); + return this; + } + /** * Validates the instance. * diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PacketCaptureResultProperties.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PacketCaptureResultProperties.java index 6cc06ca7b55da..d039eba7a697d 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PacketCaptureResultProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PacketCaptureResultProperties.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.azure.resourcemanager.network.models.PacketCaptureFilter; import com.azure.resourcemanager.network.models.PacketCaptureMachineScope; +import com.azure.resourcemanager.network.models.PacketCaptureSettings; import com.azure.resourcemanager.network.models.PacketCaptureStorageLocation; import com.azure.resourcemanager.network.models.PacketCaptureTargetType; import com.azure.resourcemanager.network.models.ProvisioningState; @@ -111,6 +112,24 @@ public PacketCaptureResultProperties withFilters(List filte return this; } + /** + * {@inheritDoc} + */ + @Override + public PacketCaptureResultProperties withContinuousCapture(Boolean continuousCapture) { + super.withContinuousCapture(continuousCapture); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public PacketCaptureResultProperties withCaptureSettings(PacketCaptureSettings captureSettings) { + super.withCaptureSettings(captureSettings); + return this; + } + /** * Validates the instance. * diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PeerExpressRouteCircuitConnectionInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PeerExpressRouteCircuitConnectionInner.java index a89ff546d1c4a..a5d74ceceeed8 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PeerExpressRouteCircuitConnectionInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PeerExpressRouteCircuitConnectionInner.java @@ -236,8 +236,7 @@ public PeerExpressRouteCircuitConnectionInner withAuthResourceGuid(String authRe } /** - * Get the provisioningState property: The provisioning state of the peer express route circuit connection - * resource. + * Get the provisioningState property: The provisioning state of the peer express route circuit connection resource. * * @return the provisioningState value. */ diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PeerExpressRouteCircuitConnectionPropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PeerExpressRouteCircuitConnectionPropertiesFormat.java index 5e175255bfba6..c6bac3c70aada 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PeerExpressRouteCircuitConnectionPropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PeerExpressRouteCircuitConnectionPropertiesFormat.java @@ -181,8 +181,7 @@ public PeerExpressRouteCircuitConnectionPropertiesFormat withAuthResourceGuid(St } /** - * Get the provisioningState property: The provisioning state of the peer express route circuit connection - * resource. + * Get the provisioningState property: The provisioning state of the peer express route circuit connection resource. * * @return the provisioningState value. */ diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointConnectionInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointConnectionInner.java index 9505c5528929b..ac6d85b2663d4 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointConnectionInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointConnectionInner.java @@ -113,8 +113,8 @@ public PrivateEndpointInner privateEndpoint() { } /** - * Get the privateLinkServiceConnectionState property: A collection of information about the state of the - * connection between service consumer and provider. + * Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection + * between service consumer and provider. * * @return the privateLinkServiceConnectionState value. */ @@ -123,8 +123,8 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() { } /** - * Set the privateLinkServiceConnectionState property: A collection of information about the state of the - * connection between service consumer and provider. + * Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection + * between service consumer and provider. * * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set. * @return the PrivateEndpointConnectionInner object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointConnectionPropertiesInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointConnectionPropertiesInner.java index 617d399851bd8..6ea32985a15d1 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointConnectionPropertiesInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointConnectionPropertiesInner.java @@ -60,8 +60,8 @@ public PrivateEndpointInner privateEndpoint() { } /** - * Get the privateLinkServiceConnectionState property: A collection of information about the state of the - * connection between service consumer and provider. + * Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection + * between service consumer and provider. * * @return the privateLinkServiceConnectionState value. */ @@ -70,8 +70,8 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() { } /** - * Set the privateLinkServiceConnectionState property: A collection of information about the state of the - * connection between service consumer and provider. + * Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection + * between service consumer and provider. * * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set. * @return the PrivateEndpointConnectionPropertiesInner object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointPropertiesInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointPropertiesInner.java index 75ccb9d51ffa7..766c0d34ab65c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointPropertiesInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateEndpointPropertiesInner.java @@ -42,8 +42,7 @@ public final class PrivateEndpointPropertiesInner { private List privateLinkServiceConnections; /* - * A grouping of information about the connection to the remote resource. Used when the network admin does not have - * access to approve connections to the remote resource. + * A grouping of information about the connection to the remote resource. Used when the network admin does not have access to approve connections to the remote resource. */ @JsonProperty(value = "manualPrivateLinkServiceConnections") private List manualPrivateLinkServiceConnections; @@ -61,8 +60,7 @@ public final class PrivateEndpointPropertiesInner { private List applicationSecurityGroups; /* - * A list of IP configurations of the private endpoint. This will be used to map to the First Party Service's - * endpoints. + * A list of IP configurations of the private endpoint. This will be used to map to the First Party Service's endpoints. */ @JsonProperty(value = "ipConfigurations") private List ipConfigurations; diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceConnectionProperties.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceConnectionProperties.java index 05f7801fe5d41..937bab907425a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceConnectionProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceConnectionProperties.java @@ -81,8 +81,8 @@ public PrivateLinkServiceConnectionProperties withPrivateLinkServiceId(String pr } /** - * Get the groupIds property: The ID(s) of the group(s) obtained from the remote resource that this private - * endpoint should connect to. + * Get the groupIds property: The ID(s) of the group(s) obtained from the remote resource that this private endpoint + * should connect to. * * @return the groupIds value. */ @@ -91,8 +91,8 @@ public List groupIds() { } /** - * Set the groupIds property: The ID(s) of the group(s) obtained from the remote resource that this private - * endpoint should connect to. + * Set the groupIds property: The ID(s) of the group(s) obtained from the remote resource that this private endpoint + * should connect to. * * @param groupIds the groupIds value to set. * @return the PrivateLinkServiceConnectionProperties object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceIpConfigurationInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceIpConfigurationInner.java index e1c936658d9df..337c696577d2a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceIpConfigurationInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceIpConfigurationInner.java @@ -196,8 +196,7 @@ public PrivateLinkServiceIpConfigurationInner withPrimary(Boolean primary) { } /** - * Get the provisioningState property: The provisioning state of the private link service IP configuration - * resource. + * Get the provisioningState property: The provisioning state of the private link service IP configuration resource. * * @return the provisioningState value. */ @@ -206,8 +205,7 @@ public ProvisioningState provisioningState() { } /** - * Get the privateIpAddressVersion property: Whether the specific IP configuration is IPv4 or IPv6. Default is - * IPv4. + * Get the privateIpAddressVersion property: Whether the specific IP configuration is IPv4 or IPv6. Default is IPv4. * * @return the privateIpAddressVersion value. */ @@ -216,8 +214,7 @@ public IpVersion privateIpAddressVersion() { } /** - * Set the privateIpAddressVersion property: Whether the specific IP configuration is IPv4 or IPv6. Default is - * IPv4. + * 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 PrivateLinkServiceIpConfigurationInner object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceIpConfigurationPropertiesInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceIpConfigurationPropertiesInner.java index 9b9010b465781..e78f54ff8cf46 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceIpConfigurationPropertiesInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PrivateLinkServiceIpConfigurationPropertiesInner.java @@ -139,8 +139,7 @@ public PrivateLinkServiceIpConfigurationPropertiesInner withPrimary(Boolean prim } /** - * Get the provisioningState property: The provisioning state of the private link service IP configuration - * resource. + * Get the provisioningState property: The provisioning state of the private link service IP configuration resource. * * @return the provisioningState value. */ @@ -149,8 +148,7 @@ public ProvisioningState provisioningState() { } /** - * Get the privateIpAddressVersion property: Whether the specific IP configuration is IPv4 or IPv6. Default is - * IPv4. + * Get the privateIpAddressVersion property: Whether the specific IP configuration is IPv4 or IPv6. Default is IPv4. * * @return the privateIpAddressVersion value. */ @@ -159,8 +157,7 @@ public IpVersion privateIpAddressVersion() { } /** - * Set the privateIpAddressVersion property: Whether the specific IP configuration is IPv4 or IPv6. Default is - * IPv4. + * 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 PrivateLinkServiceIpConfigurationPropertiesInner object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ProbeInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ProbeInner.java index 0439076ebcc4c..5fcafde1e6dca 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ProbeInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ProbeInner.java @@ -23,8 +23,7 @@ public final class ProbeInner extends SubResource { 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. + * 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. */ @JsonProperty(value = "name") private String name; @@ -165,10 +164,9 @@ public ProbeInner withPort(Integer port) { } /** - * Get the intervalInSeconds property: The interval, in seconds, for how frequently to probe the endpoint for - * health status. Typically, the interval is slightly less than half the allocated timeout period (in seconds) - * which allows two full probes before taking the instance out of rotation. The default value is 15, the minimum - * value is 5. + * Get the intervalInSeconds property: The interval, in seconds, for how frequently to probe the endpoint for health + * status. Typically, the interval is slightly less than half the allocated timeout period (in seconds) which allows + * two full probes before taking the instance out of rotation. The default value is 15, the minimum value is 5. * * @return the intervalInSeconds value. */ @@ -177,10 +175,9 @@ public Integer intervalInSeconds() { } /** - * Set the intervalInSeconds property: The interval, in seconds, for how frequently to probe the endpoint for - * health status. Typically, the interval is slightly less than half the allocated timeout period (in seconds) - * which allows two full probes before taking the instance out of rotation. The default value is 15, the minimum - * value is 5. + * Set the intervalInSeconds property: The interval, in seconds, for how frequently to probe the endpoint for health + * status. Typically, the interval is slightly less than half the allocated timeout period (in seconds) which allows + * two full probes before taking the instance out of rotation. The default value is 15, the minimum value is 5. * * @param intervalInSeconds the intervalInSeconds value to set. * @return the ProbeInner object itself. @@ -223,8 +220,8 @@ public ProbeInner withNumberOfProbes(Integer numberOfProbes) { /** * Get the probeThreshold property: The number of consecutive successful or failed probes in order to allow or deny * traffic from being delivered to this endpoint. After failing the number of consecutive probes equal to this - * value, the endpoint will be taken out of rotation and require the same number of successful consecutive probes - * to be placed back in rotation. + * value, the endpoint will be taken out of rotation and require the same number of successful consecutive probes to + * be placed back in rotation. * * @return the probeThreshold value. */ @@ -235,8 +232,8 @@ public Integer probeThreshold() { /** * Set the probeThreshold property: The number of consecutive successful or failed probes in order to allow or deny * traffic from being delivered to this endpoint. After failing the number of consecutive probes equal to this - * value, the endpoint will be taken out of rotation and require the same number of successful consecutive probes - * to be placed back in rotation. + * value, the endpoint will be taken out of rotation and require the same number of successful consecutive probes to + * be placed back in rotation. * * @param probeThreshold the probeThreshold value to set. * @return the ProbeInner object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ProbePropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ProbePropertiesFormat.java index ef3803659c501..23ed636a30afc 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ProbePropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/ProbePropertiesFormat.java @@ -24,9 +24,7 @@ public final class ProbePropertiesFormat { private List loadBalancingRules; /* - * The protocol of the end point. If 'Tcp' is specified, a received ACK is required for the probe to be successful. - * If 'Http' or 'Https' is specified, a 200 OK response from the specifies URI is required for the probe to be - * successful. + * The protocol of the end point. If 'Tcp' is specified, a received ACK is required for the probe to be successful. If 'Http' or 'Https' is specified, a 200 OK response from the specifies URI is required for the probe to be successful. */ @JsonProperty(value = "protocol", required = true) private ProbeProtocol protocol; @@ -38,32 +36,25 @@ public final class ProbePropertiesFormat { private int port; /* - * The interval, in seconds, for how frequently to probe the endpoint for health status. Typically, the interval is - * slightly less than half the allocated timeout period (in seconds) which allows two full probes before taking the - * instance out of rotation. The default value is 15, the minimum value is 5. + * The interval, in seconds, for how frequently to probe the endpoint for health status. Typically, the interval is slightly less than half the allocated timeout period (in seconds) which allows two full probes before taking the instance out of rotation. The default value is 15, the minimum value is 5. */ @JsonProperty(value = "intervalInSeconds") private Integer intervalInSeconds; /* - * The number of probes where if no response, will result in stopping further traffic from being delivered to the - * endpoint. This values allows endpoints to be taken out of rotation faster or slower than the typical times used - * in Azure. + * The number of probes where if no response, will result in stopping further traffic from being delivered to the endpoint. This values allows endpoints to be taken out of rotation faster or slower than the typical times used in Azure. */ @JsonProperty(value = "numberOfProbes") private Integer numberOfProbes; /* - * The number of consecutive successful or failed probes in order to allow or deny traffic from being delivered to - * this endpoint. After failing the number of consecutive probes equal to this value, the endpoint will be taken - * out of rotation and require the same number of successful consecutive probes to be placed back in rotation. + * The number of consecutive successful or failed probes in order to allow or deny traffic from being delivered to this endpoint. After failing the number of consecutive probes equal to this value, the endpoint will be taken out of rotation and require the same number of successful consecutive probes to be placed back in rotation. */ @JsonProperty(value = "probeThreshold") private Integer probeThreshold; /* - * The URI used for requesting health status from the VM. Path is required if a protocol is set to http. Otherwise, - * it is not allowed. There is no default value. + * The URI used for requesting health status from the VM. Path is required if a protocol is set to http. Otherwise, it is not allowed. There is no default value. */ @JsonProperty(value = "requestPath") private String requestPath; @@ -134,10 +125,9 @@ public ProbePropertiesFormat withPort(int port) { } /** - * Get the intervalInSeconds property: The interval, in seconds, for how frequently to probe the endpoint for - * health status. Typically, the interval is slightly less than half the allocated timeout period (in seconds) - * which allows two full probes before taking the instance out of rotation. The default value is 15, the minimum - * value is 5. + * Get the intervalInSeconds property: The interval, in seconds, for how frequently to probe the endpoint for health + * status. Typically, the interval is slightly less than half the allocated timeout period (in seconds) which allows + * two full probes before taking the instance out of rotation. The default value is 15, the minimum value is 5. * * @return the intervalInSeconds value. */ @@ -146,10 +136,9 @@ public Integer intervalInSeconds() { } /** - * Set the intervalInSeconds property: The interval, in seconds, for how frequently to probe the endpoint for - * health status. Typically, the interval is slightly less than half the allocated timeout period (in seconds) - * which allows two full probes before taking the instance out of rotation. The default value is 15, the minimum - * value is 5. + * Set the intervalInSeconds property: The interval, in seconds, for how frequently to probe the endpoint for health + * status. Typically, the interval is slightly less than half the allocated timeout period (in seconds) which allows + * two full probes before taking the instance out of rotation. The default value is 15, the minimum value is 5. * * @param intervalInSeconds the intervalInSeconds value to set. * @return the ProbePropertiesFormat object itself. @@ -186,8 +175,8 @@ public ProbePropertiesFormat withNumberOfProbes(Integer numberOfProbes) { /** * Get the probeThreshold property: The number of consecutive successful or failed probes in order to allow or deny * traffic from being delivered to this endpoint. After failing the number of consecutive probes equal to this - * value, the endpoint will be taken out of rotation and require the same number of successful consecutive probes - * to be placed back in rotation. + * value, the endpoint will be taken out of rotation and require the same number of successful consecutive probes to + * be placed back in rotation. * * @return the probeThreshold value. */ @@ -198,8 +187,8 @@ public Integer probeThreshold() { /** * Set the probeThreshold property: The number of consecutive successful or failed probes in order to allow or deny * traffic from being delivered to this endpoint. After failing the number of consecutive probes equal to this - * value, the endpoint will be taken out of rotation and require the same number of successful consecutive probes - * to be placed back in rotation. + * value, the endpoint will be taken out of rotation and require the same number of successful consecutive probes to + * be placed back in rotation. * * @param probeThreshold the probeThreshold value to set. * @return the ProbePropertiesFormat object itself. @@ -247,8 +236,8 @@ public ProvisioningState provisioningState() { */ public void validate() { if (protocol() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property protocol in model ProbePropertiesFormat")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property protocol in model ProbePropertiesFormat")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PublicIpDdosProtectionStatusResultInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PublicIpDdosProtectionStatusResultInner.java index f79afa07aaf10..3b2a556ba9cd3 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PublicIpDdosProtectionStatusResultInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/PublicIpDdosProtectionStatusResultInner.java @@ -32,7 +32,7 @@ public final class PublicIpDdosProtectionStatusResultInner { private IsWorkloadProtected isWorkloadProtected; /* - * DDoS protection plan Resource Id of a if IP address is protected through a plan. + * DDoS protection plan Resource Id of a if IP address is protected through a plan. */ @JsonProperty(value = "ddosProtectionPlanId") private String ddosProtectionPlanId; @@ -104,8 +104,8 @@ public PublicIpDdosProtectionStatusResultInner withIsWorkloadProtected(IsWorkloa } /** - * Get the ddosProtectionPlanId property: DDoS protection plan Resource Id of a if IP address is protected through - * a plan. + * Get the ddosProtectionPlanId property: DDoS protection plan Resource Id of a if IP address is protected through a + * plan. * * @return the ddosProtectionPlanId value. */ @@ -114,8 +114,8 @@ public String ddosProtectionPlanId() { } /** - * Set the ddosProtectionPlanId property: DDoS protection plan Resource Id of a if IP address is protected through - * a plan. + * 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. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteFilterRulePropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteFilterRulePropertiesFormat.java index 731a8a53c45fc..b792a16c018b1 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteFilterRulePropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteFilterRulePropertiesFormat.java @@ -125,16 +125,19 @@ public ProvisioningState provisioningState() { */ public void validate() { if (access() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property access in model RouteFilterRulePropertiesFormat")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property access in model RouteFilterRulePropertiesFormat")); } if (routeFilterRuleType() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property routeFilterRuleType in model RouteFilterRulePropertiesFormat")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property routeFilterRuleType in model RouteFilterRulePropertiesFormat")); } if (communities() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property communities in model RouteFilterRulePropertiesFormat")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property communities in model RouteFilterRulePropertiesFormat")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteMapInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteMapInner.java index c6e52ee65f8ff..60846d2d3182a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteMapInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteMapInner.java @@ -93,8 +93,8 @@ public RouteMapInner withId(String id) { } /** - * Get the associatedInboundConnections property: List of connections which have this RoutMap associated for - * inbound traffic. + * Get the associatedInboundConnections property: List of connections which have this RoutMap associated for inbound + * traffic. * * @return the associatedInboundConnections value. */ @@ -103,8 +103,8 @@ public List associatedInboundConnections() { } /** - * Set the associatedInboundConnections property: List of connections which have this RoutMap associated for - * inbound traffic. + * Set the associatedInboundConnections property: List of connections which have this RoutMap associated for inbound + * traffic. * * @param associatedInboundConnections the associatedInboundConnections value to set. * @return the RouteMapInner object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteMapProperties.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteMapProperties.java index c3ff56085ba0b..42a25190ba774 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteMapProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RouteMapProperties.java @@ -46,8 +46,8 @@ public RouteMapProperties() { } /** - * Get the associatedInboundConnections property: List of connections which have this RoutMap associated for - * inbound traffic. + * Get the associatedInboundConnections property: List of connections which have this RoutMap associated for inbound + * traffic. * * @return the associatedInboundConnections value. */ @@ -56,8 +56,8 @@ public List associatedInboundConnections() { } /** - * Set the associatedInboundConnections property: List of connections which have this RoutMap associated for - * inbound traffic. + * Set the associatedInboundConnections property: List of connections which have this RoutMap associated for inbound + * traffic. * * @param associatedInboundConnections the associatedInboundConnections value to set. * @return the RouteMapProperties object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RoutePropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RoutePropertiesFormat.java index d7eb20fe2ad70..88a2f96a68410 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RoutePropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/RoutePropertiesFormat.java @@ -28,8 +28,7 @@ public final class RoutePropertiesFormat { private RouteNextHopType nextHopType; /* - * The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop - * type is VirtualAppliance. + * The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance. */ @JsonProperty(value = "nextHopIpAddress") private String nextHopIpAddress; @@ -152,8 +151,9 @@ public RoutePropertiesFormat withHasBgpOverride(Boolean hasBgpOverride) { */ public void validate() { if (nextHopType() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property nextHopType in model RoutePropertiesFormat")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property nextHopType in model RoutePropertiesFormat")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityRuleInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityRuleInner.java index d94b1544fd5f0..e847bafbc3039 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityRuleInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityRuleInner.java @@ -288,9 +288,9 @@ public List sourceApplicationSecurityGroups() { } /** - * Get the destinationAddressPrefix property: The destination address prefix. CIDR or destination IP range. - * Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', - * 'AzureLoadBalancer' and 'Internet' can also be used. + * Get the destinationAddressPrefix property: The destination address prefix. CIDR or destination IP range. Asterisk + * '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and + * 'Internet' can also be used. * * @return the destinationAddressPrefix value. */ @@ -299,9 +299,9 @@ public String destinationAddressPrefix() { } /** - * Set the destinationAddressPrefix property: The destination address prefix. CIDR or destination IP range. - * Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', - * 'AzureLoadBalancer' and 'Internet' can also be used. + * Set the destinationAddressPrefix property: The destination address prefix. CIDR or destination IP range. Asterisk + * '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and + * 'Internet' can also be used. * * @param destinationAddressPrefix the destinationAddressPrefix value to set. * @return the SecurityRuleInner object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityRulePropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityRulePropertiesFormat.java index fc9a4a6843ea0..e203913e36e01 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityRulePropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SecurityRulePropertiesFormat.java @@ -31,23 +31,19 @@ public final class SecurityRulePropertiesFormat { private SecurityRuleProtocol protocol; /* - * The source port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all - * ports. + * The source port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports. */ @JsonProperty(value = "sourcePortRange") private String sourcePortRange; /* - * The destination port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all - * ports. + * The destination port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports. */ @JsonProperty(value = "destinationPortRange") private String destinationPortRange; /* - * The CIDR or source IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as - * 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. If this is an ingress rule, specifies - * where network traffic originates from. + * The CIDR or source IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. If this is an ingress rule, specifies where network traffic originates from. */ @JsonProperty(value = "sourceAddressPrefix") private String sourceAddressPrefix; @@ -65,8 +61,7 @@ public final class SecurityRulePropertiesFormat { private List sourceApplicationSecurityGroups; /* - * The destination address prefix. CIDR or destination IP range. Asterisk '*' can also be used to match all source - * IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. + * The destination address prefix. CIDR or destination IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. */ @JsonProperty(value = "destinationAddressPrefix") private String destinationAddressPrefix; @@ -102,8 +97,7 @@ public final class SecurityRulePropertiesFormat { private SecurityRuleAccess access; /* - * The priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each - * rule in the collection. The lower the priority number, the higher the priority of the rule. + * The priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule. */ @JsonProperty(value = "priority", required = true) private int priority; @@ -276,9 +270,9 @@ public List sourceApplicationSecurityGroups() { } /** - * Get the destinationAddressPrefix property: The destination address prefix. CIDR or destination IP range. - * Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', - * 'AzureLoadBalancer' and 'Internet' can also be used. + * Get the destinationAddressPrefix property: The destination address prefix. CIDR or destination IP range. Asterisk + * '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and + * 'Internet' can also be used. * * @return the destinationAddressPrefix value. */ @@ -287,9 +281,9 @@ public String destinationAddressPrefix() { } /** - * Set the destinationAddressPrefix property: The destination address prefix. CIDR or destination IP range. - * Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', - * 'AzureLoadBalancer' and 'Internet' can also be used. + * Set the destinationAddressPrefix property: The destination address prefix. CIDR or destination IP range. Asterisk + * '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and + * 'Internet' can also be used. * * @param destinationAddressPrefix the destinationAddressPrefix value to set. * @return the SecurityRulePropertiesFormat object itself. @@ -462,8 +456,9 @@ public ProvisioningState provisioningState() { */ public void validate() { if (protocol() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property protocol in model SecurityRulePropertiesFormat")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property protocol in model SecurityRulePropertiesFormat")); } if (sourceApplicationSecurityGroups() != null) { sourceApplicationSecurityGroups().forEach(e -> e.validate()); @@ -472,12 +467,14 @@ public void validate() { destinationApplicationSecurityGroups().forEach(e -> e.validate()); } if (access() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property access in model SecurityRulePropertiesFormat")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property access in model SecurityRulePropertiesFormat")); } if (direction() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property direction in model SecurityRulePropertiesFormat")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property direction in model SecurityRulePropertiesFormat")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SubnetInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SubnetInner.java index 0cfe9509a3f4a..deef7f179b8f3 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SubnetInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SubnetInner.java @@ -11,6 +11,7 @@ import com.azure.resourcemanager.network.models.ResourceNavigationLink; 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.VirtualNetworkPrivateEndpointNetworkPolicies; import com.azure.resourcemanager.network.models.VirtualNetworkPrivateLinkServiceNetworkPolicies; import com.fasterxml.jackson.annotation.JsonProperty; @@ -393,8 +394,8 @@ public ProvisioningState provisioningState() { } /** - * Get the privateEndpointNetworkPolicies property: Enable or Disable apply network policies on private end point - * in the subnet. + * Get the privateEndpointNetworkPolicies property: Enable or Disable apply network policies on private end point in + * the subnet. * * @return the privateEndpointNetworkPolicies value. */ @@ -403,8 +404,8 @@ public VirtualNetworkPrivateEndpointNetworkPolicies privateEndpointNetworkPolici } /** - * Set the privateEndpointNetworkPolicies property: Enable or Disable apply network policies on private end point - * in the subnet. + * Set the privateEndpointNetworkPolicies property: Enable or Disable apply network policies on private end point in + * the subnet. * * @param privateEndpointNetworkPolicies the privateEndpointNetworkPolicies value to set. * @return the SubnetInner object itself. @@ -470,6 +471,33 @@ public SubnetInner withApplicationGatewayIpConfigurations( return this; } + /** + * Get the sharingScope property: Set this property to Tenant to allow sharing subnet with other subscriptions in + * your AAD tenant. This property can only be set if defaultOutboundAccess is set to false, both properties can only + * be set if subnet is empty. + * + * @return the sharingScope value. + */ + public SharingScope sharingScope() { + return this.innerProperties() == null ? null : this.innerProperties().sharingScope(); + } + + /** + * Set the sharingScope property: Set this property to Tenant to allow sharing subnet with other subscriptions in + * your AAD tenant. This property can only be set if defaultOutboundAccess is set to false, both properties can only + * be set if subnet is empty. + * + * @param sharingScope the sharingScope value to set. + * @return the SubnetInner object itself. + */ + public SubnetInner withSharingScope(SharingScope sharingScope) { + if (this.innerProperties() == null) { + this.innerProperties = new SubnetPropertiesFormatInner(); + } + this.innerProperties().withSharingScope(sharingScope); + return this; + } + /** * Get the defaultOutboundAccess property: Set this property to false to disable default outbound connectivity for * all VMs in the subnet. This property can only be set at the time of subnet creation and cannot be updated for an diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SubnetPropertiesFormatInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SubnetPropertiesFormatInner.java index 3fd64fa8bcabc..4d06292cd482e 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SubnetPropertiesFormatInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/SubnetPropertiesFormatInner.java @@ -11,6 +11,7 @@ import com.azure.resourcemanager.network.models.ResourceNavigationLink; 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.VirtualNetworkPrivateEndpointNetworkPolicies; import com.azure.resourcemanager.network.models.VirtualNetworkPrivateLinkServiceNetworkPolicies; import com.fasterxml.jackson.annotation.JsonProperty; @@ -106,8 +107,7 @@ public final class SubnetPropertiesFormatInner { private List delegations; /* - * A read-only string identifying the intention of use for this subnet based on delegations and other user-defined - * properties. + * A read-only string identifying the intention of use for this subnet based on delegations and other user-defined properties. */ @JsonProperty(value = "purpose", access = JsonProperty.Access.WRITE_ONLY) private String purpose; @@ -137,8 +137,13 @@ public final class SubnetPropertiesFormatInner { private List applicationGatewayIpConfigurations; /* - * Set this property to false to disable default outbound connectivity for all VMs in the subnet. This property can - * only be set at the time of subnet creation and cannot be updated for an existing subnet. + * Set this property to Tenant to allow sharing subnet with other subscriptions in your AAD tenant. This property can only be set if defaultOutboundAccess is set to false, both properties can only be set if subnet is empty. + */ + @JsonProperty(value = "sharingScope") + private SharingScope sharingScope; + + /* + * Set this property to false to disable default outbound connectivity for all VMs in the subnet. This property can only be set at the time of subnet creation and cannot be updated for an existing subnet. */ @JsonProperty(value = "defaultOutboundAccess") private Boolean defaultOutboundAccess; @@ -396,8 +401,8 @@ public ProvisioningState provisioningState() { } /** - * Get the privateEndpointNetworkPolicies property: Enable or Disable apply network policies on private end point - * in the subnet. + * Get the privateEndpointNetworkPolicies property: Enable or Disable apply network policies on private end point in + * the subnet. * * @return the privateEndpointNetworkPolicies value. */ @@ -406,8 +411,8 @@ public VirtualNetworkPrivateEndpointNetworkPolicies privateEndpointNetworkPolici } /** - * Set the privateEndpointNetworkPolicies property: Enable or Disable apply network policies on private end point - * in the subnet. + * Set the privateEndpointNetworkPolicies property: Enable or Disable apply network policies on private end point in + * the subnet. * * @param privateEndpointNetworkPolicies the privateEndpointNetworkPolicies value to set. * @return the SubnetPropertiesFormatInner object itself. @@ -464,6 +469,30 @@ public SubnetPropertiesFormatInner withApplicationGatewayIpConfigurations( return this; } + /** + * Get the sharingScope property: Set this property to Tenant to allow sharing subnet with other subscriptions in + * your AAD tenant. This property can only be set if defaultOutboundAccess is set to false, both properties can only + * be set if subnet is empty. + * + * @return the sharingScope value. + */ + public SharingScope sharingScope() { + return this.sharingScope; + } + + /** + * Set the sharingScope property: Set this property to Tenant to allow sharing subnet with other subscriptions in + * your AAD tenant. This property can only be set if defaultOutboundAccess is set to false, both properties can only + * be set if subnet is empty. + * + * @param sharingScope the sharingScope value to set. + * @return the SubnetPropertiesFormatInner object itself. + */ + public SubnetPropertiesFormatInner withSharingScope(SharingScope sharingScope) { + this.sharingScope = sharingScope; + return this; + } + /** * Get the defaultOutboundAccess property: Set this property to false to disable default outbound connectivity for * all VMs in the subnet. This property can only be set at the time of subnet creation and cannot be updated for an diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/TroubleshootingProperties.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/TroubleshootingProperties.java index 421a6e152bd3a..74c62dae3b7f2 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/TroubleshootingProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/TroubleshootingProperties.java @@ -78,12 +78,14 @@ public TroubleshootingProperties withStoragePath(String storagePath) { */ public void validate() { if (storageId() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property storageId in model TroubleshootingProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property storageId in model TroubleshootingProperties")); } if (storagePath() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property storagePath in model TroubleshootingProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property storagePath in model TroubleshootingProperties")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/UsageInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/UsageInner.java index 473c9ba1be6e0..735ef32189d4f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/UsageInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/UsageInner.java @@ -147,12 +147,12 @@ public UsageInner withName(UsageName name) { */ public void validate() { if (unit() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property unit in model UsageInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property unit in model UsageInner")); } if (name() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property name in model UsageInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property name in model UsageInner")); } else { name().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionInner.java index c92bb76713af9..df45795843118 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionInner.java @@ -662,8 +662,9 @@ public VirtualNetworkGatewayConnectionInner withEnablePrivateLinkFastPath(Boolea */ public void validate() { if (innerProperties() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property innerProperties in model VirtualNetworkGatewayConnectionInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property innerProperties in model VirtualNetworkGatewayConnectionInner")); } else { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionListEntityInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionListEntityInner.java index c3cd0f51ba622..e012d4c5ab018 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionListEntityInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionListEntityInner.java @@ -575,8 +575,9 @@ public Boolean enablePrivateLinkFastPath() { */ public void validate() { if (innerProperties() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property innerProperties in model VirtualNetworkGatewayConnectionListEntityInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property innerProperties in model VirtualNetworkGatewayConnectionListEntityInner")); } else { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionListEntityPropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionListEntityPropertiesFormat.java index 7c1b9b2c0d4b3..e824bde748020 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionListEntityPropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionListEntityPropertiesFormat.java @@ -158,8 +158,7 @@ public final class VirtualNetworkGatewayConnectionListEntityPropertiesFormat { private Boolean expressRouteGatewayBypass; /* - * Bypass the ExpressRoute gateway when accessing private-links. ExpressRoute FastPath (expressRouteGatewayBypass) - * must be enabled. + * Bypass the ExpressRoute gateway when accessing private-links. ExpressRoute FastPath (expressRouteGatewayBypass) must be enabled. */ @JsonProperty(value = "enablePrivateLinkFastPath") private Boolean enablePrivateLinkFastPath; @@ -587,8 +586,9 @@ public Boolean enablePrivateLinkFastPath() { */ public void validate() { if (virtualNetworkGateway1() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property virtualNetworkGateway1 in model VirtualNetworkGatewayConnectionListEntityPropertiesFormat")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property virtualNetworkGateway1 in model VirtualNetworkGatewayConnectionListEntityPropertiesFormat")); } else { virtualNetworkGateway1().validate(); } @@ -599,8 +599,9 @@ public void validate() { localNetworkGateway2().validate(); } if (connectionType() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property connectionType in model VirtualNetworkGatewayConnectionListEntityPropertiesFormat")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property connectionType in model VirtualNetworkGatewayConnectionListEntityPropertiesFormat")); } if (tunnelConnectionStatus() != null) { tunnelConnectionStatus().forEach(e -> e.validate()); diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionPropertiesFormatInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionPropertiesFormatInner.java index d1a66f72e66b3..6cdb78ba6c634 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionPropertiesFormatInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayConnectionPropertiesFormatInner.java @@ -181,8 +181,7 @@ public final class VirtualNetworkGatewayConnectionPropertiesFormatInner { private Boolean expressRouteGatewayBypass; /* - * Bypass the ExpressRoute gateway when accessing private-links. ExpressRoute FastPath (expressRouteGatewayBypass) - * must be enabled. + * Bypass the ExpressRoute gateway when accessing private-links. ExpressRoute FastPath (expressRouteGatewayBypass) must be enabled. */ @JsonProperty(value = "enablePrivateLinkFastPath") private Boolean enablePrivateLinkFastPath; @@ -690,8 +689,9 @@ public Boolean enablePrivateLinkFastPath() { */ public void validate() { if (virtualNetworkGateway1() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property virtualNetworkGateway1 in model VirtualNetworkGatewayConnectionPropertiesFormatInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property virtualNetworkGateway1 in model VirtualNetworkGatewayConnectionPropertiesFormatInner")); } else { virtualNetworkGateway1().validate(); } @@ -702,8 +702,9 @@ public void validate() { localNetworkGateway2().validate(); } if (connectionType() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property connectionType in model VirtualNetworkGatewayConnectionPropertiesFormatInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property connectionType in model VirtualNetworkGatewayConnectionPropertiesFormatInner")); } if (tunnelConnectionStatus() != null) { tunnelConnectionStatus().forEach(e -> e.validate()); diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayInner.java index 8a29c7149f51c..7b2c59e65e320 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayInner.java @@ -230,8 +230,8 @@ public VirtualNetworkGatewayInner withVpnType(VpnType vpnType) { } /** - * Get the vpnGatewayGeneration property: The generation for this VirtualNetworkGateway. Must be None if - * gatewayType is not VPN. + * Get the vpnGatewayGeneration property: The generation for this VirtualNetworkGateway. Must be None if gatewayType + * is not VPN. * * @return the vpnGatewayGeneration value. */ @@ -240,8 +240,8 @@ public VpnGatewayGeneration vpnGatewayGeneration() { } /** - * Set the vpnGatewayGeneration property: The generation for this VirtualNetworkGateway. Must be None if - * gatewayType is not VPN. + * Set the vpnGatewayGeneration property: The generation for this VirtualNetworkGateway. Must be None if gatewayType + * is not VPN. * * @param vpnGatewayGeneration the vpnGatewayGeneration value to set. * @return the VirtualNetworkGatewayInner object itself. @@ -701,8 +701,9 @@ public VirtualNetworkGatewayInner withAdminState(AdminState adminState) { */ public void validate() { if (innerProperties() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property innerProperties in model VirtualNetworkGatewayInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property innerProperties in model VirtualNetworkGatewayInner")); } else { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayPolicyGroupProperties.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayPolicyGroupProperties.java index 3eb1dd2cfd976..39c1378bdae1d 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayPolicyGroupProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayPolicyGroupProperties.java @@ -139,8 +139,9 @@ public ProvisioningState provisioningState() { */ public void validate() { if (policyMembers() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property policyMembers in model VirtualNetworkGatewayPolicyGroupProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property policyMembers in model VirtualNetworkGatewayPolicyGroupProperties")); } else { policyMembers().forEach(e -> e.validate()); } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayPropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayPropertiesFormat.java index 5b4944f22cb1c..1213381767a96 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayPropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkGatewayPropertiesFormat.java @@ -80,15 +80,13 @@ public final class VirtualNetworkGatewayPropertiesFormat { private Boolean disableIpSecReplayProtection; /* - * The reference to the LocalNetworkGateway resource which represents local network site having default routes. - * Assign Null value in case of removing existing default site setting. + * The reference to the LocalNetworkGateway resource which represents local network site having default routes. Assign Null value in case of removing existing default site setting. */ @JsonProperty(value = "gatewayDefaultSite") private SubResource gatewayDefaultSite; /* - * The reference to the VirtualNetworkGatewaySku resource which represents the SKU selected for Virtual network - * gateway. + * The reference to the VirtualNetworkGatewaySku resource which represents the SKU selected for Virtual network gateway. */ @JsonProperty(value = "sku") private VirtualNetworkGatewaySku sku; @@ -100,8 +98,7 @@ public final class VirtualNetworkGatewayPropertiesFormat { private VpnClientConfiguration vpnClientConfiguration; /* - * The reference to the VirtualNetworkGatewayPolicyGroup resource which represents the available - * VirtualNetworkGatewayPolicyGroup for the gateway. + * The reference to the VirtualNetworkGatewayPolicyGroup resource which represents the available VirtualNetworkGatewayPolicyGroup for the gateway. */ @JsonProperty(value = "virtualNetworkGatewayPolicyGroups") private List virtualNetworkGatewayPolicyGroups; @@ -113,8 +110,7 @@ public final class VirtualNetworkGatewayPropertiesFormat { private BgpSettings bgpSettings; /* - * The reference to the address space resource which represents the custom routes address space specified by the - * customer for virtual network gateway and VpnClient. + * The reference to the address space resource which represents the custom routes address space specified by the customer for virtual network gateway and VpnClient. */ @JsonProperty(value = "customRoutes") private AddressSpace customRoutes; @@ -168,15 +164,13 @@ public final class VirtualNetworkGatewayPropertiesFormat { private Boolean allowVirtualWanTraffic; /* - * Configure this gateway to accept traffic from other Azure Virtual Networks. This configuration does not support - * connectivity to Azure Virtual WAN. + * Configure this gateway to accept traffic from other Azure Virtual Networks. This configuration does not support connectivity to Azure Virtual WAN. */ @JsonProperty(value = "allowRemoteVnetTraffic") private Boolean allowRemoteVnetTraffic; /* - * Property to indicate if the Express Route Gateway serves traffic when there are multiple Express Route Gateways - * in the vnet + * Property to indicate if the Express Route Gateway serves traffic when there are multiple Express Route Gateways in the vnet */ @JsonProperty(value = "adminState") private AdminState adminState; @@ -270,8 +264,8 @@ public VirtualNetworkGatewayPropertiesFormat withVpnType(VpnType vpnType) { } /** - * Get the vpnGatewayGeneration property: The generation for this VirtualNetworkGateway. Must be None if - * gatewayType is not VPN. + * Get the vpnGatewayGeneration property: The generation for this VirtualNetworkGateway. Must be None if gatewayType + * is not VPN. * * @return the vpnGatewayGeneration value. */ @@ -280,8 +274,8 @@ public VpnGatewayGeneration vpnGatewayGeneration() { } /** - * Set the vpnGatewayGeneration property: The generation for this VirtualNetworkGateway. Must be None if - * gatewayType is not VPN. + * Set the vpnGatewayGeneration property: The generation for this VirtualNetworkGateway. Must be None if gatewayType + * is not VPN. * * @param vpnGatewayGeneration the vpnGatewayGeneration value to set. * @return the VirtualNetworkGatewayPropertiesFormat object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkInner.java index e1f4a926c7230..095dd93ce02d1 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkInner.java @@ -266,8 +266,8 @@ public ProvisioningState provisioningState() { } /** - * Get the enableDdosProtection property: Indicates if DDoS protection is enabled for all the protected resources - * in the virtual network. It requires a DDoS protection plan associated with the resource. + * Get the enableDdosProtection property: Indicates if DDoS protection is enabled for all the protected resources in + * the virtual network. It requires a DDoS protection plan associated with the resource. * * @return the enableDdosProtection value. */ @@ -276,8 +276,8 @@ public Boolean enableDdosProtection() { } /** - * Set the enableDdosProtection property: Indicates if DDoS protection is enabled for all the protected resources - * in the virtual network. It requires a DDoS protection plan associated with the resource. + * Set the enableDdosProtection property: Indicates if DDoS protection is enabled for all the protected resources in + * the virtual network. It requires a DDoS protection plan associated with the resource. * * @param enableDdosProtection the enableDdosProtection value to set. * @return the VirtualNetworkInner object itself. @@ -339,8 +339,8 @@ public VirtualNetworkInner withDdosProtectionPlan(SubResource ddosProtectionPlan } /** - * Get the bgpCommunities property: Bgp Communities sent over ExpressRoute with each route corresponding to a - * prefix in this VNET. + * Get the bgpCommunities property: Bgp Communities sent over ExpressRoute with each route corresponding to a prefix + * in this VNET. * * @return the bgpCommunities value. */ @@ -349,8 +349,8 @@ public VirtualNetworkBgpCommunities bgpCommunities() { } /** - * Set the bgpCommunities property: Bgp Communities sent over ExpressRoute with each route corresponding to a - * prefix in this VNET. + * Set the bgpCommunities property: Bgp Communities sent over ExpressRoute with each route corresponding to a prefix + * in this VNET. * * @param bgpCommunities the bgpCommunities value to set. * @return the VirtualNetworkInner object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkPeeringInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkPeeringInner.java index 9540922fc1065..c120159f9138a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkPeeringInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkPeeringInner.java @@ -13,6 +13,7 @@ import com.azure.resourcemanager.network.models.VirtualNetworkPeeringLevel; import com.azure.resourcemanager.network.models.VirtualNetworkPeeringState; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; /** * Peerings in a virtual network resource. @@ -194,10 +195,10 @@ public VirtualNetworkPeeringInner withAllowGatewayTransit(Boolean allowGatewayTr } /** - * Get the useRemoteGateways property: If remote gateways can be used on this virtual network. If the flag is set - * to true, and allowGatewayTransit on remote peering is also true, virtual network will use gateways of remote - * virtual network for transit. Only one peering can have this flag set to true. This flag cannot be set if virtual - * network already has a gateway. + * Get the useRemoteGateways property: If remote gateways can be used on this virtual network. If the flag is set to + * true, and allowGatewayTransit on remote peering is also true, virtual network will use gateways of remote virtual + * network for transit. Only one peering can have this flag set to true. This flag cannot be set if virtual network + * already has a gateway. * * @return the useRemoteGateways value. */ @@ -206,10 +207,10 @@ public Boolean useRemoteGateways() { } /** - * Set the useRemoteGateways property: If remote gateways can be used on this virtual network. If the flag is set - * to true, and allowGatewayTransit on remote peering is also true, virtual network will use gateways of remote - * virtual network for transit. Only one peering can have this flag set to true. This flag cannot be set if virtual - * network already has a gateway. + * Set the useRemoteGateways property: If remote gateways can be used on this virtual network. If the flag is set to + * true, and allowGatewayTransit on remote peering is also true, virtual network will use gateways of remote virtual + * network for transit. Only one peering can have this flag set to true. This flag cannot be set if virtual network + * already has a gateway. * * @param useRemoteGateways the useRemoteGateways value to set. * @return the VirtualNetworkPeeringInner object itself. @@ -249,6 +250,55 @@ public VirtualNetworkPeeringInner withRemoteVirtualNetwork(SubResource remoteVir return this; } + /** + * Get the localAddressSpace property: The local address space of the local virtual network that is peered. + * + * @return the localAddressSpace value. + */ + public AddressSpace localAddressSpace() { + return this.innerProperties() == null ? null : this.innerProperties().localAddressSpace(); + } + + /** + * Set the localAddressSpace property: The local address space of the local virtual network that is peered. + * + * @param localAddressSpace the localAddressSpace value to set. + * @return the VirtualNetworkPeeringInner object itself. + */ + public VirtualNetworkPeeringInner withLocalAddressSpace(AddressSpace localAddressSpace) { + if (this.innerProperties() == null) { + this.innerProperties = new VirtualNetworkPeeringPropertiesFormat(); + } + this.innerProperties().withLocalAddressSpace(localAddressSpace); + return this; + } + + /** + * Get the localVirtualNetworkAddressSpace property: The current local address space of the local virtual network + * that is peered. + * + * @return the localVirtualNetworkAddressSpace value. + */ + public AddressSpace localVirtualNetworkAddressSpace() { + return this.innerProperties() == null ? null : this.innerProperties().localVirtualNetworkAddressSpace(); + } + + /** + * Set the localVirtualNetworkAddressSpace property: The current local address space of the local virtual network + * that is peered. + * + * @param localVirtualNetworkAddressSpace the localVirtualNetworkAddressSpace value to set. + * @return the VirtualNetworkPeeringInner object itself. + */ + public VirtualNetworkPeeringInner + withLocalVirtualNetworkAddressSpace(AddressSpace localVirtualNetworkAddressSpace) { + if (this.innerProperties() == null) { + this.innerProperties = new VirtualNetworkPeeringPropertiesFormat(); + } + this.innerProperties().withLocalVirtualNetworkAddressSpace(localVirtualNetworkAddressSpace); + return this; + } + /** * Get the remoteAddressSpace property: The reference to the address space peered with the remote virtual network. * @@ -417,6 +467,100 @@ public String resourceGuid() { return this.innerProperties() == null ? null : this.innerProperties().resourceGuid(); } + /** + * Get the peerCompleteVnets property: Whether complete virtual network address space is peered. + * + * @return the peerCompleteVnets value. + */ + public Boolean peerCompleteVnets() { + return this.innerProperties() == null ? null : this.innerProperties().peerCompleteVnets(); + } + + /** + * Set the peerCompleteVnets property: Whether complete virtual network address space is peered. + * + * @param peerCompleteVnets the peerCompleteVnets value to set. + * @return the VirtualNetworkPeeringInner object itself. + */ + public VirtualNetworkPeeringInner withPeerCompleteVnets(Boolean peerCompleteVnets) { + if (this.innerProperties() == null) { + this.innerProperties = new VirtualNetworkPeeringPropertiesFormat(); + } + this.innerProperties().withPeerCompleteVnets(peerCompleteVnets); + return this; + } + + /** + * Get the enableOnlyIPv6Peering property: Whether only Ipv6 address space is peered for subnet peering. + * + * @return the enableOnlyIPv6Peering value. + */ + public Boolean enableOnlyIPv6Peering() { + return this.innerProperties() == null ? null : this.innerProperties().enableOnlyIPv6Peering(); + } + + /** + * Set the enableOnlyIPv6Peering property: Whether only Ipv6 address space is peered for subnet peering. + * + * @param enableOnlyIPv6Peering the enableOnlyIPv6Peering value to set. + * @return the VirtualNetworkPeeringInner object itself. + */ + public VirtualNetworkPeeringInner withEnableOnlyIPv6Peering(Boolean enableOnlyIPv6Peering) { + if (this.innerProperties() == null) { + this.innerProperties = new VirtualNetworkPeeringPropertiesFormat(); + } + this.innerProperties().withEnableOnlyIPv6Peering(enableOnlyIPv6Peering); + return this; + } + + /** + * Get the localSubnetNames property: List of local subnet names that are subnet peered with remote virtual network. + * + * @return the localSubnetNames value. + */ + public List localSubnetNames() { + return this.innerProperties() == null ? null : this.innerProperties().localSubnetNames(); + } + + /** + * Set the localSubnetNames property: List of local subnet names that are subnet peered with remote virtual network. + * + * @param localSubnetNames the localSubnetNames value to set. + * @return the VirtualNetworkPeeringInner object itself. + */ + public VirtualNetworkPeeringInner withLocalSubnetNames(List localSubnetNames) { + if (this.innerProperties() == null) { + this.innerProperties = new VirtualNetworkPeeringPropertiesFormat(); + } + this.innerProperties().withLocalSubnetNames(localSubnetNames); + return this; + } + + /** + * Get the remoteSubnetNames property: List of remote subnet names from remote virtual network that are subnet + * peered. + * + * @return the remoteSubnetNames value. + */ + public List remoteSubnetNames() { + return this.innerProperties() == null ? null : this.innerProperties().remoteSubnetNames(); + } + + /** + * Set the remoteSubnetNames property: List of remote subnet names from remote virtual network that are subnet + * peered. + * + * @param remoteSubnetNames the remoteSubnetNames value to set. + * @return the VirtualNetworkPeeringInner object itself. + */ + public VirtualNetworkPeeringInner withRemoteSubnetNames(List remoteSubnetNames) { + if (this.innerProperties() == null) { + this.innerProperties = new VirtualNetworkPeeringPropertiesFormat(); + } + this.innerProperties().withRemoteSubnetNames(remoteSubnetNames); + return this; + } + /** * Validates the instance. * diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkPeeringPropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkPeeringPropertiesFormat.java index 74b7a408861a0..c6d363cead5ee 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkPeeringPropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkPeeringPropertiesFormat.java @@ -13,6 +13,7 @@ import com.azure.resourcemanager.network.models.VirtualNetworkPeeringLevel; import com.azure.resourcemanager.network.models.VirtualNetworkPeeringState; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; /** * Properties of the virtual network peering. @@ -20,15 +21,13 @@ @Fluent public final class VirtualNetworkPeeringPropertiesFormat { /* - * Whether the VMs in the local virtual network space would be able to access the VMs in remote virtual network - * space. + * Whether the VMs in the local virtual network space would be able to access the VMs in remote virtual network space. */ @JsonProperty(value = "allowVirtualNetworkAccess") private Boolean allowVirtualNetworkAccess; /* - * Whether the forwarded traffic from the VMs in the local virtual network will be allowed/disallowed in remote - * virtual network. + * Whether the forwarded traffic from the VMs in the local virtual network will be allowed/disallowed in remote virtual network. */ @JsonProperty(value = "allowForwardedTraffic") private Boolean allowForwardedTraffic; @@ -40,21 +39,29 @@ public final class VirtualNetworkPeeringPropertiesFormat { private Boolean allowGatewayTransit; /* - * If remote gateways can be used on this virtual network. If the flag is set to true, and allowGatewayTransit on - * remote peering is also true, virtual network will use gateways of remote virtual network for transit. Only one - * peering can have this flag set to true. This flag cannot be set if virtual network already has a gateway. + * If remote gateways can be used on this virtual network. If the flag is set to true, and allowGatewayTransit on remote peering is also true, virtual network will use gateways of remote virtual network for transit. Only one peering can have this flag set to true. This flag cannot be set if virtual network already has a gateway. */ @JsonProperty(value = "useRemoteGateways") private Boolean useRemoteGateways; /* - * The reference to the remote virtual network. The remote virtual network can be in the same or different region - * (preview). See here to register for the preview and learn more - * (https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-create-peering). + * The reference to the remote virtual network. The remote virtual network can be in the same or different region (preview). See here to register for the preview and learn more (https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-create-peering). */ @JsonProperty(value = "remoteVirtualNetwork") private SubResource remoteVirtualNetwork; + /* + * The local address space of the local virtual network that is peered. + */ + @JsonProperty(value = "localAddressSpace") + private AddressSpace localAddressSpace; + + /* + * The current local address space of the local virtual network that is peered. + */ + @JsonProperty(value = "localVirtualNetworkAddressSpace") + private AddressSpace localVirtualNetworkAddressSpace; + /* * The reference to the address space peered with the remote virtual network. */ @@ -109,6 +116,30 @@ public final class VirtualNetworkPeeringPropertiesFormat { @JsonProperty(value = "resourceGuid", access = JsonProperty.Access.WRITE_ONLY) private String resourceGuid; + /* + * Whether complete virtual network address space is peered. + */ + @JsonProperty(value = "peerCompleteVnets") + private Boolean peerCompleteVnets; + + /* + * Whether only Ipv6 address space is peered for subnet peering. + */ + @JsonProperty(value = "enableOnlyIPv6Peering") + private Boolean enableOnlyIPv6Peering; + + /* + * List of local subnet names that are subnet peered with remote virtual network. + */ + @JsonProperty(value = "localSubnetNames") + private List localSubnetNames; + + /* + * List of remote subnet names from remote virtual network that are subnet peered. + */ + @JsonProperty(value = "remoteSubnetNames") + private List remoteSubnetNames; + /** * Creates an instance of VirtualNetworkPeeringPropertiesFormat class. */ @@ -182,10 +213,10 @@ public VirtualNetworkPeeringPropertiesFormat withAllowGatewayTransit(Boolean all } /** - * Get the useRemoteGateways property: If remote gateways can be used on this virtual network. If the flag is set - * to true, and allowGatewayTransit on remote peering is also true, virtual network will use gateways of remote - * virtual network for transit. Only one peering can have this flag set to true. This flag cannot be set if virtual - * network already has a gateway. + * Get the useRemoteGateways property: If remote gateways can be used on this virtual network. If the flag is set to + * true, and allowGatewayTransit on remote peering is also true, virtual network will use gateways of remote virtual + * network for transit. Only one peering can have this flag set to true. This flag cannot be set if virtual network + * already has a gateway. * * @return the useRemoteGateways value. */ @@ -194,10 +225,10 @@ public Boolean useRemoteGateways() { } /** - * Set the useRemoteGateways property: If remote gateways can be used on this virtual network. If the flag is set - * to true, and allowGatewayTransit on remote peering is also true, virtual network will use gateways of remote - * virtual network for transit. Only one peering can have this flag set to true. This flag cannot be set if virtual - * network already has a gateway. + * Set the useRemoteGateways property: If remote gateways can be used on this virtual network. If the flag is set to + * true, and allowGatewayTransit on remote peering is also true, virtual network will use gateways of remote virtual + * network for transit. Only one peering can have this flag set to true. This flag cannot be set if virtual network + * already has a gateway. * * @param useRemoteGateways the useRemoteGateways value to set. * @return the VirtualNetworkPeeringPropertiesFormat object itself. @@ -231,6 +262,49 @@ public VirtualNetworkPeeringPropertiesFormat withRemoteVirtualNetwork(SubResourc return this; } + /** + * Get the localAddressSpace property: The local address space of the local virtual network that is peered. + * + * @return the localAddressSpace value. + */ + public AddressSpace localAddressSpace() { + return this.localAddressSpace; + } + + /** + * Set the localAddressSpace property: The local address space of the local virtual network that is peered. + * + * @param localAddressSpace the localAddressSpace value to set. + * @return the VirtualNetworkPeeringPropertiesFormat object itself. + */ + public VirtualNetworkPeeringPropertiesFormat withLocalAddressSpace(AddressSpace localAddressSpace) { + this.localAddressSpace = localAddressSpace; + return this; + } + + /** + * Get the localVirtualNetworkAddressSpace property: The current local address space of the local virtual network + * that is peered. + * + * @return the localVirtualNetworkAddressSpace value. + */ + public AddressSpace localVirtualNetworkAddressSpace() { + return this.localVirtualNetworkAddressSpace; + } + + /** + * Set the localVirtualNetworkAddressSpace property: The current local address space of the local virtual network + * that is peered. + * + * @param localVirtualNetworkAddressSpace the localVirtualNetworkAddressSpace value to set. + * @return the VirtualNetworkPeeringPropertiesFormat object itself. + */ + public VirtualNetworkPeeringPropertiesFormat + withLocalVirtualNetworkAddressSpace(AddressSpace localVirtualNetworkAddressSpace) { + this.localVirtualNetworkAddressSpace = localVirtualNetworkAddressSpace; + return this; + } + /** * Get the remoteAddressSpace property: The reference to the address space peered with the remote virtual network. * @@ -382,12 +456,100 @@ public String resourceGuid() { return this.resourceGuid; } + /** + * Get the peerCompleteVnets property: Whether complete virtual network address space is peered. + * + * @return the peerCompleteVnets value. + */ + public Boolean peerCompleteVnets() { + return this.peerCompleteVnets; + } + + /** + * Set the peerCompleteVnets property: Whether complete virtual network address space is peered. + * + * @param peerCompleteVnets the peerCompleteVnets value to set. + * @return the VirtualNetworkPeeringPropertiesFormat object itself. + */ + public VirtualNetworkPeeringPropertiesFormat withPeerCompleteVnets(Boolean peerCompleteVnets) { + this.peerCompleteVnets = peerCompleteVnets; + return this; + } + + /** + * Get the enableOnlyIPv6Peering property: Whether only Ipv6 address space is peered for subnet peering. + * + * @return the enableOnlyIPv6Peering value. + */ + public Boolean enableOnlyIPv6Peering() { + return this.enableOnlyIPv6Peering; + } + + /** + * Set the enableOnlyIPv6Peering property: Whether only Ipv6 address space is peered for subnet peering. + * + * @param enableOnlyIPv6Peering the enableOnlyIPv6Peering value to set. + * @return the VirtualNetworkPeeringPropertiesFormat object itself. + */ + public VirtualNetworkPeeringPropertiesFormat withEnableOnlyIPv6Peering(Boolean enableOnlyIPv6Peering) { + this.enableOnlyIPv6Peering = enableOnlyIPv6Peering; + return this; + } + + /** + * Get the localSubnetNames property: List of local subnet names that are subnet peered with remote virtual network. + * + * @return the localSubnetNames value. + */ + public List localSubnetNames() { + return this.localSubnetNames; + } + + /** + * Set the localSubnetNames property: List of local subnet names that are subnet peered with remote virtual network. + * + * @param localSubnetNames the localSubnetNames value to set. + * @return the VirtualNetworkPeeringPropertiesFormat object itself. + */ + public VirtualNetworkPeeringPropertiesFormat withLocalSubnetNames(List localSubnetNames) { + this.localSubnetNames = localSubnetNames; + return this; + } + + /** + * Get the remoteSubnetNames property: List of remote subnet names from remote virtual network that are subnet + * peered. + * + * @return the remoteSubnetNames value. + */ + public List remoteSubnetNames() { + return this.remoteSubnetNames; + } + + /** + * Set the remoteSubnetNames property: List of remote subnet names from remote virtual network that are subnet + * peered. + * + * @param remoteSubnetNames the remoteSubnetNames value to set. + * @return the VirtualNetworkPeeringPropertiesFormat object itself. + */ + public VirtualNetworkPeeringPropertiesFormat withRemoteSubnetNames(List remoteSubnetNames) { + this.remoteSubnetNames = remoteSubnetNames; + return this; + } + /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (localAddressSpace() != null) { + localAddressSpace().validate(); + } + if (localVirtualNetworkAddressSpace() != null) { + localVirtualNetworkAddressSpace().validate(); + } if (remoteAddressSpace() != null) { remoteAddressSpace().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkPropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkPropertiesFormat.java index e6cd265e46ca9..21e8a8246bb2c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkPropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkPropertiesFormat.java @@ -62,8 +62,7 @@ public final class VirtualNetworkPropertiesFormat { private ProvisioningState provisioningState; /* - * Indicates if DDoS protection is enabled for all the protected resources in the virtual network. It requires a - * DDoS protection plan associated with the resource. + * Indicates if DDoS protection is enabled for all the protected resources in the virtual network. It requires a DDoS protection plan associated with the resource. */ @JsonProperty(value = "enableDdosProtection") private Boolean enableDdosProtection; @@ -234,8 +233,8 @@ public ProvisioningState provisioningState() { } /** - * Get the enableDdosProtection property: Indicates if DDoS protection is enabled for all the protected resources - * in the virtual network. It requires a DDoS protection plan associated with the resource. + * Get the enableDdosProtection property: Indicates if DDoS protection is enabled for all the protected resources in + * the virtual network. It requires a DDoS protection plan associated with the resource. * * @return the enableDdosProtection value. */ @@ -244,8 +243,8 @@ public Boolean enableDdosProtection() { } /** - * Set the enableDdosProtection property: Indicates if DDoS protection is enabled for all the protected resources - * in the virtual network. It requires a DDoS protection plan associated with the resource. + * Set the enableDdosProtection property: Indicates if DDoS protection is enabled for all the protected resources in + * the virtual network. It requires a DDoS protection plan associated with the resource. * * @param enableDdosProtection the enableDdosProtection value to set. * @return the VirtualNetworkPropertiesFormat object itself. @@ -298,8 +297,8 @@ public VirtualNetworkPropertiesFormat withDdosProtectionPlan(SubResource ddosPro } /** - * Get the bgpCommunities property: Bgp Communities sent over ExpressRoute with each route corresponding to a - * prefix in this VNET. + * Get the bgpCommunities property: Bgp Communities sent over ExpressRoute with each route corresponding to a prefix + * in this VNET. * * @return the bgpCommunities value. */ @@ -308,8 +307,8 @@ public VirtualNetworkBgpCommunities bgpCommunities() { } /** - * Set the bgpCommunities property: Bgp Communities sent over ExpressRoute with each route corresponding to a - * prefix in this VNET. + * Set the bgpCommunities property: Bgp Communities sent over ExpressRoute with each route corresponding to a prefix + * in this VNET. * * @param bgpCommunities the bgpCommunities value to set. * @return the VirtualNetworkPropertiesFormat object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkTapInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkTapInner.java index 6df88b8b02979..6f98561f1f30f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkTapInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkTapInner.java @@ -131,7 +131,8 @@ public ProvisioningState provisioningState() { * @return the destinationNetworkInterfaceIpConfiguration value. */ public NetworkInterfaceIpConfigurationInner destinationNetworkInterfaceIpConfiguration() { - return this.innerProperties() == null ? null + return this.innerProperties() == null + ? null : this.innerProperties().destinationNetworkInterfaceIpConfiguration(); } @@ -159,7 +160,8 @@ public VirtualNetworkTapInner withDestinationNetworkInterfaceIpConfiguration( * @return the destinationLoadBalancerFrontEndIpConfiguration value. */ public FrontendIpConfigurationInner destinationLoadBalancerFrontEndIpConfiguration() { - return this.innerProperties() == null ? null + return this.innerProperties() == null + ? null : this.innerProperties().destinationLoadBalancerFrontEndIpConfiguration(); } @@ -167,8 +169,8 @@ public FrontendIpConfigurationInner destinationLoadBalancerFrontEndIpConfigurati * 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 set. + * @param destinationLoadBalancerFrontEndIpConfiguration the destinationLoadBalancerFrontEndIpConfiguration value to + * set. * @return the VirtualNetworkTapInner object itself. */ public VirtualNetworkTapInner withDestinationLoadBalancerFrontEndIpConfiguration( diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkTapPropertiesFormatInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkTapPropertiesFormatInner.java index 07e452c842c7d..cfabcd9291053 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkTapPropertiesFormatInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VirtualNetworkTapPropertiesFormatInner.java @@ -121,8 +121,8 @@ public FrontendIpConfigurationInner destinationLoadBalancerFrontEndIpConfigurati * 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 set. + * @param destinationLoadBalancerFrontEndIpConfiguration the destinationLoadBalancerFrontEndIpConfiguration value to + * set. * @return the VirtualNetworkTapPropertiesFormatInner object itself. */ public VirtualNetworkTapPropertiesFormatInner withDestinationLoadBalancerFrontEndIpConfiguration( diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VngClientConnectionConfigurationProperties.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VngClientConnectionConfigurationProperties.java index 68d671bba6241..c7c47d65f3358 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VngClientConnectionConfigurationProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VngClientConnectionConfigurationProperties.java @@ -42,8 +42,8 @@ public VngClientConnectionConfigurationProperties() { } /** - * Get the vpnClientAddressPool property: The reference to the address space resource which represents Address - * space for P2S VpnClient. + * Get the vpnClientAddressPool property: The reference to the address space resource which represents Address space + * for P2S VpnClient. * * @return the vpnClientAddressPool value. */ @@ -52,8 +52,8 @@ public AddressSpace vpnClientAddressPool() { } /** - * Set the vpnClientAddressPool property: The reference to the address space resource which represents Address - * space for P2S VpnClient. + * Set the vpnClientAddressPool property: The reference to the address space resource which represents Address space + * for P2S VpnClient. * * @param vpnClientAddressPool the vpnClientAddressPool value to set. * @return the VngClientConnectionConfigurationProperties object itself. @@ -100,14 +100,16 @@ public ProvisioningState provisioningState() { */ public void validate() { if (vpnClientAddressPool() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property vpnClientAddressPool in model VngClientConnectionConfigurationProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property vpnClientAddressPool in model VngClientConnectionConfigurationProperties")); } else { vpnClientAddressPool().validate(); } if (virtualNetworkGatewayPolicyGroups() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property virtualNetworkGatewayPolicyGroups in model VngClientConnectionConfigurationProperties")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property virtualNetworkGatewayPolicyGroups in model VngClientConnectionConfigurationProperties")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnClientIPsecParametersInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnClientIPsecParametersInner.java index c7b75c66c09d7..a0ca1e130d9b5 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnClientIPsecParametersInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnClientIPsecParametersInner.java @@ -244,28 +244,34 @@ public VpnClientIPsecParametersInner withPfsGroup(PfsGroup pfsGroup) { */ public void validate() { if (ipsecEncryption() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property ipsecEncryption in model VpnClientIPsecParametersInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property ipsecEncryption in model VpnClientIPsecParametersInner")); } if (ipsecIntegrity() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property ipsecIntegrity in model VpnClientIPsecParametersInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property ipsecIntegrity in model VpnClientIPsecParametersInner")); } if (ikeEncryption() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property ikeEncryption in model VpnClientIPsecParametersInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property ikeEncryption in model VpnClientIPsecParametersInner")); } if (ikeIntegrity() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property ikeIntegrity in model VpnClientIPsecParametersInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property ikeIntegrity in model VpnClientIPsecParametersInner")); } if (dhGroup() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property dhGroup in model VpnClientIPsecParametersInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property dhGroup in model VpnClientIPsecParametersInner")); } if (pfsGroup() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property pfsGroup in model VpnClientIPsecParametersInner")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property pfsGroup in model VpnClientIPsecParametersInner")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnClientRootCertificatePropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnClientRootCertificatePropertiesFormat.java index 6ff71acd76727..eb2b7be70dc44 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnClientRootCertificatePropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnClientRootCertificatePropertiesFormat.java @@ -68,8 +68,9 @@ public ProvisioningState provisioningState() { */ public void validate() { if (publicCertData() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property publicCertData in model VpnClientRootCertificatePropertiesFormat")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property publicCertData in model VpnClientRootCertificatePropertiesFormat")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnServerConfigurationProperties.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnServerConfigurationProperties.java index c32a6a83270bb..dd106794a30d9 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnServerConfigurationProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnServerConfigurationProperties.java @@ -95,8 +95,7 @@ public final class VpnServerConfigurationProperties { private AadAuthenticationParameters aadAuthenticationParameters; /* - * The provisioning state of the VpnServerConfiguration resource. Possible values are: 'Updating', 'Deleting', and - * 'Failed'. + * The provisioning state of the VpnServerConfiguration resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. */ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private String provisioningState; diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteLinkConnectionInner.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteLinkConnectionInner.java index 735df6f4cf981..4954954f3fe6b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteLinkConnectionInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteLinkConnectionInner.java @@ -468,6 +468,29 @@ public VpnSiteLinkConnectionInner withEgressNatRules(List egressNat return this; } + /** + * Get the dpdTimeoutSeconds property: Dead Peer Detection timeout in seconds for VpnLink connection. + * + * @return the dpdTimeoutSeconds value. + */ + public Integer dpdTimeoutSeconds() { + return this.innerProperties() == null ? null : this.innerProperties().dpdTimeoutSeconds(); + } + + /** + * Set the dpdTimeoutSeconds property: Dead Peer Detection timeout in seconds for VpnLink connection. + * + * @param dpdTimeoutSeconds the dpdTimeoutSeconds value to set. + * @return the VpnSiteLinkConnectionInner object itself. + */ + public VpnSiteLinkConnectionInner withDpdTimeoutSeconds(Integer dpdTimeoutSeconds) { + if (this.innerProperties() == null) { + this.innerProperties = new VpnSiteLinkConnectionProperties(); + } + this.innerProperties().withDpdTimeoutSeconds(dpdTimeoutSeconds); + return this; + } + /** * Validates the instance. * diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteLinkConnectionProperties.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteLinkConnectionProperties.java index 7253051e69061..2561d4abdd8d6 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteLinkConnectionProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/VpnSiteLinkConnectionProperties.java @@ -128,6 +128,12 @@ public final class VpnSiteLinkConnectionProperties { @JsonProperty(value = "egressNatRules") private List egressNatRules; + /* + * Dead Peer Detection timeout in seconds for VpnLink connection. + */ + @JsonProperty(value = "dpdTimeoutSeconds") + private Integer dpdTimeoutSeconds; + /** * Creates an instance of VpnSiteLinkConnectionProperties class. */ @@ -452,6 +458,26 @@ public VpnSiteLinkConnectionProperties withEgressNatRules(List egre return this; } + /** + * Get the dpdTimeoutSeconds property: Dead Peer Detection timeout in seconds for VpnLink connection. + * + * @return the dpdTimeoutSeconds value. + */ + public Integer dpdTimeoutSeconds() { + return this.dpdTimeoutSeconds; + } + + /** + * Set the dpdTimeoutSeconds property: Dead Peer Detection timeout in seconds for VpnLink connection. + * + * @param dpdTimeoutSeconds the dpdTimeoutSeconds value to set. + * @return the VpnSiteLinkConnectionProperties object itself. + */ + public VpnSiteLinkConnectionProperties withDpdTimeoutSeconds(Integer dpdTimeoutSeconds) { + this.dpdTimeoutSeconds = dpdTimeoutSeconds; + return this; + } + /** * Validates the instance. * diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/WebApplicationFirewallPolicyPropertiesFormat.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/WebApplicationFirewallPolicyPropertiesFormat.java index 23abdbce6e9a9..96d61e2811858 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/WebApplicationFirewallPolicyPropertiesFormat.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/models/WebApplicationFirewallPolicyPropertiesFormat.java @@ -196,8 +196,9 @@ public void validate() { applicationGateways().forEach(e -> e.validate()); } if (managedRules() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property managedRules in model WebApplicationFirewallPolicyPropertiesFormat")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property managedRules in model WebApplicationFirewallPolicyPropertiesFormat")); } else { managedRules().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AdminRuleCollectionsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AdminRuleCollectionsClientImpl.java index 5209fe58ed851..f243b2e7fcd0b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AdminRuleCollectionsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AdminRuleCollectionsClientImpl.java @@ -34,10 +34,11 @@ import com.azure.resourcemanager.network.fluent.AdminRuleCollectionsClient; import com.azure.resourcemanager.network.fluent.models.AdminRuleCollectionInner; import com.azure.resourcemanager.network.models.AdminRuleCollectionListResult; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in AdminRuleCollectionsClient. */ @@ -54,7 +55,7 @@ public final class AdminRuleCollectionsClientImpl implements AdminRuleCollection /** * Initializes an instance of AdminRuleCollectionsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ AdminRuleCollectionsClientImpl(NetworkManagementClientImpl client) { @@ -129,7 +130,7 @@ Mono> listNext( /** * 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. @@ -167,7 +168,7 @@ private Mono> listSinglePageAsync(String return Mono .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -179,7 +180,7 @@ private Mono> listSinglePageAsync(String /** * 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. @@ -218,7 +219,7 @@ private Mono> listSinglePageAsync(String return Mono .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -230,7 +231,7 @@ private Mono> listSinglePageAsync(String /** * 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. @@ -254,7 +255,7 @@ public PagedFlux listAsync(String resourceGroupName, S /** * 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. @@ -275,7 +276,7 @@ public PagedFlux listAsync(String resourceGroupName, S /** * 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. @@ -299,7 +300,7 @@ private PagedFlux listAsync(String resourceGroupName, /** * 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. @@ -319,7 +320,7 @@ public PagedIterable list(String resourceGroupName, St /** * 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. @@ -344,7 +345,7 @@ public PagedIterable list(String resourceGroupName, St /** * Gets a network manager security admin configuration rule collection. - * + * * @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. @@ -382,7 +383,7 @@ public Mono> getWithResponseAsync(String reso return Mono .error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -392,7 +393,7 @@ public Mono> getWithResponseAsync(String reso /** * Gets a network manager security admin configuration rule collection. - * + * * @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. @@ -431,7 +432,7 @@ private Mono> getWithResponseAsync(String res return Mono .error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -440,7 +441,7 @@ private Mono> getWithResponseAsync(String res /** * Gets a network manager security admin configuration rule collection. - * + * * @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. @@ -459,7 +460,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 networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. @@ -479,7 +480,7 @@ public Response getWithResponse(String resourceGroupNa /** * Gets a network manager security admin configuration rule collection. - * + * * @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. @@ -498,7 +499,7 @@ public AdminRuleCollectionInner get(String resourceGroupName, String networkMana /** * Creates or updates an admin rule collection. - * + * * @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. @@ -542,7 +543,7 @@ public Mono> createOrUpdateWithResponseAsync( } else { ruleCollection.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, @@ -553,7 +554,7 @@ public Mono> createOrUpdateWithResponseAsync( /** * Creates or updates an admin rule collection. - * + * * @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. @@ -598,7 +599,7 @@ private Mono> createOrUpdateWithResponseAsync } else { ruleCollection.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -608,7 +609,7 @@ private Mono> createOrUpdateWithResponseAsync /** * Creates or updates an admin rule collection. - * + * * @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. @@ -628,7 +629,7 @@ public Mono createOrUpdateAsync(String resourceGroupNa /** * Creates or updates an admin rule collection. - * + * * @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. @@ -650,7 +651,7 @@ public Response createOrUpdateWithResponse(String reso /** * Creates or updates an admin rule collection. - * + * * @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. @@ -670,7 +671,7 @@ public AdminRuleCollectionInner createOrUpdate(String resourceGroupName, String /** * Deletes an admin rule collection. - * + * * @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. @@ -709,7 +710,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono .error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, @@ -720,7 +721,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * Deletes an admin rule collection. - * + * * @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. @@ -761,7 +762,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -770,7 +771,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * Deletes an admin rule collection. - * + * * @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. @@ -793,7 +794,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes an admin rule collection. - * + * * @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. @@ -815,7 +816,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes an admin rule collection. - * + * * @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. @@ -840,7 +841,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes an admin rule collection. - * + * * @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. @@ -861,7 +862,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes an admin rule collection. - * + * * @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. @@ -877,13 +878,15 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String networkManagerName, String configurationName, String ruleCollectionName, Boolean force, Context context) { - return this.beginDeleteAsync(resourceGroupName, networkManagerName, configurationName, ruleCollectionName, - force, context).getSyncPoller(); + return this + .beginDeleteAsync(resourceGroupName, networkManagerName, configurationName, ruleCollectionName, force, + context) + .getSyncPoller(); } /** * Deletes an admin rule collection. - * + * * @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. @@ -899,12 +902,13 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, public Mono deleteAsync(String resourceGroupName, String networkManagerName, String configurationName, String ruleCollectionName, Boolean force) { return beginDeleteAsync(resourceGroupName, networkManagerName, configurationName, ruleCollectionName, force) - .last().flatMap(this.client::getLroFinalResultOrError); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** * Deletes an admin rule collection. - * + * * @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. @@ -919,12 +923,13 @@ public Mono deleteAsync(String resourceGroupName, String networkManagerNam String ruleCollectionName) { final Boolean force = null; return beginDeleteAsync(resourceGroupName, networkManagerName, configurationName, ruleCollectionName, force) - .last().flatMap(this.client::getLroFinalResultOrError); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** * Deletes an admin rule collection. - * + * * @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. @@ -946,7 +951,7 @@ private Mono deleteAsync(String resourceGroupName, String networkManagerNa /** * Deletes an admin rule collection. - * + * * @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. @@ -964,7 +969,7 @@ public void delete(String resourceGroupName, String networkManagerName, String c /** * Deletes an admin rule collection. - * + * * @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. @@ -985,9 +990,9 @@ public void delete(String resourceGroupName, String networkManagerName, String c /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1013,9 +1018,9 @@ private Mono> listNextSinglePageAsync(St /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AdminRulesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AdminRulesClientImpl.java index 849a3e8a2da8d..47d6117541aad 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AdminRulesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AdminRulesClientImpl.java @@ -34,10 +34,11 @@ import com.azure.resourcemanager.network.fluent.AdminRulesClient; import com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner; import com.azure.resourcemanager.network.models.AdminRuleListResult; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in AdminRulesClient. */ @@ -54,7 +55,7 @@ public final class AdminRulesClientImpl implements AdminRulesClient { /** * Initializes an instance of AdminRulesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ AdminRulesClientImpl(NetworkManagementClientImpl client) { @@ -129,7 +130,7 @@ Mono> listNext(@PathParam(value = "nextLink", enco /** * 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. @@ -172,7 +173,7 @@ private Mono> listSinglePageAsync(String resou return Mono .error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -185,7 +186,7 @@ private Mono> listSinglePageAsync(String resou /** * 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. @@ -230,7 +231,7 @@ private Mono> listSinglePageAsync(String resou return Mono .error(new IllegalArgumentException("Parameter ruleCollectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -242,7 +243,7 @@ private Mono> listSinglePageAsync(String resou /** * 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. @@ -266,7 +267,7 @@ public PagedFlux listAsync(String resourceGroupName, String /** * 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. @@ -287,7 +288,7 @@ public PagedFlux listAsync(String resourceGroupName, String /** * 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. @@ -312,7 +313,7 @@ private PagedFlux listAsync(String resourceGroupName, String /** * 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. @@ -333,7 +334,7 @@ public PagedIterable list(String resourceGroupName, String n /** * 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. @@ -358,7 +359,7 @@ public PagedIterable list(String resourceGroupName, String n /** * Gets a network manager security configuration admin rule. - * + * * @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. @@ -400,7 +401,7 @@ public Mono> getWithResponseAsync(String resourceGr if (ruleName == null) { return Mono.error(new IllegalArgumentException("Parameter ruleName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -411,7 +412,7 @@ public Mono> getWithResponseAsync(String resourceGr /** * Gets a network manager security configuration admin rule. - * + * * @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. @@ -454,7 +455,7 @@ private Mono> getWithResponseAsync(String resourceG if (ruleName == null) { return Mono.error(new IllegalArgumentException("Parameter ruleName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -463,7 +464,7 @@ private Mono> getWithResponseAsync(String resourceG /** * Gets a network manager security configuration admin rule. - * + * * @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. @@ -483,7 +484,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 networkManagerName The name of the network manager. * @param configurationName The name of the network manager Security Configuration. @@ -504,7 +505,7 @@ public Response getWithResponse(String resourceGroupName, St /** * Gets a network manager security configuration admin rule. - * + * * @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. @@ -524,7 +525,7 @@ public BaseAdminRuleInner get(String resourceGroupName, String networkManagerNam /** * Creates or updates an admin rule. - * + * * @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. @@ -572,7 +573,7 @@ public Mono> createOrUpdateWithResponseAsync(String } else { adminRule.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, @@ -583,7 +584,7 @@ public Mono> createOrUpdateWithResponseAsync(String /** * Creates or updates an admin rule. - * + * * @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. @@ -632,7 +633,7 @@ private Mono> createOrUpdateWithResponseAsync(Strin } else { adminRule.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -642,7 +643,7 @@ private Mono> createOrUpdateWithResponseAsync(Strin /** * Creates or updates an admin rule. - * + * * @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. @@ -663,7 +664,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, St /** * Creates or updates an admin rule. - * + * * @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. @@ -686,7 +687,7 @@ public Response createOrUpdateWithResponse(String resourceGr /** * Creates or updates an admin rule. - * + * * @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. @@ -707,7 +708,7 @@ public BaseAdminRuleInner createOrUpdate(String resourceGroupName, String networ /** * Deletes an admin rule. - * + * * @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. @@ -750,7 +751,7 @@ public Mono>> deleteWithResponseAsync(String resourceG if (ruleName == null) { return Mono.error(new IllegalArgumentException("Parameter ruleName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), apiVersion, @@ -761,7 +762,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * Deletes an admin rule. - * + * * @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. @@ -806,7 +807,7 @@ private Mono>> deleteWithResponseAsync(String resource if (ruleName == null) { return Mono.error(new IllegalArgumentException("Parameter ruleName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -815,7 +816,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * Deletes an admin rule. - * + * * @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. @@ -839,7 +840,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes an admin rule. - * + * * @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. @@ -862,7 +863,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes an admin rule. - * + * * @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. @@ -888,7 +889,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes an admin rule. - * + * * @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. @@ -903,13 +904,15 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup public SyncPoller, Void> beginDelete(String resourceGroupName, String networkManagerName, String configurationName, String ruleCollectionName, String ruleName) { final Boolean force = null; - return this.beginDeleteAsync(resourceGroupName, networkManagerName, configurationName, ruleCollectionName, - ruleName, force).getSyncPoller(); + return this + .beginDeleteAsync(resourceGroupName, networkManagerName, configurationName, ruleCollectionName, ruleName, + force) + .getSyncPoller(); } /** * Deletes an admin rule. - * + * * @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. @@ -926,13 +929,15 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String networkManagerName, String configurationName, String ruleCollectionName, String ruleName, Boolean force, Context context) { - return this.beginDeleteAsync(resourceGroupName, networkManagerName, configurationName, ruleCollectionName, - ruleName, force, context).getSyncPoller(); + return this + .beginDeleteAsync(resourceGroupName, networkManagerName, configurationName, ruleCollectionName, ruleName, + force, context) + .getSyncPoller(); } /** * Deletes an admin rule. - * + * * @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. @@ -954,7 +959,7 @@ public Mono deleteAsync(String resourceGroupName, String networkManagerNam /** * Deletes an admin rule. - * + * * @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. @@ -975,7 +980,7 @@ public Mono deleteAsync(String resourceGroupName, String networkManagerNam /** * Deletes an admin rule. - * + * * @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. @@ -998,7 +1003,7 @@ private Mono deleteAsync(String resourceGroupName, String networkManagerNa /** * Deletes an admin rule. - * + * * @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. @@ -1018,7 +1023,7 @@ public void delete(String resourceGroupName, String networkManagerName, String c /** * Deletes an admin rule. - * + * * @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. @@ -1040,9 +1045,9 @@ public void delete(String resourceGroupName, String networkManagerName, String c /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1068,9 +1073,9 @@ private Mono> listNextSinglePageAsync(String n /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayPrivateEndpointConnectionsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayPrivateEndpointConnectionsClientImpl.java index a40756c577d3a..91453b51f8a3d 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayPrivateEndpointConnectionsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayPrivateEndpointConnectionsClientImpl.java @@ -34,10 +34,11 @@ import com.azure.resourcemanager.network.fluent.ApplicationGatewayPrivateEndpointConnectionsClient; import com.azure.resourcemanager.network.fluent.models.ApplicationGatewayPrivateEndpointConnectionInner; import com.azure.resourcemanager.network.models.ApplicationGatewayPrivateEndpointConnectionListResult; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in * ApplicationGatewayPrivateEndpointConnectionsClient. @@ -56,7 +57,7 @@ public final class ApplicationGatewayPrivateEndpointConnectionsClientImpl /** * Initializes an instance of ApplicationGatewayPrivateEndpointConnectionsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ ApplicationGatewayPrivateEndpointConnectionsClientImpl(NetworkManagementClientImpl client) { @@ -125,7 +126,7 @@ Mono> listNext( /** * 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. @@ -156,7 +157,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, @@ -166,7 +167,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * 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. @@ -198,7 +199,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, connectionName, @@ -207,7 +208,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * 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. @@ -227,7 +228,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * 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. @@ -249,7 +250,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * 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. @@ -266,7 +267,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -285,7 +286,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -302,7 +303,7 @@ public Mono deleteAsync(String resourceGroupName, String applicationGatewa /** * 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. @@ -321,7 +322,7 @@ private Mono deleteAsync(String resourceGroupName, String applicationGatew /** * 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. @@ -336,7 +337,7 @@ public void delete(String resourceGroupName, String applicationGatewayName, Stri /** * 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. @@ -353,7 +354,7 @@ public void delete(String resourceGroupName, String applicationGatewayName, Stri /** * Updates 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. @@ -392,7 +393,7 @@ public Mono>> updateWithResponseAsync(String resourceG } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.update(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, @@ -402,7 +403,7 @@ public Mono>> updateWithResponseAsync(String resourceG /** * Updates 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. @@ -442,7 +443,7 @@ private Mono>> updateWithResponseAsync(String resource } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.update(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, connectionName, @@ -451,7 +452,7 @@ private Mono>> updateWithResponseAsync(String resource /** * Updates 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. @@ -476,7 +477,7 @@ private Mono>> updateWithResponseAsync(String resource /** * Updates 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. @@ -503,7 +504,7 @@ private Mono>> updateWithResponseAsync(String resource /** * Updates 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. @@ -524,7 +525,7 @@ private Mono>> updateWithResponseAsync(String resource /** * Updates 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. @@ -546,7 +547,7 @@ private Mono>> updateWithResponseAsync(String resource /** * Updates 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. @@ -566,7 +567,7 @@ public Mono updateAsync(String /** * Updates 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. @@ -587,7 +588,7 @@ private Mono updateAsync(Strin /** * Updates 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. @@ -606,7 +607,7 @@ public ApplicationGatewayPrivateEndpointConnectionInner update(String resourceGr /** * Updates 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. @@ -626,7 +627,7 @@ public ApplicationGatewayPrivateEndpointConnectionInner update(String resourceGr /** * Gets 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. @@ -658,7 +659,7 @@ public ApplicationGatewayPrivateEndpointConnectionInner update(String resourceGr return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, @@ -668,7 +669,7 @@ public ApplicationGatewayPrivateEndpointConnectionInner update(String resourceGr /** * Gets 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. @@ -701,7 +702,7 @@ private Mono> getWith return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, connectionName, @@ -710,7 +711,7 @@ private Mono> getWith /** * Gets 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. @@ -729,7 +730,7 @@ public Mono getAsync(String re /** * Gets 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. @@ -747,7 +748,7 @@ public Response getWithRespons /** * Gets 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. @@ -764,7 +765,7 @@ public ApplicationGatewayPrivateEndpointConnectionInner get(String resourceGroup /** * Lists all private endpoint connections on an 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. @@ -792,7 +793,7 @@ public ApplicationGatewayPrivateEndpointConnectionInner get(String resourceGroup return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, @@ -805,7 +806,7 @@ public ApplicationGatewayPrivateEndpointConnectionInner get(String resourceGroup /** * Lists all private endpoint connections on an 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. @@ -834,7 +835,7 @@ public ApplicationGatewayPrivateEndpointConnectionInner get(String resourceGroup return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -846,7 +847,7 @@ public ApplicationGatewayPrivateEndpointConnectionInner get(String resourceGroup /** * Lists all private endpoint connections on an 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. @@ -864,7 +865,7 @@ public PagedFlux listAsync(Str /** * Lists all private endpoint connections on an 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. @@ -883,7 +884,7 @@ private PagedFlux listAsync(St /** * Lists all private endpoint connections on an 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. @@ -900,7 +901,7 @@ public PagedIterable list(Stri /** * Lists all private endpoint connections on an 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. @@ -918,9 +919,9 @@ public PagedIterable list(Stri /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -948,9 +949,9 @@ public PagedIterable list(Stri /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayPrivateLinkResourcesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayPrivateLinkResourcesClientImpl.java index fbe0c4574b2f9..c087011752a8d 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayPrivateLinkResourcesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayPrivateLinkResourcesClientImpl.java @@ -113,7 +113,7 @@ Mono> listNext( return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, @@ -155,7 +155,7 @@ Mono> listNext( return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayWafDynamicManifestsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayWafDynamicManifestsClientImpl.java index d3fce49ae83e6..dff448b20ace1 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayWafDynamicManifestsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayWafDynamicManifestsClientImpl.java @@ -104,7 +104,7 @@ private Mono> get return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), location, apiVersion, @@ -140,7 +140,7 @@ private Mono> get return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayWafDynamicManifestsDefaultsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayWafDynamicManifestsDefaultsClientImpl.java index 6215d9df30935..82c8c925349c9 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayWafDynamicManifestsDefaultsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewayWafDynamicManifestsDefaultsClientImpl.java @@ -91,7 +91,7 @@ public Mono> getWithRe return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), location, apiVersion, @@ -124,7 +124,7 @@ private Mono> getWithR return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), location, apiVersion, this.client.getSubscriptionId(), accept, diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewaysClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewaysClientImpl.java index 5ac21d3e2d821..b9c5ddf1dc968 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewaysClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewaysClientImpl.java @@ -48,11 +48,12 @@ import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; -import java.nio.ByteBuffer; -import java.util.List; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; +import java.util.List; + /** * An instance of this class provides access to all the operations defined in ApplicationGatewaysClient. */ @@ -70,7 +71,7 @@ public final class ApplicationGatewaysClientImpl implements InnerSupportsGet> listAvailableSs /** * 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. @@ -298,7 +299,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, @@ -308,7 +309,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * 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. @@ -336,7 +337,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, apiVersion, @@ -345,7 +346,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * 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. @@ -363,7 +364,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * 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. @@ -384,7 +385,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * 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. @@ -399,7 +400,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -416,7 +417,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -432,7 +433,7 @@ public Mono deleteAsync(String resourceGroupName, String applicationGatewa /** * 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. @@ -449,7 +450,7 @@ private Mono deleteAsync(String resourceGroupName, String applicationGatew /** * 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. @@ -463,7 +464,7 @@ public 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. @@ -478,7 +479,7 @@ public void delete(String resourceGroupName, String applicationGatewayName, Cont /** * 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. @@ -505,7 +506,7 @@ public Mono> getByResourceGroupWithResponseAsy return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -515,7 +516,7 @@ public Mono> getByResourceGroupWithResponseAsy /** * Gets 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. @@ -543,7 +544,7 @@ private Mono> getByResourceGroupWithResponseAs return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, @@ -552,7 +553,7 @@ private Mono> getByResourceGroupWithResponseAs /** * 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. @@ -569,7 +570,7 @@ public Mono getByResourceGroupAsync(String resourceGrou /** * Gets 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. @@ -586,7 +587,7 @@ public Response getByResourceGroupWithResponse(String r /** * 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. @@ -601,7 +602,7 @@ public ApplicationGatewayInner getByResourceGroup(String resourceGroupName, Stri /** * Creates or updates the specified application gateway. - * + * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway operation. @@ -634,7 +635,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -644,7 +645,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r /** * Creates or updates the specified application gateway. - * + * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway operation. @@ -678,7 +679,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, apiVersion, @@ -687,7 +688,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates the specified application gateway. - * + * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway operation. @@ -708,7 +709,7 @@ public PollerFlux, ApplicationGatewayInner> /** * Creates or updates the specified application gateway. - * + * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway operation. @@ -730,7 +731,7 @@ private PollerFlux, ApplicationGatewayInner> /** * Creates or updates the specified application gateway. - * + * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway operation. @@ -747,7 +748,7 @@ public SyncPoller, ApplicationGatewayInner> /** * Creates or updates the specified application gateway. - * + * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway operation. @@ -766,7 +767,7 @@ public SyncPoller, ApplicationGatewayInner> /** * Creates or updates the specified application gateway. - * + * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway operation. @@ -784,7 +785,7 @@ public Mono createOrUpdateAsync(String resourceGroupNam /** * Creates or updates the specified application gateway. - * + * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway operation. @@ -803,7 +804,7 @@ private Mono createOrUpdateAsync(String resourceGroupNa /** * Creates or updates the specified application gateway. - * + * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway operation. @@ -820,7 +821,7 @@ public ApplicationGatewayInner createOrUpdate(String resourceGroupName, String a /** * Creates or updates the specified application gateway. - * + * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to the create or update application gateway operation. @@ -838,7 +839,7 @@ public ApplicationGatewayInner createOrUpdate(String resourceGroupName, String a /** * Updates the specified application gateway tags. - * + * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to update application gateway tags. @@ -871,7 +872,7 @@ public Mono> updateTagsWithResponseAsync(Strin } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, @@ -881,7 +882,7 @@ public Mono> updateTagsWithResponseAsync(Strin /** * Updates the specified application gateway tags. - * + * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to update application gateway tags. @@ -915,7 +916,7 @@ private Mono> updateTagsWithResponseAsync(Stri } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, apiVersion, @@ -924,7 +925,7 @@ private Mono> updateTagsWithResponseAsync(Stri /** * Updates the specified application gateway tags. - * + * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to update application gateway tags. @@ -942,7 +943,7 @@ public Mono updateTagsAsync(String resourceGroupName, S /** * Updates the specified application gateway tags. - * + * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to update application gateway tags. @@ -960,7 +961,7 @@ public Response updateTagsWithResponse(String resourceG /** * Updates the specified application gateway tags. - * + * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param parameters Parameters supplied to update application gateway tags. @@ -977,7 +978,7 @@ public ApplicationGatewayInner updateTags(String resourceGroupName, String appli /** * Lists all application gateways 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. @@ -999,7 +1000,7 @@ private Mono> listByResourceGroupSinglePa return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -1011,7 +1012,7 @@ private Mono> listByResourceGroupSinglePa /** * Lists all application gateways 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. @@ -1035,7 +1036,7 @@ private Mono> listByResourceGroupSinglePa return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1047,7 +1048,7 @@ private Mono> listByResourceGroupSinglePa /** * Lists all application gateways 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. @@ -1062,7 +1063,7 @@ public PagedFlux listByResourceGroupAsync(String resour /** * Lists all application gateways 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. @@ -1078,7 +1079,7 @@ private PagedFlux listByResourceGroupAsync(String resou /** * Lists all application gateways 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. @@ -1092,7 +1093,7 @@ public PagedIterable listByResourceGroup(String resourc /** * Lists all application gateways 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. @@ -1107,7 +1108,7 @@ public PagedIterable listByResourceGroup(String resourc /** * Gets all the application 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 application gateways in a subscription along with {@link PagedResponse} on successful completion @@ -1123,7 +1124,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1135,7 +1136,7 @@ private Mono> listSinglePageAsync() { /** * Gets all the application 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. @@ -1153,7 +1154,7 @@ private Mono> listSinglePageAsync(Context return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) @@ -1163,7 +1164,7 @@ private Mono> listSinglePageAsync(Context /** * Gets all the application 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 application gateways in a subscription as paginated response with {@link PagedFlux}. @@ -1175,7 +1176,7 @@ public PagedFlux listAsync() { /** * Gets all the application 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. @@ -1190,7 +1191,7 @@ private PagedFlux listAsync(Context context) { /** * Gets all the application 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 application gateways in a subscription as paginated response with {@link PagedIterable}. @@ -1202,7 +1203,7 @@ public PagedIterable list() { /** * Gets all the application 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. @@ -1216,7 +1217,7 @@ public PagedIterable list(Context context) { /** * Starts 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. @@ -1243,7 +1244,7 @@ public Mono>> startWithResponseAsync(String resourceGr return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.start(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, @@ -1253,7 +1254,7 @@ public Mono>> startWithResponseAsync(String resourceGr /** * Starts 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. @@ -1281,7 +1282,7 @@ private Mono>> startWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.start(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, apiVersion, @@ -1290,7 +1291,7 @@ private Mono>> startWithResponseAsync(String resourceG /** * Starts 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. @@ -1307,7 +1308,7 @@ public PollerFlux, Void> beginStartAsync(String resourceGroupNa /** * Starts 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. @@ -1328,7 +1329,7 @@ private PollerFlux, Void> beginStartAsync(String resourceGroupN /** * Starts 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. @@ -1343,7 +1344,7 @@ public SyncPoller, Void> beginStart(String resourceGroupName, S /** * Starts 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. @@ -1360,7 +1361,7 @@ public SyncPoller, Void> beginStart(String resourceGroupName, S /** * Starts 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. @@ -1376,7 +1377,7 @@ public Mono startAsync(String resourceGroupName, String applicationGateway /** * Starts 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. @@ -1393,7 +1394,7 @@ private Mono startAsync(String resourceGroupName, String applicationGatewa /** * Starts 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. @@ -1407,7 +1408,7 @@ public void start(String resourceGroupName, String applicationGatewayName) { /** * Starts 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. @@ -1422,7 +1423,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 applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1449,7 +1450,7 @@ public Mono>> stopWithResponseAsync(String resourceGro return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.stop(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, @@ -1459,7 +1460,7 @@ public Mono>> stopWithResponseAsync(String resourceGro /** * Stops the specified application gateway in a resource group. - * + * * @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. @@ -1487,7 +1488,7 @@ private Mono>> stopWithResponseAsync(String resourceGr return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.stop(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, apiVersion, @@ -1496,7 +1497,7 @@ private Mono>> stopWithResponseAsync(String resourceGr /** * Stops the specified application gateway in a resource group. - * + * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1513,7 +1514,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 applicationGatewayName The name of the application gateway. * @param context The context to associate with this operation. @@ -1534,7 +1535,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 applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1549,7 +1550,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 applicationGatewayName The name of the application gateway. * @param context The context to associate with this operation. @@ -1566,7 +1567,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 applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1582,7 +1583,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 applicationGatewayName The name of the application gateway. * @param context The context to associate with this operation. @@ -1599,7 +1600,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 applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1613,7 +1614,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 applicationGatewayName The name of the application gateway. * @param context The context to associate with this operation. @@ -1628,7 +1629,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 applicationGatewayName The name of the application gateway. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. @@ -1657,7 +1658,7 @@ public Mono>> backendHealthWithResponseAsync(String re return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.backendHealth(this.client.getEndpoint(), resourceGroupName, @@ -1667,7 +1668,7 @@ public Mono>> backendHealthWithResponseAsync(String re /** * Gets the backend health of the specified application gateway in a resource group. - * + * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. @@ -1697,7 +1698,7 @@ private Mono>> backendHealthWithResponseAsync(String r return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.backendHealth(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, apiVersion, @@ -1706,7 +1707,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 applicationGatewayName The name of the application gateway. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. @@ -1728,7 +1729,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 applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1750,7 +1751,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 applicationGatewayName The name of the application gateway. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. @@ -1775,7 +1776,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 applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1793,7 +1794,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 applicationGatewayName The name of the application gateway. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. @@ -1812,7 +1813,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 applicationGatewayName The name of the application gateway. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. @@ -1831,7 +1832,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 applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1850,7 +1851,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 applicationGatewayName The name of the application gateway. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. @@ -1870,7 +1871,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 applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1886,7 +1887,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 applicationGatewayName The name of the application gateway. * @param expand Expands BackendAddressPool and BackendHttpSettings referenced in backend health. @@ -1905,7 +1906,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 applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. @@ -1940,7 +1941,7 @@ public Mono>> backendHealthOnDemandWithResponseAsync(S } else { probeRequest.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.backendHealthOnDemand(this.client.getEndpoint(), resourceGroupName, @@ -1952,7 +1953,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 applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. @@ -1988,7 +1989,7 @@ private Mono>> backendHealthOnDemandWithResponseAsync( } else { probeRequest.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.backendHealthOnDemand(this.client.getEndpoint(), resourceGroupName, applicationGatewayName, @@ -1998,7 +1999,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 applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. @@ -2025,7 +2026,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 applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. @@ -2052,7 +2053,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 applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. @@ -2081,7 +2082,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 applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. @@ -2104,7 +2105,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 applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. @@ -2129,7 +2130,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 applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. @@ -2150,7 +2151,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 applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. @@ -2171,7 +2172,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 applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. @@ -2187,13 +2188,14 @@ public Mono backendHealthOnDemandA private Mono backendHealthOnDemandAsync(String resourceGroupName, String applicationGatewayName, ApplicationGatewayOnDemandProbe probeRequest, String expand, Context context) { return beginBackendHealthOnDemandAsync(resourceGroupName, applicationGatewayName, probeRequest, expand, context) - .last().flatMap(this.client::getLroFinalResultOrError); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** * 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 applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. @@ -2213,7 +2215,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 applicationGatewayName The name of the application gateway. * @param probeRequest Request body for on-demand test probe operation. @@ -2234,7 +2236,7 @@ public ApplicationGatewayBackendHealthOnDemandInner backendHealthOnDemand(String /** * Lists all available server variables. - * + * * @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 ApplicationGatewayAvailableServerVariables API service call along with {@link Response} on @@ -2250,7 +2252,7 @@ public Mono>> listAvailableServerVariablesWithResponseAsyn return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listAvailableServerVariables(this.client.getEndpoint(), apiVersion, @@ -2260,7 +2262,7 @@ public Mono>> listAvailableServerVariablesWithResponseAsyn /** * Lists all available server variables. - * + * * @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. @@ -2278,7 +2280,7 @@ private Mono>> listAvailableServerVariablesWithResponseAsy return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listAvailableServerVariables(this.client.getEndpoint(), apiVersion, @@ -2287,7 +2289,7 @@ private Mono>> listAvailableServerVariablesWithResponseAsy /** * Lists all available server variables. - * + * * @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 ApplicationGatewayAvailableServerVariables API service call on successful completion of @@ -2300,7 +2302,7 @@ public Mono> listAvailableServerVariablesAsync() { /** * Lists all available server variables. - * + * * @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. @@ -2314,7 +2316,7 @@ public Response> listAvailableServerVariablesWithResponse(Context c /** * Lists all available server variables. - * + * * @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 ApplicationGatewayAvailableServerVariables API service call. @@ -2326,7 +2328,7 @@ public List listAvailableServerVariables() { /** * Lists all available request headers. - * + * * @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 ApplicationGatewayAvailableRequestHeaders API service call along with {@link Response} on @@ -2342,7 +2344,7 @@ public Mono>> listAvailableRequestHeadersWithResponseAsync return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listAvailableRequestHeaders(this.client.getEndpoint(), apiVersion, @@ -2352,7 +2354,7 @@ public Mono>> listAvailableRequestHeadersWithResponseAsync /** * Lists all available request headers. - * + * * @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. @@ -2370,7 +2372,7 @@ private Mono>> listAvailableRequestHeadersWithResponseAsyn return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listAvailableRequestHeaders(this.client.getEndpoint(), apiVersion, @@ -2379,7 +2381,7 @@ private Mono>> listAvailableRequestHeadersWithResponseAsyn /** * Lists all available request headers. - * + * * @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 ApplicationGatewayAvailableRequestHeaders API service call on successful completion of @@ -2392,7 +2394,7 @@ public Mono> listAvailableRequestHeadersAsync() { /** * Lists all available request headers. - * + * * @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. @@ -2406,7 +2408,7 @@ public Response> listAvailableRequestHeadersWithResponse(Context co /** * Lists all available request headers. - * + * * @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 ApplicationGatewayAvailableRequestHeaders API service call. @@ -2418,7 +2420,7 @@ public List listAvailableRequestHeaders() { /** * Lists all available response headers. - * + * * @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 ApplicationGatewayAvailableResponseHeaders API service call along with {@link Response} on @@ -2434,7 +2436,7 @@ public Mono>> listAvailableResponseHeadersWithResponseAsyn return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listAvailableResponseHeaders(this.client.getEndpoint(), apiVersion, @@ -2444,7 +2446,7 @@ public Mono>> listAvailableResponseHeadersWithResponseAsyn /** * Lists all available response headers. - * + * * @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. @@ -2462,7 +2464,7 @@ private Mono>> listAvailableResponseHeadersWithResponseAsy return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listAvailableResponseHeaders(this.client.getEndpoint(), apiVersion, @@ -2471,7 +2473,7 @@ private Mono>> listAvailableResponseHeadersWithResponseAsy /** * Lists all available response headers. - * + * * @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 ApplicationGatewayAvailableResponseHeaders API service call on successful completion of @@ -2484,7 +2486,7 @@ public Mono> listAvailableResponseHeadersAsync() { /** * Lists all available response headers. - * + * * @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. @@ -2498,7 +2500,7 @@ public Response> listAvailableResponseHeadersWithResponse(Context c /** * Lists all available response headers. - * + * * @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 ApplicationGatewayAvailableResponseHeaders API service call. @@ -2510,7 +2512,7 @@ public List listAvailableResponseHeaders() { /** * Lists all available web application firewall rule sets. - * + * * @throws ManagementException thrown 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 @@ -2527,7 +2529,7 @@ public List listAvailableResponseHeaders() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listAvailableWafRuleSets(this.client.getEndpoint(), apiVersion, @@ -2537,7 +2539,7 @@ public List listAvailableResponseHeaders() { /** * Lists all available web application firewall rule sets. - * + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2556,7 +2558,7 @@ public List listAvailableResponseHeaders() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listAvailableWafRuleSets(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -2565,7 +2567,7 @@ public List listAvailableResponseHeaders() { /** * Lists all available web application firewall rule sets. - * + * * @throws ManagementException thrown 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 @@ -2578,7 +2580,7 @@ public Mono listAvailableWafR /** * Lists all available web application firewall rule sets. - * + * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2593,7 +2595,7 @@ public Mono listAvailableWafR /** * Lists all available web application firewall rule sets. - * + * * @throws ManagementException thrown 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. @@ -2605,7 +2607,7 @@ public ApplicationGatewayAvailableWafRuleSetsResultInner listAvailableWafRuleSet /** * Lists available Ssl options for configuring Ssl policy. - * + * * @throws ManagementException thrown 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 @@ -2621,7 +2623,7 @@ public Mono> listAvailableS return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listAvailableSslOptions(this.client.getEndpoint(), apiVersion, @@ -2631,7 +2633,7 @@ public Mono> listAvailableS /** * 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 ManagementException thrown if the request is rejected by server. @@ -2650,7 +2652,7 @@ public Mono> listAvailableS return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listAvailableSslOptions(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -2659,7 +2661,7 @@ public Mono> listAvailableS /** * Lists available Ssl options for configuring Ssl policy. - * + * * @throws ManagementException thrown 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 @@ -2672,7 +2674,7 @@ public Mono listAvailableSslOptionsA /** * 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 ManagementException thrown if the request is rejected by server. @@ -2686,7 +2688,7 @@ public Response listAvailableSslOpti /** * Lists available Ssl options for configuring Ssl policy. - * + * * @throws ManagementException thrown 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. @@ -2698,7 +2700,7 @@ public ApplicationGatewayAvailableSslOptionsInner listAvailableSslOptions() { /** * Lists all SSL predefined policies for configuring Ssl policy. - * + * * @throws ManagementException thrown 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 @@ -2715,7 +2717,7 @@ public ApplicationGatewayAvailableSslOptionsInner listAvailableSslOptions() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listAvailableSslPredefinedPolicies(this.client.getEndpoint(), apiVersion, @@ -2728,7 +2730,7 @@ public ApplicationGatewayAvailableSslOptionsInner listAvailableSslOptions() { /** * 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 ManagementException thrown if the request is rejected by server. @@ -2747,7 +2749,7 @@ public ApplicationGatewayAvailableSslOptionsInner listAvailableSslOptions() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -2759,7 +2761,7 @@ public ApplicationGatewayAvailableSslOptionsInner listAvailableSslOptions() { /** * Lists all SSL predefined policies for configuring Ssl policy. - * + * * @throws ManagementException thrown 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 @@ -2773,7 +2775,7 @@ public PagedFlux listAvailableSslPre /** * 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 ManagementException thrown if the request is rejected by server. @@ -2790,7 +2792,7 @@ public PagedFlux listAvailableSslPre /** * Lists all SSL predefined policies for configuring Ssl policy. - * + * * @throws ManagementException thrown 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 @@ -2803,7 +2805,7 @@ public PagedIterable listAvailableSs /** * 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 ManagementException thrown if the request is rejected by server. @@ -2819,7 +2821,7 @@ public PagedIterable listAvailableSs /** * Gets Ssl predefined policy with the specified policy name. - * + * * @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. @@ -2842,7 +2844,7 @@ public PagedIterable listAvailableSs return Mono .error(new IllegalArgumentException("Parameter predefinedPolicyName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getSslPredefinedPolicy(this.client.getEndpoint(), apiVersion, @@ -2852,7 +2854,7 @@ public PagedIterable listAvailableSs /** * Gets Ssl predefined policy with the specified policy name. - * + * * @param predefinedPolicyName Name of Ssl predefined policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2876,7 +2878,7 @@ public PagedIterable listAvailableSs return Mono .error(new IllegalArgumentException("Parameter predefinedPolicyName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getSslPredefinedPolicy(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -2885,7 +2887,7 @@ public PagedIterable listAvailableSs /** * Gets Ssl predefined policy with the specified policy name. - * + * * @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. @@ -2900,7 +2902,7 @@ public Mono getSslPredefinedPolicyAs /** * Gets Ssl predefined policy with the specified policy name. - * + * * @param predefinedPolicyName Name of Ssl predefined policy. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2916,7 +2918,7 @@ public Mono getSslPredefinedPolicyAs /** * Gets Ssl predefined policy with the specified policy name. - * + * * @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. @@ -2930,9 +2932,9 @@ public ApplicationGatewaySslPredefinedPolicyInner getSslPredefinedPolicy(String /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2958,9 +2960,9 @@ private Mono> listNextSinglePageAsync(Str /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2987,9 +2989,9 @@ private Mono> listNextSinglePageAsync(Str /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3016,9 +3018,9 @@ private Mono> listAllNextSinglePageAsync( /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -3045,9 +3047,9 @@ private Mono> listAllNextSinglePageAsync( /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -3077,9 +3079,9 @@ private Mono> listAllNextSinglePageAsync( /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationSecurityGroupsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationSecurityGroupsClientImpl.java index c8049cdcf7772..90e69b493db82 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationSecurityGroupsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationSecurityGroupsClientImpl.java @@ -39,10 +39,11 @@ import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in ApplicationSecurityGroupsClient. */ @@ -60,7 +61,7 @@ public final class ApplicationSecurityGroupsClientImpl implements InnerSupportsG /** * Initializes an instance of ApplicationSecurityGroupsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ ApplicationSecurityGroupsClientImpl(NetworkManagementClientImpl client) { @@ -153,7 +154,7 @@ Mono> listNext( /** * 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. @@ -180,7 +181,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, @@ -190,7 +191,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * 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. @@ -218,7 +219,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, applicationSecurityGroupName, apiVersion, @@ -227,7 +228,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * 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. @@ -246,7 +247,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * 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. @@ -267,7 +268,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * 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. @@ -283,7 +284,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -300,7 +301,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -316,7 +317,7 @@ public Mono deleteAsync(String resourceGroupName, String applicationSecuri /** * 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. @@ -333,7 +334,7 @@ private Mono deleteAsync(String resourceGroupName, String applicationSecur /** * 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. @@ -347,7 +348,7 @@ public 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. @@ -362,7 +363,7 @@ public void delete(String resourceGroupName, String applicationSecurityGroupName /** * Gets information about 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. @@ -390,7 +391,7 @@ public Mono> getByResourceGroupWithRespo return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -400,7 +401,7 @@ public Mono> getByResourceGroupWithRespo /** * Gets information about 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. @@ -429,7 +430,7 @@ private Mono> getByResourceGroupWithResp return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, applicationSecurityGroupName, @@ -438,7 +439,7 @@ private Mono> getByResourceGroupWithResp /** * Gets information about 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. @@ -455,7 +456,7 @@ public Mono getByResourceGroupAsync(String resour /** * Gets information about 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. @@ -472,7 +473,7 @@ public Response getByResourceGroupWithResponse(St /** * Gets information about 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. @@ -488,7 +489,7 @@ public ApplicationSecurityGroupInner getByResourceGroup(String resourceGroupName /** * Creates or updates an application security group. - * + * * @param resourceGroupName The name of the resource group. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to the create or update ApplicationSecurityGroup operation. @@ -522,7 +523,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -532,7 +533,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r /** * Creates or updates an application security group. - * + * * @param resourceGroupName The name of the resource group. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to the create or update ApplicationSecurityGroup operation. @@ -567,7 +568,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, applicationSecurityGroupName, @@ -576,7 +577,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates an application security group. - * + * * @param resourceGroupName The name of the resource group. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to the create or update ApplicationSecurityGroup operation. @@ -598,7 +599,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates an application security group. - * + * * @param resourceGroupName The name of the resource group. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to the create or update ApplicationSecurityGroup operation. @@ -622,7 +623,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates an application security group. - * + * * @param resourceGroupName The name of the resource group. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to the create or update ApplicationSecurityGroup operation. @@ -640,7 +641,7 @@ public SyncPoller, ApplicationSecurity /** * Creates or updates an application security group. - * + * * @param resourceGroupName The name of the resource group. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to the create or update ApplicationSecurityGroup operation. @@ -660,7 +661,7 @@ public SyncPoller, ApplicationSecurity /** * Creates or updates an application security group. - * + * * @param resourceGroupName The name of the resource group. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to the create or update ApplicationSecurityGroup operation. @@ -678,7 +679,7 @@ public Mono createOrUpdateAsync(String resourceGr /** * Creates or updates an application security group. - * + * * @param resourceGroupName The name of the resource group. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to the create or update ApplicationSecurityGroup operation. @@ -697,7 +698,7 @@ private Mono createOrUpdateAsync(String resourceG /** * Creates or updates an application security group. - * + * * @param resourceGroupName The name of the resource group. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to the create or update ApplicationSecurityGroup operation. @@ -714,7 +715,7 @@ public ApplicationSecurityGroupInner createOrUpdate(String resourceGroupName, St /** * Creates or updates an application security group. - * + * * @param resourceGroupName The name of the resource group. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to the create or update ApplicationSecurityGroup operation. @@ -732,7 +733,7 @@ public ApplicationSecurityGroupInner createOrUpdate(String resourceGroupName, St /** * Updates an application security group's tags. - * + * * @param resourceGroupName The name of the resource group. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to update application security group tags. @@ -766,7 +767,7 @@ public Mono> updateTagsWithResponseAsync } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, @@ -776,7 +777,7 @@ public Mono> updateTagsWithResponseAsync /** * Updates an application security group's tags. - * + * * @param resourceGroupName The name of the resource group. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to update application security group tags. @@ -811,7 +812,7 @@ private Mono> updateTagsWithResponseAsyn } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), resourceGroupName, applicationSecurityGroupName, @@ -820,7 +821,7 @@ private Mono> updateTagsWithResponseAsyn /** * Updates an application security group's tags. - * + * * @param resourceGroupName The name of the resource group. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to update application security group tags. @@ -838,7 +839,7 @@ public Mono updateTagsAsync(String resourceGroupN /** * Updates an application security group's tags. - * + * * @param resourceGroupName The name of the resource group. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to update application security group tags. @@ -857,7 +858,7 @@ public Response updateTagsWithResponse(String res /** * Updates an application security group's tags. - * + * * @param resourceGroupName The name of the resource group. * @param applicationSecurityGroupName The name of the application security group. * @param parameters Parameters supplied to update application security group tags. @@ -875,7 +876,7 @@ public ApplicationSecurityGroupInner updateTags(String resourceGroupName, String /** * Gets all application security groups 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 application security groups in a subscription along with {@link PagedResponse} on successful @@ -891,7 +892,7 @@ private Mono> listSinglePageAsync() return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -903,7 +904,7 @@ private Mono> listSinglePageAsync() /** * 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 ManagementException thrown if the request is rejected by server. @@ -921,7 +922,7 @@ private Mono> listSinglePageAsync(C return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) @@ -931,7 +932,7 @@ private Mono> listSinglePageAsync(C /** * Gets all application security groups 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 application security groups in a subscription as paginated response with {@link PagedFlux}. @@ -943,7 +944,7 @@ public PagedFlux listAsync() { /** * 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 ManagementException thrown if the request is rejected by server. @@ -958,7 +959,7 @@ private PagedFlux listAsync(Context context) { /** * Gets all application security groups 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 application security groups in a subscription as paginated response with {@link PagedIterable}. @@ -970,7 +971,7 @@ public 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 ManagementException thrown if the request is rejected by server. @@ -984,7 +985,7 @@ public PagedIterable list(Context context) { /** * Gets all the application security groups 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. @@ -1007,7 +1008,7 @@ public PagedIterable list(Context context) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -1019,7 +1020,7 @@ public PagedIterable list(Context context) { /** * Gets all the application security groups 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. @@ -1043,7 +1044,7 @@ public PagedIterable list(Context context) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1055,7 +1056,7 @@ public PagedIterable list(Context context) { /** * Gets all the application security groups 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. @@ -1070,7 +1071,7 @@ public PagedFlux listByResourceGroupAsync(String /** * Gets all the application security groups 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. @@ -1087,7 +1088,7 @@ private PagedFlux listByResourceGroupAsync(String /** * Gets all the application security groups 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. @@ -1101,7 +1102,7 @@ public PagedIterable listByResourceGroup(String r /** * Gets all the application security groups 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. @@ -1116,9 +1117,9 @@ public PagedIterable listByResourceGroup(String r /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1145,9 +1146,9 @@ private Mono> listAllNextSinglePage /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1175,9 +1176,9 @@ private Mono> listAllNextSinglePage /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1203,9 +1204,9 @@ private Mono> listNextSinglePageAsy /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableDelegationsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableDelegationsClientImpl.java index 4860b990c3cab..635382b818049 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableDelegationsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableDelegationsClientImpl.java @@ -102,7 +102,7 @@ private Mono> listSinglePageAsync(String return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), location, apiVersion, @@ -136,7 +136,7 @@ private Mono> listSinglePageAsync(String return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableEndpointServicesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableEndpointServicesClientImpl.java index df8e0255561d0..b4591507b966c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableEndpointServicesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableEndpointServicesClientImpl.java @@ -102,7 +102,7 @@ private Mono> listSinglePageAsync(Stri return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), location, apiVersion, @@ -136,7 +136,7 @@ private Mono> listSinglePageAsync(Stri return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailablePrivateEndpointTypesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailablePrivateEndpointTypesClientImpl.java index 21545a1686613..6a1472a5c6b77 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailablePrivateEndpointTypesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailablePrivateEndpointTypesClientImpl.java @@ -119,7 +119,7 @@ private Mono> listSinglePageAsy return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), location, apiVersion, @@ -154,7 +154,7 @@ private Mono> listSinglePageAsy return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -251,7 +251,7 @@ private Mono> listByResourceGro return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), location, resourceGroupName, @@ -291,7 +291,7 @@ private Mono> listByResourceGro return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableResourceGroupDelegationsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableResourceGroupDelegationsClientImpl.java index 9035bcf21a7ef..93007c054facc 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableResourceGroupDelegationsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableResourceGroupDelegationsClientImpl.java @@ -109,7 +109,7 @@ private Mono> listSinglePageAsync(String return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), location, resourceGroupName, @@ -149,7 +149,7 @@ private Mono> listSinglePageAsync(String return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableServiceAliasesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableServiceAliasesClientImpl.java index 2705c2204bb57..9563372753edd 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableServiceAliasesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AvailableServiceAliasesClientImpl.java @@ -119,7 +119,7 @@ private Mono> listSinglePageAsync(Stri return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), location, this.client.getSubscriptionId(), @@ -153,7 +153,7 @@ private Mono> listSinglePageAsync(Stri return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -254,7 +254,7 @@ private Mono> listByResourceGroupSingl return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, location, @@ -294,7 +294,7 @@ private Mono> listByResourceGroupSingl return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AzureFirewallFqdnTagsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AzureFirewallFqdnTagsClientImpl.java index 51901085c7305..f8e5d8c9fe177 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AzureFirewallFqdnTagsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AzureFirewallFqdnTagsClientImpl.java @@ -97,7 +97,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -127,7 +127,7 @@ private Mono> listSinglePageAsync(Conte return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AzureFirewallsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AzureFirewallsClientImpl.java index 553c612ff8991..a0e7c15f8b1ab 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AzureFirewallsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/AzureFirewallsClientImpl.java @@ -42,10 +42,11 @@ import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in AzureFirewallsClient. */ @@ -63,7 +64,7 @@ public final class AzureFirewallsClientImpl implements InnerSupportsGet> listAllNext( /** * 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. @@ -199,7 +200,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, azureFirewallName, @@ -209,7 +210,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * 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. @@ -237,7 +238,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, azureFirewallName, apiVersion, @@ -246,7 +247,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * 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. @@ -263,7 +264,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * 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. @@ -283,7 +284,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * 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. @@ -298,7 +299,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -315,7 +316,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -331,7 +332,7 @@ public 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. * @param context The context to associate with this operation. @@ -348,7 +349,7 @@ private Mono deleteAsync(String resourceGroupName, String azureFirewallNam /** * 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. @@ -362,7 +363,7 @@ public 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. @@ -377,7 +378,7 @@ public void delete(String resourceGroupName, String azureFirewallName, Context c /** * Gets 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. @@ -404,7 +405,7 @@ public Mono> getByResourceGroupWithResponseAsync(St return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -414,7 +415,7 @@ public Mono> getByResourceGroupWithResponseAsync(St /** * Gets 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. @@ -442,7 +443,7 @@ private Mono> getByResourceGroupWithResponseAsync(S return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, azureFirewallName, apiVersion, @@ -451,7 +452,7 @@ private Mono> getByResourceGroupWithResponseAsync(S /** * Gets 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. @@ -467,7 +468,7 @@ public Mono getByResourceGroupAsync(String resourceGroupName /** * Gets 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. @@ -484,7 +485,7 @@ public Response getByResourceGroupWithResponse(String resour /** * Gets 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. @@ -499,7 +500,7 @@ public AzureFirewallInner getByResourceGroup(String resourceGroupName, String az /** * Creates or updates the specified Azure Firewall. - * + * * @param resourceGroupName The name of the resource group. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to the create or update Azure Firewall operation. @@ -532,7 +533,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -542,7 +543,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r /** * Creates or updates the specified Azure Firewall. - * + * * @param resourceGroupName The name of the resource group. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to the create or update Azure Firewall operation. @@ -576,7 +577,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, azureFirewallName, apiVersion, @@ -585,7 +586,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates the specified Azure Firewall. - * + * * @param resourceGroupName The name of the resource group. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to the create or update Azure Firewall operation. @@ -605,7 +606,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates the specified Azure Firewall. - * + * * @param resourceGroupName The name of the resource group. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to the create or update Azure Firewall operation. @@ -627,7 +628,7 @@ private PollerFlux, AzureFirewallInner> beginCrea /** * Creates or updates the specified Azure Firewall. - * + * * @param resourceGroupName The name of the resource group. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to the create or update Azure Firewall operation. @@ -644,7 +645,7 @@ public SyncPoller, AzureFirewallInner> beginCreat /** * Creates or updates the specified Azure Firewall. - * + * * @param resourceGroupName The name of the resource group. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to the create or update Azure Firewall operation. @@ -662,7 +663,7 @@ public SyncPoller, AzureFirewallInner> beginCreat /** * Creates or updates the specified Azure Firewall. - * + * * @param resourceGroupName The name of the resource group. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to the create or update Azure Firewall operation. @@ -680,7 +681,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, St /** * Creates or updates the specified Azure Firewall. - * + * * @param resourceGroupName The name of the resource group. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to the create or update Azure Firewall operation. @@ -699,7 +700,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, S /** * Creates or updates the specified Azure Firewall. - * + * * @param resourceGroupName The name of the resource group. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to the create or update Azure Firewall operation. @@ -716,7 +717,7 @@ public AzureFirewallInner createOrUpdate(String resourceGroupName, String azureF /** * Creates or updates the specified Azure Firewall. - * + * * @param resourceGroupName The name of the resource group. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to the create or update Azure Firewall operation. @@ -734,7 +735,7 @@ public AzureFirewallInner createOrUpdate(String resourceGroupName, String azureF /** * Updates tags of an Azure Firewall resource. - * + * * @param resourceGroupName The name of the resource group. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to update azure firewall tags. @@ -767,7 +768,7 @@ public Mono>> updateTagsWithResponseAsync(String resou } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, azureFirewallName, @@ -777,7 +778,7 @@ public Mono>> updateTagsWithResponseAsync(String resou /** * Updates tags of an Azure Firewall resource. - * + * * @param resourceGroupName The name of the resource group. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to update azure firewall tags. @@ -811,7 +812,7 @@ private Mono>> updateTagsWithResponseAsync(String reso } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), resourceGroupName, azureFirewallName, apiVersion, @@ -820,7 +821,7 @@ private Mono>> updateTagsWithResponseAsync(String reso /** * Updates tags of an Azure Firewall resource. - * + * * @param resourceGroupName The name of the resource group. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to update azure firewall tags. @@ -840,7 +841,7 @@ public PollerFlux, AzureFirewallInner> beginUpdat /** * Updates tags of an Azure Firewall resource. - * + * * @param resourceGroupName The name of the resource group. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to update azure firewall tags. @@ -862,7 +863,7 @@ private PollerFlux, AzureFirewallInner> beginUpda /** * Updates tags of an Azure Firewall resource. - * + * * @param resourceGroupName The name of the resource group. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to update azure firewall tags. @@ -879,7 +880,7 @@ public SyncPoller, AzureFirewallInner> beginUpdat /** * Updates tags of an Azure Firewall resource. - * + * * @param resourceGroupName The name of the resource group. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to update azure firewall tags. @@ -897,7 +898,7 @@ public SyncPoller, AzureFirewallInner> beginUpdat /** * Updates tags of an Azure Firewall resource. - * + * * @param resourceGroupName The name of the resource group. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to update azure firewall tags. @@ -915,7 +916,7 @@ public Mono updateTagsAsync(String resourceGroupName, String /** * Updates tags of an Azure Firewall resource. - * + * * @param resourceGroupName The name of the resource group. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to update azure firewall tags. @@ -934,7 +935,7 @@ private Mono updateTagsAsync(String resourceGroupName, Strin /** * Updates tags of an Azure Firewall resource. - * + * * @param resourceGroupName The name of the resource group. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to update azure firewall tags. @@ -950,7 +951,7 @@ public AzureFirewallInner updateTags(String resourceGroupName, String azureFirew /** * Updates tags of an Azure Firewall resource. - * + * * @param resourceGroupName The name of the resource group. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to update azure firewall tags. @@ -968,7 +969,7 @@ public AzureFirewallInner updateTags(String resourceGroupName, String azureFirew /** * Lists all Azure Firewalls 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. @@ -990,7 +991,7 @@ private Mono> listByResourceGroupSinglePageAsy return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -1002,7 +1003,7 @@ private Mono> listByResourceGroupSinglePageAsy /** * Lists all Azure Firewalls 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. @@ -1026,7 +1027,7 @@ private Mono> listByResourceGroupSinglePageAsy return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1038,7 +1039,7 @@ private Mono> listByResourceGroupSinglePageAsy /** * Lists all Azure Firewalls 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. @@ -1053,7 +1054,7 @@ public PagedFlux listByResourceGroupAsync(String resourceGro /** * Lists all Azure Firewalls 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. @@ -1069,7 +1070,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGr /** * Lists all Azure Firewalls 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. @@ -1083,7 +1084,7 @@ public PagedIterable listByResourceGroup(String resourceGrou /** * Lists all Azure Firewalls 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. @@ -1098,7 +1099,7 @@ public PagedIterable listByResourceGroup(String resourceGrou /** * Gets all the Azure Firewalls 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 Azure Firewalls in a subscription along with {@link PagedResponse} on successful completion of @@ -1114,7 +1115,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1126,7 +1127,7 @@ private Mono> listSinglePageAsync() { /** * Gets all the Azure Firewalls 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. @@ -1144,7 +1145,7 @@ private Mono> listSinglePageAsync(Context cont return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) @@ -1154,7 +1155,7 @@ private Mono> listSinglePageAsync(Context cont /** * Gets all the Azure Firewalls 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 Azure Firewalls in a subscription as paginated response with {@link PagedFlux}. @@ -1166,7 +1167,7 @@ public PagedFlux listAsync() { /** * Gets all the Azure Firewalls 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. @@ -1181,7 +1182,7 @@ private PagedFlux listAsync(Context context) { /** * Gets all the Azure Firewalls 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 Azure Firewalls in a subscription as paginated response with {@link PagedIterable}. @@ -1193,7 +1194,7 @@ public PagedIterable list() { /** * Gets all the Azure Firewalls 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. @@ -1207,7 +1208,7 @@ 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1235,7 +1236,7 @@ public Mono>> listLearnedPrefixesWithResponseAsync(Str return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listLearnedPrefixes(this.client.getEndpoint(), resourceGroupName, @@ -1245,7 +1246,7 @@ public Mono>> listLearnedPrefixesWithResponseAsync(Str /** * 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 context The context to associate with this operation. @@ -1274,7 +1275,7 @@ private Mono>> listLearnedPrefixesWithResponseAsync(St return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listLearnedPrefixes(this.client.getEndpoint(), resourceGroupName, azureFirewallName, apiVersion, @@ -1283,7 +1284,7 @@ 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1302,7 +1303,7 @@ 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 context The context to associate with this operation. @@ -1323,7 +1324,7 @@ 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1339,7 +1340,7 @@ 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 context The context to associate with this operation. @@ -1356,7 +1357,7 @@ 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1372,7 +1373,7 @@ 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 context The context to associate with this operation. @@ -1390,7 +1391,7 @@ 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1405,7 +1406,7 @@ 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 context The context to associate with this operation. @@ -1422,7 +1423,7 @@ public IpPrefixesListInner listLearnedPrefixes(String resourceGroupName, String /** * Runs a packet capture on AzureFirewall. - * + * * @param resourceGroupName The name of the resource group. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. @@ -1455,7 +1456,7 @@ public Mono>> packetCaptureWithResponseAsync(String re } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.packetCapture(this.client.getEndpoint(), resourceGroupName, @@ -1465,7 +1466,7 @@ public Mono>> packetCaptureWithResponseAsync(String re /** * Runs a packet capture on AzureFirewall. - * + * * @param resourceGroupName The name of the resource group. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. @@ -1499,7 +1500,7 @@ private Mono>> packetCaptureWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.packetCapture(this.client.getEndpoint(), resourceGroupName, azureFirewallName, apiVersion, @@ -1508,7 +1509,7 @@ private Mono>> packetCaptureWithResponseAsync(String r /** * Runs a packet capture on AzureFirewall. - * + * * @param resourceGroupName The name of the resource group. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. @@ -1528,7 +1529,7 @@ public PollerFlux, Void> beginPacketCaptureAsync(String resourc /** * Runs a packet capture on AzureFirewall. - * + * * @param resourceGroupName The name of the resource group. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. @@ -1550,7 +1551,7 @@ private PollerFlux, Void> beginPacketCaptureAsync(String resour /** * Runs a packet capture on AzureFirewall. - * + * * @param resourceGroupName The name of the resource group. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. @@ -1567,7 +1568,7 @@ public SyncPoller, Void> beginPacketCapture(String resourceGrou /** * Runs a packet capture on AzureFirewall. - * + * * @param resourceGroupName The name of the resource group. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. @@ -1585,7 +1586,7 @@ public SyncPoller, Void> beginPacketCapture(String resourceGrou /** * Runs a packet capture on AzureFirewall. - * + * * @param resourceGroupName The name of the resource group. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. @@ -1603,7 +1604,7 @@ public Mono packetCaptureAsync(String resourceGroupName, String azureFirew /** * Runs a packet capture on AzureFirewall. - * + * * @param resourceGroupName The name of the resource group. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. @@ -1622,7 +1623,7 @@ private Mono packetCaptureAsync(String resourceGroupName, String azureFire /** * Runs a packet capture on AzureFirewall. - * + * * @param resourceGroupName The name of the resource group. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. @@ -1638,7 +1639,7 @@ public void packetCapture(String resourceGroupName, String azureFirewallName, /** * Runs a packet capture on AzureFirewall. - * + * * @param resourceGroupName The name of the resource group. * @param azureFirewallName The name of the Azure Firewall. * @param parameters Parameters supplied to run packet capture on azure firewall. @@ -1655,9 +1656,9 @@ public void packetCapture(String resourceGroupName, String azureFirewallName, /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1683,9 +1684,9 @@ private Mono> listNextSinglePageAsync(String n /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1712,9 +1713,9 @@ private Mono> listNextSinglePageAsync(String n /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1741,9 +1742,9 @@ private Mono> listAllNextSinglePageAsync(Strin /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/BastionHostsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/BastionHostsClientImpl.java index 4e60a1a27e5cd..8e308896ec208 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/BastionHostsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/BastionHostsClientImpl.java @@ -39,10 +39,11 @@ import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in BastionHostsClient. */ @@ -60,7 +61,7 @@ public final class BastionHostsClientImpl implements InnerSupportsGet> listByResourceGroupNext( /** * 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. @@ -176,7 +177,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, bastionHostname, @@ -186,7 +187,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * 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. @@ -214,7 +215,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, bastionHostname, apiVersion, @@ -223,7 +224,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * 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. @@ -240,7 +241,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * 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. @@ -260,7 +261,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * 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. @@ -275,7 +276,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -292,7 +293,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -308,7 +309,7 @@ public 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. * @param context The context to associate with this operation. @@ -325,7 +326,7 @@ private 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. @@ -339,7 +340,7 @@ public 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. @@ -354,7 +355,7 @@ public void delete(String resourceGroupName, String bastionHostname, Context con /** * 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. @@ -381,7 +382,7 @@ public Mono> getByResourceGroupWithResponseAsync(Stri return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -391,7 +392,7 @@ public Mono> getByResourceGroupWithResponseAsync(Stri /** * 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. @@ -419,7 +420,7 @@ private Mono> getByResourceGroupWithResponseAsync(Str return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, bastionHostname, apiVersion, @@ -428,7 +429,7 @@ private Mono> getByResourceGroupWithResponseAsync(Str /** * 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. @@ -444,7 +445,7 @@ public Mono getByResourceGroupAsync(String resourceGroupName, /** * 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. @@ -461,7 +462,7 @@ public Response getByResourceGroupWithResponse(String resource /** * 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. @@ -476,7 +477,7 @@ public BastionHostInner getByResourceGroup(String resourceGroupName, String bast /** * Creates or updates the specified Bastion Host. - * + * * @param resourceGroupName The name of the resource group. * @param bastionHostname The name of the Bastion Host. * @param parameters Parameters supplied to the create or update Bastion Host operation. @@ -509,7 +510,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -519,7 +520,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r /** * Creates or updates the specified Bastion Host. - * + * * @param resourceGroupName The name of the resource group. * @param bastionHostname The name of the Bastion Host. * @param parameters Parameters supplied to the create or update Bastion Host operation. @@ -553,7 +554,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, bastionHostname, apiVersion, @@ -562,7 +563,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates the specified Bastion Host. - * + * * @param resourceGroupName The name of the resource group. * @param bastionHostname The name of the Bastion Host. * @param parameters Parameters supplied to the create or update Bastion Host operation. @@ -582,7 +583,7 @@ 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 parameters Parameters supplied to the create or update Bastion Host operation. @@ -604,7 +605,7 @@ 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 parameters Parameters supplied to the create or update Bastion Host operation. @@ -621,7 +622,7 @@ public SyncPoller, 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 parameters Parameters supplied to the create or update Bastion Host operation. @@ -639,7 +640,7 @@ public SyncPoller, 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 parameters Parameters supplied to the create or update Bastion Host operation. @@ -657,7 +658,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, Stri /** * Creates or updates the specified Bastion Host. - * + * * @param resourceGroupName The name of the resource group. * @param bastionHostname The name of the Bastion Host. * @param parameters Parameters supplied to the create or update Bastion Host operation. @@ -676,7 +677,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, Str /** * Creates or updates the specified Bastion Host. - * + * * @param resourceGroupName The name of the resource group. * @param bastionHostname The name of the Bastion Host. * @param parameters Parameters supplied to the create or update Bastion Host operation. @@ -693,7 +694,7 @@ public BastionHostInner createOrUpdate(String resourceGroupName, String bastionH /** * Creates or updates the specified Bastion Host. - * + * * @param resourceGroupName The name of the resource group. * @param bastionHostname The name of the Bastion Host. * @param parameters Parameters supplied to the create or update Bastion Host operation. @@ -711,7 +712,7 @@ public BastionHostInner createOrUpdate(String resourceGroupName, String bastionH /** * Updates Tags for BastionHost resource. - * + * * @param resourceGroupName The name of the resource group. * @param bastionHostname The name of the Bastion Host. * @param parameters Parameters supplied to update BastionHost tags. @@ -744,7 +745,7 @@ public Mono>> updateTagsWithResponseAsync(String resou } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -754,7 +755,7 @@ public Mono>> updateTagsWithResponseAsync(String resou /** * Updates Tags for BastionHost resource. - * + * * @param resourceGroupName The name of the resource group. * @param bastionHostname The name of the Bastion Host. * @param parameters Parameters supplied to update BastionHost tags. @@ -788,7 +789,7 @@ private Mono>> updateTagsWithResponseAsync(String reso } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -797,7 +798,7 @@ private Mono>> updateTagsWithResponseAsync(String reso /** * Updates Tags for BastionHost resource. - * + * * @param resourceGroupName The name of the resource group. * @param bastionHostname The name of the Bastion Host. * @param parameters Parameters supplied to update BastionHost tags. @@ -817,7 +818,7 @@ 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 parameters Parameters supplied to update BastionHost tags. @@ -839,7 +840,7 @@ 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 parameters Parameters supplied to update BastionHost tags. @@ -856,7 +857,7 @@ public SyncPoller, BastionHostInner> beginUpdateTag /** * Updates Tags for BastionHost resource. - * + * * @param resourceGroupName The name of the resource group. * @param bastionHostname The name of the Bastion Host. * @param parameters Parameters supplied to update BastionHost tags. @@ -874,7 +875,7 @@ public SyncPoller, BastionHostInner> beginUpdateTag /** * Updates Tags for BastionHost resource. - * + * * @param resourceGroupName The name of the resource group. * @param bastionHostname The name of the Bastion Host. * @param parameters Parameters supplied to update BastionHost tags. @@ -892,7 +893,7 @@ public Mono updateTagsAsync(String resourceGroupName, String b /** * Updates Tags for BastionHost resource. - * + * * @param resourceGroupName The name of the resource group. * @param bastionHostname The name of the Bastion Host. * @param parameters Parameters supplied to update BastionHost tags. @@ -911,7 +912,7 @@ private Mono updateTagsAsync(String resourceGroupName, String /** * Updates Tags for BastionHost resource. - * + * * @param resourceGroupName The name of the resource group. * @param bastionHostname The name of the Bastion Host. * @param parameters Parameters supplied to update BastionHost tags. @@ -927,7 +928,7 @@ public BastionHostInner updateTags(String resourceGroupName, String bastionHostn /** * Updates Tags for BastionHost resource. - * + * * @param resourceGroupName The name of the resource group. * @param bastionHostname The name of the Bastion Host. * @param parameters Parameters supplied to update BastionHost tags. @@ -945,7 +946,7 @@ public BastionHostInner updateTags(String resourceGroupName, String bastionHostn /** * 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 response for ListBastionHosts API service call along with {@link PagedResponse} on successful completion @@ -961,7 +962,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -973,7 +974,7 @@ private Mono> listSinglePageAsync() { /** * 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. @@ -991,7 +992,7 @@ private Mono> listSinglePageAsync(Context contex return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) @@ -1001,7 +1002,7 @@ private Mono> listSinglePageAsync(Context contex /** * 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 response for ListBastionHosts API service call as paginated response with {@link PagedFlux}. @@ -1013,7 +1014,7 @@ public PagedFlux 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. @@ -1028,7 +1029,7 @@ private PagedFlux listAsync(Context 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 response for ListBastionHosts API service call as paginated response with {@link PagedIterable}. @@ -1040,7 +1041,7 @@ public 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 ManagementException thrown if the request is rejected by server. @@ -1054,7 +1055,7 @@ public PagedIterable list(Context context) { /** * Lists all Bastion Hosts 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. @@ -1076,7 +1077,7 @@ private Mono> listByResourceGroupSinglePageAsync return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -1088,7 +1089,7 @@ private Mono> listByResourceGroupSinglePageAsync /** * Lists all Bastion Hosts 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. @@ -1112,7 +1113,7 @@ private Mono> listByResourceGroupSinglePageAsync return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1124,7 +1125,7 @@ private Mono> listByResourceGroupSinglePageAsync /** * Lists all Bastion Hosts 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. @@ -1139,7 +1140,7 @@ public PagedFlux listByResourceGroupAsync(String resourceGroup /** * Lists all Bastion Hosts 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. @@ -1155,7 +1156,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGrou /** * Lists all Bastion Hosts 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. @@ -1169,7 +1170,7 @@ public PagedIterable listByResourceGroup(String resourceGroupN /** * Lists all Bastion Hosts 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. @@ -1184,9 +1185,9 @@ public PagedIterable listByResourceGroup(String resourceGroupN /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1212,9 +1213,9 @@ private Mono> listNextSinglePageAsync(String nex /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1241,9 +1242,9 @@ private Mono> listNextSinglePageAsync(String nex /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1271,9 +1272,9 @@ private Mono> listByResourceGroupNextSinglePageA /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/BgpServiceCommunitiesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/BgpServiceCommunitiesClientImpl.java index e66877e89ed2f..6c47237a71557 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/BgpServiceCommunitiesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/BgpServiceCommunitiesClientImpl.java @@ -97,7 +97,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -127,7 +127,7 @@ private Mono> listSinglePageAsync(Contex return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConfigurationPolicyGroupsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConfigurationPolicyGroupsClientImpl.java index 68567fdf130f4..3dfe1f1b603c0 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConfigurationPolicyGroupsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConfigurationPolicyGroupsClientImpl.java @@ -34,10 +34,11 @@ import com.azure.resourcemanager.network.fluent.ConfigurationPolicyGroupsClient; import com.azure.resourcemanager.network.fluent.models.VpnServerConfigurationPolicyGroupInner; import com.azure.resourcemanager.network.models.ListVpnServerConfigurationPolicyGroupsResult; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in ConfigurationPolicyGroupsClient. */ @@ -54,7 +55,7 @@ public final class ConfigurationPolicyGroupsClientImpl implements ConfigurationP /** * Initializes an instance of ConfigurationPolicyGroupsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ ConfigurationPolicyGroupsClientImpl(NetworkManagementClientImpl client) { @@ -126,7 +127,7 @@ Mono> listByVpnServerConf /** * 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. @@ -168,7 +169,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { vpnServerConfigurationPolicyGroupParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -179,7 +180,7 @@ public Mono>> createOrUpdateWithResponseAsync(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. @@ -222,7 +223,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { vpnServerConfigurationPolicyGroupParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -232,7 +233,7 @@ 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. @@ -257,7 +258,7 @@ 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. @@ -285,7 +286,7 @@ 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. @@ -301,13 +302,15 @@ private Mono>> createOrUpdateWithResponseAsync(String beginCreateOrUpdate(String resourceGroupName, String vpnServerConfigurationName, String configurationPolicyGroupName, VpnServerConfigurationPolicyGroupInner vpnServerConfigurationPolicyGroupParameters) { - return this.beginCreateOrUpdateAsync(resourceGroupName, vpnServerConfigurationName, - configurationPolicyGroupName, vpnServerConfigurationPolicyGroupParameters).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, vpnServerConfigurationName, configurationPolicyGroupName, + vpnServerConfigurationPolicyGroupParameters) + .getSyncPoller(); } /** * 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. @@ -324,13 +327,15 @@ private Mono>> createOrUpdateWithResponseAsync(String beginCreateOrUpdate(String resourceGroupName, String vpnServerConfigurationName, String configurationPolicyGroupName, VpnServerConfigurationPolicyGroupInner vpnServerConfigurationPolicyGroupParameters, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, vpnServerConfigurationName, - configurationPolicyGroupName, vpnServerConfigurationPolicyGroupParameters, context).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, vpnServerConfigurationName, configurationPolicyGroupName, + vpnServerConfigurationPolicyGroupParameters, context) + .getSyncPoller(); } /** * 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. @@ -351,7 +356,7 @@ 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. @@ -373,7 +378,7 @@ 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. @@ -394,7 +399,7 @@ 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. @@ -416,7 +421,7 @@ 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. @@ -448,7 +453,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter configurationPolicyGroupName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -459,7 +464,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * 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. @@ -492,7 +497,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter configurationPolicyGroupName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -501,7 +506,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * 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. @@ -521,7 +526,7 @@ 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. @@ -543,7 +548,7 @@ 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. @@ -561,7 +566,7 @@ 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. @@ -581,7 +586,7 @@ 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. @@ -599,7 +604,7 @@ 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. @@ -613,12 +618,13 @@ public Mono deleteAsync(String resourceGroupName, String vpnServerConfigur private Mono deleteAsync(String resourceGroupName, String vpnServerConfigurationName, String configurationPolicyGroupName, Context context) { return beginDeleteAsync(resourceGroupName, vpnServerConfigurationName, configurationPolicyGroupName, context) - .last().flatMap(this.client::getLroFinalResultOrError); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** * 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. @@ -634,7 +640,7 @@ 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. @@ -651,7 +657,7 @@ public void delete(String resourceGroupName, String vpnServerConfigurationName, /** * 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. @@ -684,7 +690,7 @@ public Mono> getWithResponseAsy return Mono.error( new IllegalArgumentException("Parameter configurationPolicyGroupName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -695,7 +701,7 @@ public Mono> getWithResponseAsy /** * 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. @@ -729,7 +735,7 @@ private Mono> getWithResponseAs return Mono.error( new IllegalArgumentException("Parameter configurationPolicyGroupName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -738,7 +744,7 @@ private Mono> getWithResponseAs /** * 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. @@ -756,7 +762,7 @@ public Mono getAsync(String resourceGrou /** * 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. @@ -775,7 +781,7 @@ public Response getWithResponse(String r /** * 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. @@ -793,7 +799,7 @@ 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -821,7 +827,7 @@ public VpnServerConfigurationPolicyGroupInner get(String resourceGroupName, Stri return Mono.error( new IllegalArgumentException("Parameter vpnServerConfigurationName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByVpnServerConfiguration(this.client.getEndpoint(), @@ -834,7 +840,7 @@ 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 context The context to associate with this operation. @@ -863,7 +869,7 @@ private Mono> listByVpnSer return Mono.error( new IllegalArgumentException("Parameter vpnServerConfigurationName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -875,7 +881,7 @@ 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -894,7 +900,7 @@ 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 context The context to associate with this operation. @@ -914,7 +920,7 @@ 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -931,7 +937,7 @@ 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 context The context to associate with this operation. @@ -950,9 +956,9 @@ public PagedIterable listByVpnServerConf /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -980,9 +986,9 @@ public PagedIterable listByVpnServerConf /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConnectionMonitorsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConnectionMonitorsClientImpl.java index fe87a6e88f4f2..1758ab1706029 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConnectionMonitorsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConnectionMonitorsClientImpl.java @@ -39,10 +39,11 @@ import com.azure.resourcemanager.network.fluent.models.ConnectionMonitorResultInner; import com.azure.resourcemanager.network.models.ConnectionMonitorListResult; import com.azure.resourcemanager.network.models.TagsObject; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in ConnectionMonitorsClient. */ @@ -59,7 +60,7 @@ public final class ConnectionMonitorsClientImpl implements ConnectionMonitorsCli /** * Initializes an instance of ConnectionMonitorsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ ConnectionMonitorsClientImpl(NetworkManagementClientImpl client) { @@ -166,7 +167,7 @@ Mono> list(@HostParam("$host") String endp /** * 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 connectionMonitorName The name of the connection monitor. @@ -206,7 +207,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -217,7 +218,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r /** * 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 connectionMonitorName The name of the connection monitor. @@ -259,7 +260,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, networkWatcherName, @@ -268,7 +269,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * 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 connectionMonitorName The name of the connection monitor. @@ -292,7 +293,7 @@ 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 connectionMonitorName The name of the connection monitor. @@ -316,7 +317,7 @@ 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 connectionMonitorName The name of the connection monitor. @@ -342,7 +343,7 @@ 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 connectionMonitorName The name of the connection monitor. @@ -364,7 +365,7 @@ 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 connectionMonitorName The name of the connection monitor. @@ -380,13 +381,15 @@ public SyncPoller, ConnectionMonitorRes public SyncPoller, ConnectionMonitorResultInner> beginCreateOrUpdate( String resourceGroupName, String networkWatcherName, String connectionMonitorName, ConnectionMonitorInner parameters, String migrate, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, networkWatcherName, connectionMonitorName, parameters, - migrate, context).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, networkWatcherName, connectionMonitorName, parameters, migrate, + context) + .getSyncPoller(); } /** * 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 connectionMonitorName The name of the connection monitor. @@ -406,7 +409,7 @@ 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 connectionMonitorName The name of the connection monitor. @@ -426,7 +429,7 @@ 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 connectionMonitorName The name of the connection monitor. @@ -447,7 +450,7 @@ 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 connectionMonitorName The name of the connection monitor. @@ -467,7 +470,7 @@ 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 connectionMonitorName The name of the connection monitor. @@ -488,7 +491,7 @@ public ConnectionMonitorResultInner createOrUpdate(String resourceGroupName, Str /** * Gets a connection monitor by name. - * + * * @param resourceGroupName The name of the resource group containing Network Watcher. * @param networkWatcherName The name of the Network Watcher resource. * @param connectionMonitorName The name of the connection monitor. @@ -520,7 +523,7 @@ public Mono> getWithResponseAsync(String return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, networkWatcherName, @@ -530,7 +533,7 @@ public Mono> getWithResponseAsync(String /** * Gets a connection monitor by name. - * + * * @param resourceGroupName The name of the resource group containing Network Watcher. * @param networkWatcherName The name of the Network Watcher resource. * @param connectionMonitorName The name of the connection monitor. @@ -563,7 +566,7 @@ private Mono> getWithResponseAsync(String return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), resourceGroupName, networkWatcherName, connectionMonitorName, @@ -572,7 +575,7 @@ private Mono> getWithResponseAsync(String /** * Gets a connection monitor by name. - * + * * @param resourceGroupName The name of the resource group containing Network Watcher. * @param networkWatcherName The name of the Network Watcher resource. * @param connectionMonitorName The name of the connection monitor. @@ -590,7 +593,7 @@ public Mono getAsync(String resourceGroupName, Str /** * Gets a connection monitor by name. - * + * * @param resourceGroupName The name of the resource group containing Network Watcher. * @param networkWatcherName The name of the Network Watcher resource. * @param connectionMonitorName The name of the connection monitor. @@ -608,7 +611,7 @@ public Response getWithResponse(String resourceGro /** * Gets a connection monitor by name. - * + * * @param resourceGroupName The name of the resource group containing Network Watcher. * @param networkWatcherName The name of the Network Watcher resource. * @param connectionMonitorName The name of the connection monitor. @@ -625,7 +628,7 @@ public ConnectionMonitorResultInner get(String resourceGroupName, String network /** * 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 connectionMonitorName The name of the connection monitor. @@ -657,7 +660,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, networkWatcherName, @@ -667,7 +670,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * 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 connectionMonitorName The name of the connection monitor. @@ -700,7 +703,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, networkWatcherName, connectionMonitorName, @@ -709,7 +712,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * 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 connectionMonitorName The name of the connection monitor. @@ -729,7 +732,7 @@ 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 connectionMonitorName The name of the connection monitor. @@ -751,7 +754,7 @@ 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 connectionMonitorName The name of the connection monitor. @@ -768,7 +771,7 @@ 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 connectionMonitorName The name of the connection monitor. @@ -787,7 +790,7 @@ 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 connectionMonitorName The name of the connection monitor. @@ -804,7 +807,7 @@ 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 connectionMonitorName The name of the connection monitor. @@ -823,7 +826,7 @@ 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 connectionMonitorName The name of the connection monitor. @@ -838,7 +841,7 @@ 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 connectionMonitorName The name of the connection monitor. @@ -855,7 +858,7 @@ public void delete(String resourceGroupName, String networkWatcherName, String c /** * 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. @@ -894,7 +897,7 @@ public Mono> updateTagsWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, networkWatcherName, @@ -904,7 +907,7 @@ public Mono> updateTagsWithResponseAsync( /** * 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. @@ -944,7 +947,7 @@ private Mono> updateTagsWithResponseAsync } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), resourceGroupName, networkWatcherName, @@ -953,7 +956,7 @@ private Mono> updateTagsWithResponseAsync /** * 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. @@ -972,7 +975,7 @@ public Mono updateTagsAsync(String resourceGroupNa /** * 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. @@ -992,7 +995,7 @@ public Response updateTagsWithResponse(String reso /** * 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. @@ -1011,7 +1014,7 @@ public ConnectionMonitorResultInner updateTags(String resourceGroupName, String /** * 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 connectionMonitorName The name of the connection monitor. @@ -1043,7 +1046,7 @@ public Mono>> stopWithResponseAsync(String resourceGro return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.stop(this.client.getEndpoint(), resourceGroupName, networkWatcherName, @@ -1053,7 +1056,7 @@ public Mono>> stopWithResponseAsync(String resourceGro /** * 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 connectionMonitorName The name of the connection monitor. @@ -1086,7 +1089,7 @@ private Mono>> stopWithResponseAsync(String resourceGr return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.stop(this.client.getEndpoint(), resourceGroupName, networkWatcherName, connectionMonitorName, @@ -1095,7 +1098,7 @@ private Mono>> stopWithResponseAsync(String resourceGr /** * 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 connectionMonitorName The name of the connection monitor. @@ -1115,7 +1118,7 @@ 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 connectionMonitorName The name of the connection monitor. @@ -1137,7 +1140,7 @@ 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 connectionMonitorName The name of the connection monitor. @@ -1154,7 +1157,7 @@ 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 connectionMonitorName The name of the connection monitor. @@ -1173,7 +1176,7 @@ 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 connectionMonitorName The name of the connection monitor. @@ -1190,7 +1193,7 @@ 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 connectionMonitorName The name of the connection monitor. @@ -1209,7 +1212,7 @@ 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 connectionMonitorName The name of the connection monitor. @@ -1224,7 +1227,7 @@ 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 connectionMonitorName The name of the connection monitor. @@ -1241,7 +1244,7 @@ public void stop(String resourceGroupName, String networkWatcherName, String con /** * Starts 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 connectionMonitorName The name of the connection monitor. @@ -1273,7 +1276,7 @@ public Mono>> startWithResponseAsync(String resourceGr return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.start(this.client.getEndpoint(), resourceGroupName, networkWatcherName, @@ -1283,7 +1286,7 @@ public Mono>> startWithResponseAsync(String resourceGr /** * Starts 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 connectionMonitorName The name of the connection monitor. @@ -1316,7 +1319,7 @@ private Mono>> startWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.start(this.client.getEndpoint(), resourceGroupName, networkWatcherName, connectionMonitorName, @@ -1325,7 +1328,7 @@ private Mono>> startWithResponseAsync(String resourceG /** * Starts 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 connectionMonitorName The name of the connection monitor. @@ -1345,7 +1348,7 @@ public PollerFlux, Void> beginStartAsync(String resourceGroupNa /** * Starts 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 connectionMonitorName The name of the connection monitor. @@ -1367,7 +1370,7 @@ private PollerFlux, Void> beginStartAsync(String resourceGroupN /** * Starts 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 connectionMonitorName The name of the connection monitor. @@ -1384,7 +1387,7 @@ public SyncPoller, Void> beginStart(String resourceGroupName, S /** * Starts 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 connectionMonitorName The name of the connection monitor. @@ -1403,7 +1406,7 @@ public SyncPoller, Void> beginStart(String resourceGroupName, S /** * Starts 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 connectionMonitorName The name of the connection monitor. @@ -1420,7 +1423,7 @@ public Mono startAsync(String resourceGroupName, String networkWatcherName /** * Starts 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 connectionMonitorName The name of the connection monitor. @@ -1439,7 +1442,7 @@ private Mono startAsync(String resourceGroupName, String networkWatcherNam /** * Starts 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 connectionMonitorName The name of the connection monitor. @@ -1454,7 +1457,7 @@ public void start(String resourceGroupName, String networkWatcherName, String co /** * Starts 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 connectionMonitorName The name of the connection monitor. @@ -1471,7 +1474,7 @@ public void start(String resourceGroupName, String networkWatcherName, String co /** * Query a snapshot of the most recent connection states. - * + * * @param resourceGroupName The name of the resource group containing Network Watcher. * @param networkWatcherName The name of the Network Watcher resource. * @param connectionMonitorName The name given to the connection monitor. @@ -1503,7 +1506,7 @@ public Mono>> queryWithResponseAsync(String resourceGr return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.query(this.client.getEndpoint(), resourceGroupName, networkWatcherName, @@ -1513,7 +1516,7 @@ public Mono>> queryWithResponseAsync(String resourceGr /** * Query a snapshot of the most recent connection states. - * + * * @param resourceGroupName The name of the resource group containing Network Watcher. * @param networkWatcherName The name of the Network Watcher resource. * @param connectionMonitorName The name given to the connection monitor. @@ -1546,7 +1549,7 @@ private Mono>> queryWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.query(this.client.getEndpoint(), resourceGroupName, networkWatcherName, connectionMonitorName, @@ -1555,7 +1558,7 @@ private Mono>> queryWithResponseAsync(String resourceG /** * Query a snapshot of the most recent connection states. - * + * * @param resourceGroupName The name of the resource group containing Network Watcher. * @param networkWatcherName The name of the Network Watcher resource. * @param connectionMonitorName The name given to the connection monitor. @@ -1576,7 +1579,7 @@ private Mono>> queryWithResponseAsync(String resourceG /** * Query a snapshot of the most recent connection states. - * + * * @param resourceGroupName The name of the resource group containing Network Watcher. * @param networkWatcherName The name of the Network Watcher resource. * @param connectionMonitorName The name given to the connection monitor. @@ -1600,7 +1603,7 @@ private Mono>> queryWithResponseAsync(String resourceG /** * Query a snapshot of the most recent connection states. - * + * * @param resourceGroupName The name of the resource group containing Network Watcher. * @param networkWatcherName The name of the Network Watcher resource. * @param connectionMonitorName The name given to the connection monitor. @@ -1617,7 +1620,7 @@ private Mono>> queryWithResponseAsync(String resourceG /** * Query a snapshot of the most recent connection states. - * + * * @param resourceGroupName The name of the resource group containing Network Watcher. * @param networkWatcherName The name of the Network Watcher resource. * @param connectionMonitorName The name given to the connection monitor. @@ -1636,7 +1639,7 @@ private Mono>> queryWithResponseAsync(String resourceG /** * Query a snapshot of the most recent connection states. - * + * * @param resourceGroupName The name of the resource group containing Network Watcher. * @param networkWatcherName The name of the Network Watcher resource. * @param connectionMonitorName The name given to the connection monitor. @@ -1654,7 +1657,7 @@ public Mono queryAsync(String resourceGroupNa /** * Query a snapshot of the most recent connection states. - * + * * @param resourceGroupName The name of the resource group containing Network Watcher. * @param networkWatcherName The name of the Network Watcher resource. * @param connectionMonitorName The name given to the connection monitor. @@ -1673,7 +1676,7 @@ private Mono queryAsync(String resourceGroupN /** * Query a snapshot of the most recent connection states. - * + * * @param resourceGroupName The name of the resource group containing Network Watcher. * @param networkWatcherName The name of the Network Watcher resource. * @param connectionMonitorName The name given to the connection monitor. @@ -1690,7 +1693,7 @@ public ConnectionMonitorQueryResultInner query(String resourceGroupName, String /** * Query a snapshot of the most recent connection states. - * + * * @param resourceGroupName The name of the resource group containing Network Watcher. * @param networkWatcherName The name of the Network Watcher resource. * @param connectionMonitorName The name given to the connection monitor. @@ -1708,7 +1711,7 @@ public ConnectionMonitorQueryResultInner query(String resourceGroupName, String /** * 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. @@ -1735,7 +1738,7 @@ private Mono> listSinglePageAsync(St return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, networkWatcherName, @@ -1747,7 +1750,7 @@ private Mono> listSinglePageAsync(St /** * 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. @@ -1775,7 +1778,7 @@ private Mono> listSinglePageAsync(St return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1787,7 +1790,7 @@ private Mono> listSinglePageAsync(St /** * 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. @@ -1802,7 +1805,7 @@ public PagedFlux listAsync(String resourceGroupNam /** * 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. @@ -1819,7 +1822,7 @@ private PagedFlux listAsync(String resourceGroupNa /** * 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. @@ -1834,7 +1837,7 @@ public PagedIterable list(String resourceGroupName /** * 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. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConnectivityConfigurationsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConnectivityConfigurationsClientImpl.java index a93993f836dce..85f1c0484f3b8 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConnectivityConfigurationsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ConnectivityConfigurationsClientImpl.java @@ -34,10 +34,11 @@ import com.azure.resourcemanager.network.fluent.ConnectivityConfigurationsClient; import com.azure.resourcemanager.network.fluent.models.ConnectivityConfigurationInner; import com.azure.resourcemanager.network.models.ConnectivityConfigurationListResult; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in ConnectivityConfigurationsClient. */ @@ -54,7 +55,7 @@ public final class ConnectivityConfigurationsClientImpl implements ConnectivityC /** * Initializes an instance of ConnectivityConfigurationsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ ConnectivityConfigurationsClientImpl(NetworkManagementClientImpl client) { @@ -126,7 +127,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 networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. @@ -159,7 +160,7 @@ public Mono> getWithResponseAsync(Strin return Mono .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -170,7 +171,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 networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. @@ -204,7 +205,7 @@ private Mono> getWithResponseAsync(Stri return Mono .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -214,7 +215,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 networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. @@ -234,7 +235,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 networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. @@ -254,7 +255,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 networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. @@ -272,7 +273,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 networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. @@ -313,7 +314,7 @@ public Mono> createOrUpdateWithResponse } else { connectivityConfiguration.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, @@ -324,7 +325,7 @@ public Mono> createOrUpdateWithResponse /** * Creates/Updates a new network manager connectivity configuration. - * + * * @param resourceGroupName The name of the resource group. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. @@ -367,7 +368,7 @@ private Mono> createOrUpdateWithRespons } else { connectivityConfiguration.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -376,7 +377,7 @@ private Mono> createOrUpdateWithRespons /** * Creates/Updates a new network manager connectivity configuration. - * + * * @param resourceGroupName The name of the resource group. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. @@ -396,7 +397,7 @@ public Mono createOrUpdateAsync(String resourceG /** * Creates/Updates a new network manager connectivity configuration. - * + * * @param resourceGroupName The name of the resource group. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. @@ -418,7 +419,7 @@ public Response createOrUpdateWithResponse(Strin /** * Creates/Updates a new network manager connectivity configuration. - * + * * @param resourceGroupName The name of the resource group. * @param networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. @@ -439,7 +440,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 networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. @@ -473,7 +474,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -485,7 +486,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 networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. @@ -520,7 +521,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -530,7 +531,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * 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 networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. @@ -553,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 networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. @@ -575,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 networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. @@ -600,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 networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. @@ -619,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 networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. @@ -641,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 networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. @@ -662,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 networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. @@ -681,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 networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. @@ -703,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 networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. @@ -720,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 networkManagerName The name of the network manager. * @param configurationName The name of the network manager connectivity configuration. @@ -739,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 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 @@ -772,7 +773,7 @@ private Mono> listSinglePageAsync( return Mono .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -784,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 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 @@ -818,7 +819,7 @@ private Mono> listSinglePageAsync( return Mono .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -830,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 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 @@ -853,7 +854,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 networkManagerName The name of the network manager. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -872,7 +873,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 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 @@ -897,7 +898,7 @@ 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 networkManagerName The name of the network manager. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -915,7 +916,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 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 @@ -938,9 +939,9 @@ public PagedIterable list(String resourceGroupNa /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -966,9 +967,9 @@ private Mono> listNextSinglePageAs /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/CustomIpPrefixesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/CustomIpPrefixesClientImpl.java index 950cca6655ee0..d6e23ef02e10f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/CustomIpPrefixesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/CustomIpPrefixesClientImpl.java @@ -39,10 +39,11 @@ import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in CustomIpPrefixesClient. */ @@ -60,7 +61,7 @@ public final class CustomIpPrefixesClientImpl implements InnerSupportsGet> listNext( /** * 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. @@ -178,7 +179,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, customIpPrefixName, @@ -188,7 +189,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * 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. @@ -216,7 +217,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, customIpPrefixName, apiVersion, @@ -225,7 +226,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * 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. @@ -242,7 +243,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * 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. @@ -262,7 +263,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * 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. @@ -277,7 +278,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -294,7 +295,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -310,7 +311,7 @@ public Mono deleteAsync(String resourceGroupName, String customIpPrefixNam /** * 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. @@ -327,7 +328,7 @@ private Mono deleteAsync(String resourceGroupName, String customIpPrefixNa /** * 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. @@ -341,7 +342,7 @@ public 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. @@ -356,7 +357,7 @@ public void delete(String resourceGroupName, String customIpPrefixName, Context /** * Gets the specified custom IP prefix in a specified resource group. - * + * * @param resourceGroupName The name of the resource group. * @param customIpPrefixName The name of the custom IP prefix. * @param expand Expands referenced resources. @@ -385,7 +386,7 @@ public Mono> getByResourceGroupWithResponseAsync(S return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -395,7 +396,7 @@ public Mono> getByResourceGroupWithResponseAsync(S /** * Gets the specified custom IP prefix in a specified resource group. - * + * * @param resourceGroupName The name of the resource group. * @param customIpPrefixName The name of the custom IP prefix. * @param expand Expands referenced resources. @@ -425,7 +426,7 @@ private Mono> getByResourceGroupWithResponseAsync( return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, customIpPrefixName, apiVersion, @@ -434,7 +435,7 @@ private Mono> getByResourceGroupWithResponseAsync( /** * Gets the specified custom IP prefix in a specified resource group. - * + * * @param resourceGroupName The name of the resource group. * @param customIpPrefixName The name of the custom IP prefix. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -451,7 +452,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 customIpPrefixName The name of the custom IP prefix. * @param expand Expands referenced resources. @@ -469,7 +470,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 customIpPrefixName The name of the custom IP prefix. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -485,7 +486,7 @@ public CustomIpPrefixInner getByResourceGroup(String resourceGroupName, String c /** * Creates or updates a custom IP prefix. - * + * * @param resourceGroupName The name of the resource group. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to the create or update custom IP prefix operation. @@ -518,7 +519,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -528,7 +529,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r /** * Creates or updates a custom IP prefix. - * + * * @param resourceGroupName The name of the resource group. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to the create or update custom IP prefix operation. @@ -562,7 +563,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, customIpPrefixName, apiVersion, @@ -571,7 +572,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a custom IP prefix. - * + * * @param resourceGroupName The name of the resource group. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to the create or update custom IP prefix operation. @@ -591,7 +592,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a custom IP prefix. - * + * * @param resourceGroupName The name of the resource group. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to the create or update custom IP prefix operation. @@ -613,7 +614,7 @@ private PollerFlux, CustomIpPrefixInner> beginCr /** * Creates or updates a custom IP prefix. - * + * * @param resourceGroupName The name of the resource group. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to the create or update custom IP prefix operation. @@ -630,7 +631,7 @@ private PollerFlux, CustomIpPrefixInner> beginCr /** * Creates or updates a custom IP prefix. - * + * * @param resourceGroupName The name of the resource group. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to the create or update custom IP prefix operation. @@ -649,7 +650,7 @@ public SyncPoller, CustomIpPrefixInner> beginCre /** * Creates or updates a custom IP prefix. - * + * * @param resourceGroupName The name of the resource group. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to the create or update custom IP prefix operation. @@ -667,7 +668,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, S /** * Creates or updates a custom IP prefix. - * + * * @param resourceGroupName The name of the resource group. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to the create or update custom IP prefix operation. @@ -686,7 +687,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, /** * Creates or updates a custom IP prefix. - * + * * @param resourceGroupName The name of the resource group. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to the create or update custom IP prefix operation. @@ -703,7 +704,7 @@ public CustomIpPrefixInner createOrUpdate(String resourceGroupName, String custo /** * Creates or updates a custom IP prefix. - * + * * @param resourceGroupName The name of the resource group. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to the create or update custom IP prefix operation. @@ -721,7 +722,7 @@ public CustomIpPrefixInner createOrUpdate(String resourceGroupName, String custo /** * Updates custom IP prefix tags. - * + * * @param resourceGroupName The name of the resource group. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to update custom IP prefix tags. @@ -754,7 +755,7 @@ public Mono> updateTagsWithResponseAsync(String re } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, customIpPrefixName, @@ -764,7 +765,7 @@ public Mono> updateTagsWithResponseAsync(String re /** * Updates custom IP prefix tags. - * + * * @param resourceGroupName The name of the resource group. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to update custom IP prefix tags. @@ -798,7 +799,7 @@ private Mono> updateTagsWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), resourceGroupName, customIpPrefixName, apiVersion, @@ -807,7 +808,7 @@ private Mono> updateTagsWithResponseAsync(String r /** * Updates custom IP prefix tags. - * + * * @param resourceGroupName The name of the resource group. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to update custom IP prefix tags. @@ -825,7 +826,7 @@ public Mono updateTagsAsync(String resourceGroupName, Strin /** * Updates custom IP prefix tags. - * + * * @param resourceGroupName The name of the resource group. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to update custom IP prefix tags. @@ -843,7 +844,7 @@ public Response updateTagsWithResponse(String resourceGroup /** * Updates custom IP prefix tags. - * + * * @param resourceGroupName The name of the resource group. * @param customIpPrefixName The name of the custom IP prefix. * @param parameters Parameters supplied to update custom IP prefix tags. @@ -859,7 +860,7 @@ public CustomIpPrefixInner updateTags(String resourceGroupName, String customIpP /** * 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 @@ -875,7 +876,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -887,7 +888,7 @@ private Mono> listSinglePageAsync() { /** * 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. @@ -905,7 +906,7 @@ private Mono> listSinglePageAsync(Context con return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) @@ -915,7 +916,7 @@ private Mono> listSinglePageAsync(Context con /** * 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}. @@ -927,7 +928,7 @@ public PagedFlux 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. @@ -942,7 +943,7 @@ private PagedFlux listAsync(Context 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}. @@ -954,7 +955,7 @@ public 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 ManagementException thrown if the request is rejected by server. @@ -968,7 +969,7 @@ public PagedIterable list(Context context) { /** * Gets all custom IP prefixes 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. @@ -990,7 +991,7 @@ private Mono> listByResourceGroupSinglePageAs return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -1002,7 +1003,7 @@ private Mono> listByResourceGroupSinglePageAs /** * Gets all custom IP prefixes 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. @@ -1026,7 +1027,7 @@ private Mono> listByResourceGroupSinglePageAs return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1038,7 +1039,7 @@ private Mono> listByResourceGroupSinglePageAs /** * Gets all custom IP prefixes 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. @@ -1053,7 +1054,7 @@ public PagedFlux listByResourceGroupAsync(String resourceGr /** * Gets all custom IP prefixes 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. @@ -1069,7 +1070,7 @@ private PagedFlux listByResourceGroupAsync(String resourceG /** * Gets all custom IP prefixes 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. @@ -1083,7 +1084,7 @@ public PagedIterable listByResourceGroup(String resourceGro /** * Gets all custom IP prefixes 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. @@ -1098,9 +1099,9 @@ public PagedIterable listByResourceGroup(String resourceGro /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1127,9 +1128,9 @@ private Mono> listAllNextSinglePageAsync(Stri /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1156,9 +1157,9 @@ private Mono> listAllNextSinglePageAsync(Stri /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1184,9 +1185,9 @@ private Mono> listNextSinglePageAsync(String /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/DdosCustomPoliciesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/DdosCustomPoliciesClientImpl.java index 544373c6add6c..56db385590c1f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/DdosCustomPoliciesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/DdosCustomPoliciesClientImpl.java @@ -33,10 +33,11 @@ import com.azure.resourcemanager.network.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in DdosCustomPoliciesClient. */ @@ -54,7 +55,7 @@ public final class DdosCustomPoliciesClientImpl /** * Initializes an instance of DdosCustomPoliciesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ DdosCustomPoliciesClientImpl(NetworkManagementClientImpl client) { @@ -115,7 +116,7 @@ Mono> updateTags(@HostParam("$host") String endp /** * 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. @@ -142,7 +143,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, ddosCustomPolicyName, @@ -152,7 +153,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * 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. @@ -180,7 +181,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, ddosCustomPolicyName, apiVersion, @@ -189,7 +190,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * 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. @@ -206,7 +207,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * 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. @@ -227,7 +228,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * 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. @@ -242,7 +243,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -259,7 +260,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -275,7 +276,7 @@ public Mono deleteAsync(String resourceGroupName, String ddosCustomPolicyN /** * 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. @@ -292,7 +293,7 @@ private Mono deleteAsync(String resourceGroupName, String ddosCustomPolicy /** * 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. @@ -306,7 +307,7 @@ public 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. @@ -321,7 +322,7 @@ public void delete(String resourceGroupName, String ddosCustomPolicyName, Contex /** * Gets information about 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. @@ -349,7 +350,7 @@ public Mono> getByResourceGroupWithResponseAsync return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -359,7 +360,7 @@ public Mono> getByResourceGroupWithResponseAsync /** * Gets information about 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. @@ -388,7 +389,7 @@ private Mono> getByResourceGroupWithResponseAsyn return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, ddosCustomPolicyName, @@ -397,7 +398,7 @@ private Mono> getByResourceGroupWithResponseAsyn /** * Gets information about 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. @@ -413,7 +414,7 @@ public Mono getByResourceGroupAsync(String resourceGroupN /** * Gets information about 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. @@ -430,7 +431,7 @@ public Response getByResourceGroupWithResponse(String res /** * Gets information about 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. @@ -445,7 +446,7 @@ public DdosCustomPolicyInner getByResourceGroup(String resourceGroupName, String /** * Creates or updates a DDoS custom policy. - * + * * @param resourceGroupName The name of the resource group. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to the create or update operation. @@ -479,7 +480,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -489,7 +490,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r /** * Creates or updates a DDoS custom policy. - * + * * @param resourceGroupName The name of the resource group. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to the create or update operation. @@ -524,7 +525,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, ddosCustomPolicyName, apiVersion, @@ -533,7 +534,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a DDoS custom policy. - * + * * @param resourceGroupName The name of the resource group. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to the create or update operation. @@ -554,7 +555,7 @@ public PollerFlux, DdosCustomPolicyInner> begi /** * Creates or updates a DDoS custom policy. - * + * * @param resourceGroupName The name of the resource group. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to the create or update operation. @@ -576,7 +577,7 @@ private PollerFlux, DdosCustomPolicyInner> beg /** * Creates or updates a DDoS custom policy. - * + * * @param resourceGroupName The name of the resource group. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to the create or update operation. @@ -593,7 +594,7 @@ private PollerFlux, DdosCustomPolicyInner> beg /** * Creates or updates a DDoS custom policy. - * + * * @param resourceGroupName The name of the resource group. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to the create or update operation. @@ -612,7 +613,7 @@ public SyncPoller, DdosCustomPolicyInner> begi /** * Creates or updates a DDoS custom policy. - * + * * @param resourceGroupName The name of the resource group. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to the create or update operation. @@ -630,7 +631,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, /** * Creates or updates a DDoS custom policy. - * + * * @param resourceGroupName The name of the resource group. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to the create or update operation. @@ -649,7 +650,7 @@ private Mono createOrUpdateAsync(String resourceGroupName /** * Creates or updates a DDoS custom policy. - * + * * @param resourceGroupName The name of the resource group. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to the create or update operation. @@ -666,7 +667,7 @@ public DdosCustomPolicyInner createOrUpdate(String resourceGroupName, String ddo /** * Creates or updates a DDoS custom policy. - * + * * @param resourceGroupName The name of the resource group. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to the create or update operation. @@ -684,7 +685,7 @@ public DdosCustomPolicyInner createOrUpdate(String resourceGroupName, String ddo /** * Update a DDoS custom policy tags. - * + * * @param resourceGroupName The name of the resource group. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to update DDoS custom policy resource tags. @@ -718,7 +719,7 @@ public Mono> updateTagsWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, @@ -728,7 +729,7 @@ public Mono> updateTagsWithResponseAsync(String /** * Update a DDoS custom policy tags. - * + * * @param resourceGroupName The name of the resource group. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to update DDoS custom policy resource tags. @@ -763,7 +764,7 @@ private Mono> updateTagsWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), resourceGroupName, ddosCustomPolicyName, apiVersion, @@ -772,7 +773,7 @@ private Mono> updateTagsWithResponseAsync(String /** * Update a DDoS custom policy tags. - * + * * @param resourceGroupName The name of the resource group. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to update DDoS custom policy resource tags. @@ -790,7 +791,7 @@ public Mono updateTagsAsync(String resourceGroupName, Str /** * Update a DDoS custom policy tags. - * + * * @param resourceGroupName The name of the resource group. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to update DDoS custom policy resource tags. @@ -808,7 +809,7 @@ public Response updateTagsWithResponse(String resourceGro /** * Update a DDoS custom policy tags. - * + * * @param resourceGroupName The name of the resource group. * @param ddosCustomPolicyName The name of the DDoS custom policy. * @param parameters Parameters supplied to update DDoS custom policy resource tags. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/DdosProtectionPlansClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/DdosProtectionPlansClientImpl.java index 6ade372ae1dc1..a0bb5e7eed854 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/DdosProtectionPlansClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/DdosProtectionPlansClientImpl.java @@ -39,10 +39,11 @@ import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in DdosProtectionPlansClient. */ @@ -60,7 +61,7 @@ public final class DdosProtectionPlansClientImpl implements InnerSupportsGet> listByResourceGroupNext( /** * 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. @@ -180,7 +181,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, ddosProtectionPlanName, @@ -190,7 +191,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * 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. @@ -218,7 +219,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, ddosProtectionPlanName, apiVersion, @@ -227,7 +228,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * 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. @@ -245,7 +246,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * 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. @@ -266,7 +267,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * 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. @@ -281,7 +282,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -298,7 +299,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -314,7 +315,7 @@ public Mono deleteAsync(String resourceGroupName, String ddosProtectionPla /** * 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. @@ -331,7 +332,7 @@ private Mono deleteAsync(String resourceGroupName, String ddosProtectionPl /** * 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. @@ -345,7 +346,7 @@ public 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. @@ -360,7 +361,7 @@ public void delete(String resourceGroupName, String ddosProtectionPlanName, Cont /** * 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. @@ -388,7 +389,7 @@ public Mono> getByResourceGroupWithResponseAsy return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -398,7 +399,7 @@ public Mono> getByResourceGroupWithResponseAsy /** * 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. * @param context The context to associate with this operation. @@ -427,7 +428,7 @@ private Mono> getByResourceGroupWithResponseAs return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, ddosProtectionPlanName, @@ -436,7 +437,7 @@ private Mono> getByResourceGroupWithResponseAs /** * 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. @@ -453,7 +454,7 @@ public Mono getByResourceGroupAsync(String resourceGrou /** * 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. * @param context The context to associate with this operation. @@ -470,7 +471,7 @@ public Response getByResourceGroupWithResponse(String r /** * 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. @@ -485,7 +486,7 @@ public DdosProtectionPlanInner getByResourceGroup(String resourceGroupName, Stri /** * Creates or updates a DDoS protection plan. - * + * * @param resourceGroupName The name of the resource group. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the create or update operation. @@ -519,7 +520,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -529,7 +530,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r /** * Creates or updates a DDoS protection plan. - * + * * @param resourceGroupName The name of the resource group. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the create or update operation. @@ -564,7 +565,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, ddosProtectionPlanName, apiVersion, @@ -573,7 +574,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a DDoS protection plan. - * + * * @param resourceGroupName The name of the resource group. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the create or update operation. @@ -594,7 +595,7 @@ public PollerFlux, DdosProtectionPlanInner> /** * Creates or updates a DDoS protection plan. - * + * * @param resourceGroupName The name of the resource group. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the create or update operation. @@ -616,7 +617,7 @@ private PollerFlux, DdosProtectionPlanInner> /** * Creates or updates a DDoS protection plan. - * + * * @param resourceGroupName The name of the resource group. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the create or update operation. @@ -633,7 +634,7 @@ public SyncPoller, DdosProtectionPlanInner> /** * Creates or updates a DDoS protection plan. - * + * * @param resourceGroupName The name of the resource group. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the create or update operation. @@ -652,7 +653,7 @@ public SyncPoller, DdosProtectionPlanInner> /** * Creates or updates a DDoS protection plan. - * + * * @param resourceGroupName The name of the resource group. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the create or update operation. @@ -670,7 +671,7 @@ public Mono createOrUpdateAsync(String resourceGroupNam /** * Creates or updates a DDoS protection plan. - * + * * @param resourceGroupName The name of the resource group. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the create or update operation. @@ -689,7 +690,7 @@ private Mono createOrUpdateAsync(String resourceGroupNa /** * Creates or updates a DDoS protection plan. - * + * * @param resourceGroupName The name of the resource group. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the create or update operation. @@ -706,7 +707,7 @@ public DdosProtectionPlanInner createOrUpdate(String resourceGroupName, String d /** * Creates or updates a DDoS protection plan. - * + * * @param resourceGroupName The name of the resource group. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the create or update operation. @@ -724,7 +725,7 @@ public DdosProtectionPlanInner createOrUpdate(String resourceGroupName, String d /** * Update a DDoS protection plan tags. - * + * * @param resourceGroupName The name of the resource group. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the update DDoS protection plan resource tags. @@ -758,7 +759,7 @@ public Mono> updateTagsWithResponseAsync(Strin } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, @@ -768,7 +769,7 @@ public Mono> updateTagsWithResponseAsync(Strin /** * Update a DDoS protection plan tags. - * + * * @param resourceGroupName The name of the resource group. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the update DDoS protection plan resource tags. @@ -803,7 +804,7 @@ private Mono> updateTagsWithResponseAsync(Stri } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), resourceGroupName, ddosProtectionPlanName, apiVersion, @@ -812,7 +813,7 @@ private Mono> updateTagsWithResponseAsync(Stri /** * Update a DDoS protection plan tags. - * + * * @param resourceGroupName The name of the resource group. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the update DDoS protection plan resource tags. @@ -830,7 +831,7 @@ public Mono updateTagsAsync(String resourceGroupName, S /** * Update a DDoS protection plan tags. - * + * * @param resourceGroupName The name of the resource group. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the update DDoS protection plan resource tags. @@ -848,7 +849,7 @@ public Response updateTagsWithResponse(String resourceG /** * Update a DDoS protection plan tags. - * + * * @param resourceGroupName The name of the resource group. * @param ddosProtectionPlanName The name of the DDoS protection plan. * @param parameters Parameters supplied to the update DDoS protection plan resource tags. @@ -865,7 +866,7 @@ public DdosProtectionPlanInner updateTags(String resourceGroupName, String ddosP /** * Gets all DDoS protection plans 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 DDoS protection plans in a subscription along with {@link PagedResponse} on successful completion of @@ -881,7 +882,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -893,7 +894,7 @@ private Mono> listSinglePageAsync() { /** * 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 ManagementException thrown if the request is rejected by server. @@ -911,7 +912,7 @@ private Mono> listSinglePageAsync(Context return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) @@ -921,7 +922,7 @@ private Mono> listSinglePageAsync(Context /** * Gets all DDoS protection plans 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 DDoS protection plans in a subscription as paginated response with {@link PagedFlux}. @@ -933,7 +934,7 @@ public PagedFlux listAsync() { /** * 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 ManagementException thrown if the request is rejected by server. @@ -948,7 +949,7 @@ private PagedFlux listAsync(Context context) { /** * Gets all DDoS protection plans 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 DDoS protection plans in a subscription as paginated response with {@link PagedIterable}. @@ -960,7 +961,7 @@ public 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 ManagementException thrown if the request is rejected by server. @@ -974,7 +975,7 @@ public PagedIterable list(Context context) { /** * Gets all the DDoS protection plans 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. @@ -996,7 +997,7 @@ private Mono> listByResourceGroupSinglePa return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -1008,7 +1009,7 @@ private Mono> listByResourceGroupSinglePa /** * Gets all the DDoS protection plans 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. @@ -1032,7 +1033,7 @@ private Mono> listByResourceGroupSinglePa return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1044,7 +1045,7 @@ private Mono> listByResourceGroupSinglePa /** * Gets all the DDoS protection plans 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. @@ -1059,7 +1060,7 @@ public PagedFlux listByResourceGroupAsync(String resour /** * Gets all the DDoS protection plans 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. @@ -1075,7 +1076,7 @@ private PagedFlux listByResourceGroupAsync(String resou /** * Gets all the DDoS protection plans 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. @@ -1089,7 +1090,7 @@ public PagedIterable listByResourceGroup(String resourc /** * Gets all the DDoS protection plans 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. @@ -1104,9 +1105,9 @@ public PagedIterable listByResourceGroup(String resourc /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1132,9 +1133,9 @@ private Mono> listNextSinglePageAsync(Str /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1161,9 +1162,9 @@ private Mono> listNextSinglePageAsync(Str /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1191,9 +1192,9 @@ private Mono> listByResourceGroupNextSing /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/DefaultSecurityRulesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/DefaultSecurityRulesClientImpl.java index 2f7596317812a..e76f6bb8b12e2 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/DefaultSecurityRulesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/DefaultSecurityRulesClientImpl.java @@ -121,7 +121,7 @@ private Mono> listSinglePageAsync(String resour return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, networkSecurityGroupName, @@ -162,7 +162,7 @@ private Mono> listSinglePageAsync(String resour return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -273,7 +273,7 @@ public Mono> getWithResponseAsync(String resourceGro return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, networkSecurityGroupName, @@ -317,7 +317,7 @@ private Mono> getWithResponseAsync(String resourceGr return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), resourceGroupName, networkSecurityGroupName, diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/DscpConfigurationsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/DscpConfigurationsClientImpl.java index a0156f3c94f81..a89cca4e15cde 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/DscpConfigurationsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/DscpConfigurationsClientImpl.java @@ -37,10 +37,11 @@ import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in DscpConfigurationsClient. */ @@ -58,7 +59,7 @@ public final class DscpConfigurationsClientImpl implements InnerSupportsGet> listAllNext( /** * Creates or updates a DSCP Configuration. - * + * * @param resourceGroupName The name of the resource group. * @param dscpConfigurationName The name of the resource. * @param parameters Parameters supplied to the create or update dscp configuration operation. @@ -174,7 +175,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -184,7 +185,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r /** * Creates or updates a DSCP Configuration. - * + * * @param resourceGroupName The name of the resource group. * @param dscpConfigurationName The name of the resource. * @param parameters Parameters supplied to the create or update dscp configuration operation. @@ -219,7 +220,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, dscpConfigurationName, apiVersion, @@ -228,7 +229,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a DSCP Configuration. - * + * * @param resourceGroupName The name of the resource group. * @param dscpConfigurationName The name of the resource. * @param parameters Parameters supplied to the create or update dscp configuration operation. @@ -250,7 +251,7 @@ public PollerFlux, DscpConfigurationInner> be /** * Creates or updates a DSCP Configuration. - * + * * @param resourceGroupName The name of the resource group. * @param dscpConfigurationName The name of the resource. * @param parameters Parameters supplied to the create or update dscp configuration operation. @@ -273,7 +274,7 @@ private PollerFlux, DscpConfigurationInner> b /** * Creates or updates a DSCP Configuration. - * + * * @param resourceGroupName The name of the resource group. * @param dscpConfigurationName The name of the resource. * @param parameters Parameters supplied to the create or update dscp configuration operation. @@ -291,7 +292,7 @@ private PollerFlux, DscpConfigurationInner> b /** * Creates or updates a DSCP Configuration. - * + * * @param resourceGroupName The name of the resource group. * @param dscpConfigurationName The name of the resource. * @param parameters Parameters supplied to the create or update dscp configuration operation. @@ -311,7 +312,7 @@ public SyncPoller, DscpConfigurationInner> be /** * Creates or updates a DSCP Configuration. - * + * * @param resourceGroupName The name of the resource group. * @param dscpConfigurationName The name of the resource. * @param parameters Parameters supplied to the create or update dscp configuration operation. @@ -330,7 +331,7 @@ public Mono createOrUpdateAsync(String resourceGroupName /** * Creates or updates a DSCP Configuration. - * + * * @param resourceGroupName The name of the resource group. * @param dscpConfigurationName The name of the resource. * @param parameters Parameters supplied to the create or update dscp configuration operation. @@ -350,7 +351,7 @@ private Mono createOrUpdateAsync(String resourceGroupNam /** * Creates or updates a DSCP Configuration. - * + * * @param resourceGroupName The name of the resource group. * @param dscpConfigurationName The name of the resource. * @param parameters Parameters supplied to the create or update dscp configuration operation. @@ -367,7 +368,7 @@ public DscpConfigurationInner createOrUpdate(String resourceGroupName, String ds /** * Creates or updates a DSCP Configuration. - * + * * @param resourceGroupName The name of the resource group. * @param dscpConfigurationName The name of the resource. * @param parameters Parameters supplied to the create or update dscp configuration operation. @@ -385,7 +386,7 @@ public DscpConfigurationInner createOrUpdate(String resourceGroupName, String ds /** * Deletes 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. @@ -412,7 +413,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, dscpConfigurationName, @@ -422,7 +423,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * Deletes 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. @@ -450,7 +451,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, dscpConfigurationName, apiVersion, @@ -459,7 +460,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * Deletes 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. @@ -476,7 +477,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes 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. @@ -497,7 +498,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes 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. @@ -512,7 +513,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes 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. @@ -529,7 +530,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes 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. @@ -545,7 +546,7 @@ public Mono deleteAsync(String resourceGroupName, String dscpConfiguration /** * Deletes 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. @@ -562,7 +563,7 @@ private Mono deleteAsync(String resourceGroupName, String dscpConfiguratio /** * Deletes 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. @@ -576,7 +577,7 @@ public void delete(String resourceGroupName, String dscpConfigurationName) { /** * Deletes 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. @@ -591,7 +592,7 @@ 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -618,7 +619,7 @@ public Mono> getByResourceGroupWithResponseAsyn return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -628,7 +629,7 @@ public Mono> getByResourceGroupWithResponseAsyn /** * 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. @@ -656,7 +657,7 @@ private Mono> getByResourceGroupWithResponseAsy return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, dscpConfigurationName, @@ -665,7 +666,7 @@ private Mono> getByResourceGroupWithResponseAsy /** * 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. @@ -682,7 +683,7 @@ public Mono getByResourceGroupAsync(String resourceGroup /** * 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. @@ -699,7 +700,7 @@ public Response getByResourceGroupWithResponse(String re /** * 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. @@ -714,7 +715,7 @@ public DscpConfigurationInner getByResourceGroup(String resourceGroupName, Strin /** * 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. @@ -735,7 +736,7 @@ private Mono> listByResourceGroupSinglePag return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -747,7 +748,7 @@ private Mono> listByResourceGroupSinglePag /** * Gets a DSCP Configuration. - * + * * @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. @@ -770,7 +771,7 @@ private Mono> listByResourceGroupSinglePag return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -782,7 +783,7 @@ private Mono> listByResourceGroupSinglePag /** * 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. @@ -797,7 +798,7 @@ public PagedFlux listByResourceGroupAsync(String resourc /** * Gets a DSCP Configuration. - * + * * @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. @@ -813,7 +814,7 @@ private PagedFlux listByResourceGroupAsync(String resour /** * 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. @@ -827,7 +828,7 @@ public PagedIterable listByResourceGroup(String resource /** * Gets a DSCP Configuration. - * + * * @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. @@ -842,7 +843,7 @@ public PagedIterable listByResourceGroup(String resource /** * Gets all dscp configurations 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 dscp configurations in a subscription along with {@link PagedResponse} on successful completion of @@ -858,7 +859,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -870,7 +871,7 @@ private Mono> listSinglePageAsync() { /** * Gets all dscp configurations 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. @@ -888,7 +889,7 @@ private Mono> listSinglePageAsync(Context return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) @@ -898,7 +899,7 @@ private Mono> listSinglePageAsync(Context /** * Gets all dscp configurations 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 dscp configurations in a subscription as paginated response with {@link PagedFlux}. @@ -910,7 +911,7 @@ public PagedFlux listAsync() { /** * Gets all dscp configurations 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. @@ -925,7 +926,7 @@ private PagedFlux listAsync(Context context) { /** * Gets all dscp configurations 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 dscp configurations in a subscription as paginated response with {@link PagedIterable}. @@ -937,7 +938,7 @@ public PagedIterable list() { /** * Gets all dscp configurations 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. @@ -951,9 +952,9 @@ public PagedIterable list(Context context) { /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -979,9 +980,9 @@ private Mono> listNextSinglePageAsync(Stri /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1008,9 +1009,9 @@ private Mono> listNextSinglePageAsync(Stri /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1037,9 +1038,9 @@ private Mono> listAllNextSinglePageAsync(S /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitAuthorizationsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitAuthorizationsClientImpl.java index becb95433c0d9..b4e8551878ef9 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitAuthorizationsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitAuthorizationsClientImpl.java @@ -34,10 +34,11 @@ import com.azure.resourcemanager.network.fluent.ExpressRouteCircuitAuthorizationsClient; import com.azure.resourcemanager.network.fluent.models.ExpressRouteCircuitAuthorizationInner; import com.azure.resourcemanager.network.models.AuthorizationListResult; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in ExpressRouteCircuitAuthorizationsClient. */ @@ -54,7 +55,7 @@ public final class ExpressRouteCircuitAuthorizationsClientImpl implements Expres /** * Initializes an instance of ExpressRouteCircuitAuthorizationsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ ExpressRouteCircuitAuthorizationsClientImpl(NetworkManagementClientImpl client) { @@ -118,7 +119,7 @@ Mono> listNext(@PathParam(value = "nextLink", /** * 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. @@ -149,7 +150,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, circuitName, @@ -159,7 +160,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * 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. @@ -191,7 +192,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, circuitName, authorizationName, apiVersion, @@ -200,7 +201,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * 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. @@ -220,7 +221,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * 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. @@ -242,7 +243,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * 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. @@ -259,7 +260,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -277,7 +278,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -294,7 +295,7 @@ public Mono deleteAsync(String resourceGroupName, String circuitName, Stri /** * 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. @@ -313,7 +314,7 @@ private Mono deleteAsync(String resourceGroupName, String circuitName, Str /** * 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. @@ -328,7 +329,7 @@ public void delete(String resourceGroupName, String circuitName, String authoriz /** * 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. @@ -344,7 +345,7 @@ public void delete(String resourceGroupName, String circuitName, String authoriz /** * 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 authorizationName The name of the authorization. @@ -376,7 +377,7 @@ public Mono> getWithResponseAsyn return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, circuitName, @@ -386,7 +387,7 @@ public Mono> getWithResponseAsyn /** * 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 authorizationName The name of the authorization. @@ -419,7 +420,7 @@ private Mono> getWithResponseAsy return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), resourceGroupName, circuitName, authorizationName, apiVersion, @@ -428,7 +429,7 @@ private Mono> getWithResponseAsy /** * 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 authorizationName The name of the authorization. @@ -447,7 +448,7 @@ 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 authorizationName The name of the authorization. @@ -465,7 +466,7 @@ 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 authorizationName The name of the authorization. @@ -482,7 +483,7 @@ 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 authorizationName The name of the authorization. @@ -522,7 +523,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { authorizationParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, circuitName, @@ -533,7 +534,7 @@ public Mono>> createOrUpdateWithResponseAsync(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 authorizationName The name of the authorization. @@ -575,7 +576,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { authorizationParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, circuitName, authorizationName, @@ -584,7 +585,7 @@ 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 authorizationName The name of the authorization. @@ -608,7 +609,7 @@ 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 authorizationName The name of the authorization. @@ -634,7 +635,7 @@ 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 authorizationName The name of the authorization. @@ -655,7 +656,7 @@ 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 authorizationName The name of the authorization. @@ -671,13 +672,15 @@ private Mono>> createOrUpdateWithResponseAsync(String public SyncPoller, ExpressRouteCircuitAuthorizationInner> beginCreateOrUpdate(String resourceGroupName, String circuitName, String authorizationName, ExpressRouteCircuitAuthorizationInner authorizationParameters, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, circuitName, authorizationName, authorizationParameters, - context).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, circuitName, authorizationName, authorizationParameters, + context) + .getSyncPoller(); } /** * 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 authorizationName The name of the authorization. @@ -692,12 +695,13 @@ private Mono>> createOrUpdateWithResponseAsync(String public Mono createOrUpdateAsync(String resourceGroupName, String circuitName, String authorizationName, ExpressRouteCircuitAuthorizationInner authorizationParameters) { return beginCreateOrUpdateAsync(resourceGroupName, circuitName, authorizationName, authorizationParameters) - .last().flatMap(this.client::getLroFinalResultOrError); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** * 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 authorizationName The name of the authorization. @@ -719,7 +723,7 @@ 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 authorizationName The name of the authorization. @@ -738,7 +742,7 @@ 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 authorizationName The name of the authorization. @@ -759,7 +763,7 @@ public ExpressRouteCircuitAuthorizationInner createOrUpdate(String resourceGroup /** * Gets all authorizations in an express route circuit. - * + * * @param resourceGroupName The name of the resource group. * @param circuitName The name of the circuit. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -786,7 +790,7 @@ private Mono> listSinglePag return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, circuitName, apiVersion, @@ -798,7 +802,7 @@ 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 context The context to associate with this operation. @@ -826,7 +830,7 @@ private Mono> listSinglePag return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -838,7 +842,7 @@ 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -854,7 +858,7 @@ 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 context The context to associate with this operation. @@ -872,7 +876,7 @@ 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -887,7 +891,7 @@ 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 context The context to associate with this operation. @@ -904,9 +908,9 @@ public PagedIterable list(String resource /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -932,9 +936,9 @@ private Mono> listNextSingl /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitConnectionsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitConnectionsClientImpl.java index 1179950d3b3e1..044ee4222410b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitConnectionsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitConnectionsClientImpl.java @@ -34,10 +34,11 @@ import com.azure.resourcemanager.network.fluent.ExpressRouteCircuitConnectionsClient; import com.azure.resourcemanager.network.fluent.models.ExpressRouteCircuitConnectionInner; import com.azure.resourcemanager.network.models.ExpressRouteCircuitConnectionListResult; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in ExpressRouteCircuitConnectionsClient. */ @@ -54,7 +55,7 @@ public final class ExpressRouteCircuitConnectionsClientImpl implements ExpressRo /** * Initializes an instance of ExpressRouteCircuitConnectionsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ ExpressRouteCircuitConnectionsClientImpl(NetworkManagementClientImpl client) { @@ -121,7 +122,7 @@ Mono> listNext( /** * 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. @@ -155,7 +156,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, circuitName, @@ -165,7 +166,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * 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. @@ -200,7 +201,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, circuitName, peeringName, connectionName, @@ -209,7 +210,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * 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. @@ -230,7 +231,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * 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. @@ -253,7 +254,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * 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. @@ -271,7 +272,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -291,7 +292,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -310,7 +311,7 @@ public Mono deleteAsync(String resourceGroupName, String circuitName, Stri /** * 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. @@ -330,7 +331,7 @@ private Mono deleteAsync(String resourceGroupName, String circuitName, Str /** * 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. @@ -346,7 +347,7 @@ public void delete(String resourceGroupName, String circuitName, String peeringN /** * 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. @@ -364,7 +365,7 @@ public void delete(String resourceGroupName, String circuitName, String peeringN /** * 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 peeringName The name of the peering. @@ -399,7 +400,7 @@ public Mono> getWithResponseAsync(S return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, circuitName, peeringName, @@ -409,7 +410,7 @@ public Mono> getWithResponseAsync(S /** * 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 peeringName The name of the peering. @@ -445,7 +446,7 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), resourceGroupName, circuitName, peeringName, connectionName, @@ -454,7 +455,7 @@ private Mono> getWithResponseAsync( /** * 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 peeringName The name of the peering. @@ -474,7 +475,7 @@ 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 peeringName The name of the peering. @@ -494,7 +495,7 @@ 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 peeringName The name of the peering. @@ -512,7 +513,7 @@ 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 peeringName The name of the peering. @@ -556,7 +557,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { expressRouteCircuitConnectionParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, circuitName, @@ -567,7 +568,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r /** * 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 peeringName The name of the peering. @@ -612,7 +613,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { expressRouteCircuitConnectionParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, circuitName, peeringName, @@ -622,7 +623,7 @@ 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 peeringName The name of the peering. @@ -648,7 +649,7 @@ 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 peeringName The name of the peering. @@ -677,7 +678,7 @@ 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 peeringName The name of the peering. @@ -694,13 +695,15 @@ private Mono>> createOrUpdateWithResponseAsync(String public SyncPoller, ExpressRouteCircuitConnectionInner> beginCreateOrUpdate(String resourceGroupName, String circuitName, String peeringName, String connectionName, ExpressRouteCircuitConnectionInner expressRouteCircuitConnectionParameters) { - return this.beginCreateOrUpdateAsync(resourceGroupName, circuitName, peeringName, connectionName, - expressRouteCircuitConnectionParameters).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, circuitName, peeringName, connectionName, + expressRouteCircuitConnectionParameters) + .getSyncPoller(); } /** * 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 peeringName The name of the peering. @@ -718,13 +721,15 @@ private Mono>> createOrUpdateWithResponseAsync(String public SyncPoller, ExpressRouteCircuitConnectionInner> beginCreateOrUpdate(String resourceGroupName, String circuitName, String peeringName, String connectionName, ExpressRouteCircuitConnectionInner expressRouteCircuitConnectionParameters, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, circuitName, peeringName, connectionName, - expressRouteCircuitConnectionParameters, context).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, circuitName, peeringName, connectionName, + expressRouteCircuitConnectionParameters, context) + .getSyncPoller(); } /** * 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 peeringName The name of the peering. @@ -747,7 +752,7 @@ 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 peeringName The name of the peering. @@ -771,7 +776,7 @@ 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 peeringName The name of the peering. @@ -793,7 +798,7 @@ 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 peeringName The name of the peering. @@ -816,7 +821,7 @@ public ExpressRouteCircuitConnectionInner createOrUpdate(String resourceGroupNam /** * 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 peeringName The name of the peering. @@ -847,7 +852,7 @@ private Mono> listSinglePageAs return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, circuitName, peeringName, @@ -859,7 +864,7 @@ 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 peeringName The name of the peering. @@ -891,7 +896,7 @@ private Mono> listSinglePageAs return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -903,7 +908,7 @@ 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 peeringName The name of the peering. @@ -922,7 +927,7 @@ 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 peeringName The name of the peering. @@ -942,7 +947,7 @@ 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 peeringName The name of the peering. @@ -960,7 +965,7 @@ 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 peeringName The name of the peering. @@ -979,9 +984,9 @@ public PagedIterable list(String resourceGro /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1008,9 +1013,9 @@ private Mono> listNextSinglePa /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitPeeringsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitPeeringsClientImpl.java index 60ee3a15e1afd..b51d3d8d2882e 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitPeeringsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitPeeringsClientImpl.java @@ -34,10 +34,11 @@ import com.azure.resourcemanager.network.fluent.ExpressRouteCircuitPeeringsClient; import com.azure.resourcemanager.network.fluent.models.ExpressRouteCircuitPeeringInner; import com.azure.resourcemanager.network.models.ExpressRouteCircuitPeeringListResult; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in ExpressRouteCircuitPeeringsClient. */ @@ -54,7 +55,7 @@ public final class ExpressRouteCircuitPeeringsClientImpl implements ExpressRoute /** * Initializes an instance of ExpressRouteCircuitPeeringsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ ExpressRouteCircuitPeeringsClientImpl(NetworkManagementClientImpl client) { @@ -119,7 +120,7 @@ Mono> listNext( /** * 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. @@ -149,7 +150,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, circuitName, @@ -159,7 +160,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * 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. @@ -190,7 +191,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, circuitName, peeringName, apiVersion, @@ -199,7 +200,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * 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. @@ -218,7 +219,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * 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. @@ -240,7 +241,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * 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. @@ -257,7 +258,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -275,7 +276,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -292,7 +293,7 @@ public Mono deleteAsync(String resourceGroupName, String circuitName, Stri /** * 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. @@ -310,7 +311,7 @@ private Mono deleteAsync(String resourceGroupName, String circuitName, Str /** * 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. @@ -325,7 +326,7 @@ public void delete(String resourceGroupName, String circuitName, String peeringN /** * 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. @@ -341,7 +342,7 @@ public void delete(String resourceGroupName, String circuitName, String peeringN /** * 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 peeringName The name of the peering. @@ -372,7 +373,7 @@ public Mono> getWithResponseAsync(Stri return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, circuitName, peeringName, @@ -382,7 +383,7 @@ public Mono> getWithResponseAsync(Stri /** * 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 peeringName The name of the peering. @@ -414,7 +415,7 @@ private Mono> getWithResponseAsync(Str return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), resourceGroupName, circuitName, peeringName, apiVersion, @@ -423,7 +424,7 @@ private Mono> getWithResponseAsync(Str /** * 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 peeringName The name of the peering. @@ -441,7 +442,7 @@ 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 peeringName The name of the peering. @@ -459,7 +460,7 @@ 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 peeringName The name of the peering. @@ -475,7 +476,7 @@ 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 peeringName The name of the peering. @@ -513,7 +514,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { peeringParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, circuitName, @@ -523,7 +524,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r /** * 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 peeringName The name of the peering. @@ -562,7 +563,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { peeringParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, circuitName, peeringName, @@ -571,7 +572,7 @@ 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 peeringName The name of the peering. @@ -594,7 +595,7 @@ 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 peeringName The name of the peering. @@ -619,7 +620,7 @@ 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 peeringName The name of the peering. @@ -639,7 +640,7 @@ 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 peeringName The name of the peering. @@ -660,7 +661,7 @@ 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 peeringName The name of the peering. @@ -679,7 +680,7 @@ 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 peeringName The name of the peering. @@ -699,7 +700,7 @@ 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 peeringName The name of the peering. @@ -717,7 +718,7 @@ 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 peeringName The name of the peering. @@ -736,7 +737,7 @@ public ExpressRouteCircuitPeeringInner createOrUpdate(String resourceGroupName, /** * 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -763,7 +764,7 @@ private Mono> listSinglePageAsync return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, circuitName, apiVersion, @@ -775,7 +776,7 @@ 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 context The context to associate with this operation. @@ -803,7 +804,7 @@ private Mono> listSinglePageAsync return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -815,7 +816,7 @@ 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -831,7 +832,7 @@ 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 context The context to associate with this operation. @@ -849,7 +850,7 @@ 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -864,7 +865,7 @@ 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 context The context to associate with this operation. @@ -881,9 +882,9 @@ public PagedIterable list(String resourceGroupN /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -909,9 +910,9 @@ private Mono> listNextSinglePageA /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitsClientImpl.java index 835b782b5f8aa..7592bd33c6eeb 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitsClientImpl.java @@ -44,10 +44,11 @@ import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in ExpressRouteCircuitsClient. */ @@ -65,7 +66,7 @@ public final class ExpressRouteCircuitsClientImpl implements InnerSupportsGet> listAllNext( /** * 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. @@ -227,7 +228,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, circuitName, @@ -237,7 +238,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * 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. @@ -264,7 +265,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, circuitName, apiVersion, @@ -273,7 +274,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * 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. @@ -290,7 +291,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * 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. @@ -310,7 +311,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * 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. @@ -325,7 +326,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -342,7 +343,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -357,7 +358,7 @@ public 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. * @param context The context to associate with this operation. @@ -374,7 +375,7 @@ private Mono deleteAsync(String resourceGroupName, String circuitName, Con /** * 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. @@ -388,7 +389,7 @@ public 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. @@ -403,7 +404,7 @@ public 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 circuitName The name of express route circuit. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -430,7 +431,7 @@ public Mono> getByResourceGroupWithResponseAs return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -440,7 +441,7 @@ public Mono> getByResourceGroupWithResponseAs /** * 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. @@ -468,7 +469,7 @@ private Mono> getByResourceGroupWithResponseA return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, circuitName, apiVersion, @@ -477,7 +478,7 @@ private Mono> getByResourceGroupWithResponseA /** * 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. @@ -493,7 +494,7 @@ public Mono getByResourceGroupAsync(String resourceGro /** * 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. @@ -510,7 +511,7 @@ public Response getByResourceGroupWithResponse(String /** * 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. @@ -525,7 +526,7 @@ public ExpressRouteCircuitInner getByResourceGroup(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 parameters Parameters supplied to the create or update express route circuit operation. @@ -557,7 +558,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, circuitName, @@ -567,7 +568,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r /** * 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. @@ -600,7 +601,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, circuitName, apiVersion, @@ -609,7 +610,7 @@ 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 parameters Parameters supplied to the create or update express route circuit operation. @@ -630,7 +631,7 @@ 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 parameters Parameters supplied to the create or update express route circuit operation. @@ -652,7 +653,7 @@ 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 parameters Parameters supplied to the create or update express route circuit operation. @@ -669,7 +670,7 @@ 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 parameters Parameters supplied to the create or update express route circuit operation. @@ -687,7 +688,7 @@ 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 parameters Parameters supplied to the create or update express route circuit operation. @@ -705,7 +706,7 @@ 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 parameters Parameters supplied to the create or update express route circuit operation. @@ -724,7 +725,7 @@ 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 parameters Parameters supplied to the create or update express route circuit operation. @@ -741,7 +742,7 @@ 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 parameters Parameters supplied to the create or update express route circuit operation. @@ -759,7 +760,7 @@ 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 parameters Parameters supplied to update express route circuit tags. @@ -791,7 +792,7 @@ public Mono> updateTagsWithResponseAsync(Stri } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, circuitName, @@ -801,7 +802,7 @@ public Mono> updateTagsWithResponseAsync(Stri /** * Updates an express route circuit tags. - * + * * @param resourceGroupName The name of the resource group. * @param circuitName The name of the circuit. * @param parameters Parameters supplied to update express route circuit tags. @@ -834,7 +835,7 @@ private Mono> updateTagsWithResponseAsync(Str } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), resourceGroupName, circuitName, apiVersion, @@ -843,7 +844,7 @@ private Mono> updateTagsWithResponseAsync(Str /** * Updates an express route circuit tags. - * + * * @param resourceGroupName The name of the resource group. * @param circuitName The name of the circuit. * @param parameters Parameters supplied to update express route circuit tags. @@ -861,7 +862,7 @@ 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 parameters Parameters supplied to update express route circuit tags. @@ -879,7 +880,7 @@ 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 parameters Parameters supplied to update express route circuit tags. @@ -895,7 +896,7 @@ public ExpressRouteCircuitInner updateTags(String resourceGroupName, String circ /** * 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 peeringName The name of the peering. @@ -930,7 +931,7 @@ public Mono>> listArpTableWithResponseAsync(String res return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listArpTable(this.client.getEndpoint(), resourceGroupName, circuitName, @@ -940,7 +941,7 @@ public Mono>> listArpTableWithResponseAsync(String res /** * 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 peeringName The name of the peering. @@ -976,7 +977,7 @@ private Mono>> listArpTableWithResponseAsync(String re return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listArpTable(this.client.getEndpoint(), resourceGroupName, circuitName, peeringName, devicePath, @@ -985,7 +986,7 @@ private Mono>> listArpTableWithResponseAsync(String re /** * 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 peeringName The name of the peering. @@ -1010,7 +1011,7 @@ private Mono>> listArpTableWithResponseAsync(String re /** * 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 peeringName The name of the peering. @@ -1038,7 +1039,7 @@ private Mono>> listArpTableWithResponseAsync(String re /** * 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 peeringName The name of the peering. @@ -1058,7 +1059,7 @@ private Mono>> listArpTableWithResponseAsync(String re /** * 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 peeringName The name of the peering. @@ -1081,7 +1082,7 @@ private Mono>> listArpTableWithResponseAsync(String re /** * 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 peeringName The name of the peering. @@ -1101,7 +1102,7 @@ public Mono listArpTableAsync(Strin /** * 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 peeringName The name of the peering. @@ -1122,7 +1123,7 @@ private Mono listArpTableAsync(Stri /** * 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 peeringName The name of the peering. @@ -1140,7 +1141,7 @@ public ExpressRouteCircuitsArpTableListResultInner listArpTable(String resourceG /** * 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 peeringName The name of the peering. @@ -1159,7 +1160,7 @@ public ExpressRouteCircuitsArpTableListResultInner listArpTable(String resourceG /** * 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 peeringName The name of the peering. @@ -1194,7 +1195,7 @@ public Mono>> listRoutesTableWithResponseAsync(String return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listRoutesTable(this.client.getEndpoint(), resourceGroupName, circuitName, @@ -1204,7 +1205,7 @@ public Mono>> listRoutesTableWithResponseAsync(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 peeringName The name of the peering. @@ -1240,7 +1241,7 @@ private Mono>> listRoutesTableWithResponseAsync(String return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listRoutesTable(this.client.getEndpoint(), resourceGroupName, circuitName, peeringName, @@ -1249,7 +1250,7 @@ private Mono>> listRoutesTableWithResponseAsync(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 peeringName The name of the peering. @@ -1274,7 +1275,7 @@ private Mono>> listRoutesTableWithResponseAsync(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 peeringName The name of the peering. @@ -1302,7 +1303,7 @@ private Mono>> listRoutesTableWithResponseAsync(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 peeringName The name of the peering. @@ -1322,7 +1323,7 @@ private Mono>> listRoutesTableWithResponseAsync(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 peeringName The name of the peering. @@ -1345,7 +1346,7 @@ private Mono>> listRoutesTableWithResponseAsync(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 peeringName The name of the peering. @@ -1365,7 +1366,7 @@ public Mono listRoutesTableAsync /** * 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 peeringName The name of the peering. @@ -1386,7 +1387,7 @@ private Mono listRoutesTableAsyn /** * 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 peeringName The name of the peering. @@ -1404,7 +1405,7 @@ public ExpressRouteCircuitsRoutesTableListResultInner listRoutesTable(String res /** * 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 peeringName The name of the peering. @@ -1423,7 +1424,7 @@ public ExpressRouteCircuitsRoutesTableListResultInner listRoutesTable(String res /** * 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 peeringName The name of the peering. @@ -1458,7 +1459,7 @@ public Mono>> listRoutesTableSummaryWithResponseAsync( return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listRoutesTableSummary(this.client.getEndpoint(), resourceGroupName, @@ -1468,7 +1469,7 @@ public Mono>> listRoutesTableSummaryWithResponseAsync( /** * 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 peeringName The name of the peering. @@ -1504,7 +1505,7 @@ private Mono>> listRoutesTableSummaryWithResponseAsync return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listRoutesTableSummary(this.client.getEndpoint(), resourceGroupName, circuitName, peeringName, @@ -1513,7 +1514,7 @@ private Mono>> listRoutesTableSummaryWithResponseAsync /** * 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 peeringName The name of the peering. @@ -1539,7 +1540,7 @@ private Mono>> listRoutesTableSummaryWithResponseAsync /** * 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 peeringName The name of the peering. @@ -1567,7 +1568,7 @@ private Mono>> listRoutesTableSummaryWithResponseAsync /** * 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 peeringName The name of the peering. @@ -1589,7 +1590,7 @@ private Mono>> listRoutesTableSummaryWithResponseAsync /** * 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 peeringName The name of the peering. @@ -1612,7 +1613,7 @@ private Mono>> listRoutesTableSummaryWithResponseAsync /** * 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 peeringName The name of the peering. @@ -1632,7 +1633,7 @@ public Mono listRoutesTab /** * 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 peeringName The name of the peering. @@ -1653,7 +1654,7 @@ private Mono listRoutesTa /** * 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 peeringName The name of the peering. @@ -1672,7 +1673,7 @@ public ExpressRouteCircuitsRoutesTableSummaryListResultInner listRoutesTableSumm /** * 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 peeringName The name of the peering. @@ -1692,7 +1693,7 @@ public ExpressRouteCircuitsRoutesTableSummaryListResultInner listRoutesTableSumm /** * 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. @@ -1719,7 +1720,7 @@ public Mono> getStatsWithResponseAsync(S return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getStats(this.client.getEndpoint(), resourceGroupName, circuitName, @@ -1729,7 +1730,7 @@ public Mono> getStatsWithResponseAsync(S /** * 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. @@ -1757,7 +1758,7 @@ private Mono> getStatsWithResponseAsync( return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getStats(this.client.getEndpoint(), resourceGroupName, circuitName, apiVersion, @@ -1766,7 +1767,7 @@ private Mono> getStatsWithResponseAsync( /** * 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. @@ -1782,7 +1783,7 @@ public Mono getStatsAsync(String resourceGroupNam /** * 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. @@ -1799,7 +1800,7 @@ public Response getStatsWithResponse(String resou /** * 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. @@ -1814,7 +1815,7 @@ public ExpressRouteCircuitStatsInner getStats(String resourceGroupName, String c /** * 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 peeringName The name of the peering. @@ -1845,7 +1846,7 @@ public Mono> getPeeringStatsWithResponse return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getPeeringStats(this.client.getEndpoint(), resourceGroupName, circuitName, @@ -1855,7 +1856,7 @@ public Mono> getPeeringStatsWithResponse /** * 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 peeringName The name of the peering. @@ -1887,7 +1888,7 @@ private Mono> getPeeringStatsWithRespons return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getPeeringStats(this.client.getEndpoint(), resourceGroupName, circuitName, peeringName, @@ -1896,7 +1897,7 @@ private Mono> getPeeringStatsWithRespons /** * 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 peeringName The name of the peering. @@ -1914,7 +1915,7 @@ public Mono getPeeringStatsAsync(String resourceG /** * 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 peeringName The name of the peering. @@ -1932,7 +1933,7 @@ public Response getPeeringStatsWithResponse(Strin /** * 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 peeringName The name of the peering. @@ -1949,7 +1950,7 @@ public ExpressRouteCircuitStatsInner getPeeringStats(String resourceGroupName, S /** * 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 ManagementException thrown if the request is rejected by server. @@ -1971,7 +1972,7 @@ private Mono> listByResourceGroupSingleP return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -1983,7 +1984,7 @@ private Mono> listByResourceGroupSingleP /** * 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. @@ -2007,7 +2008,7 @@ private Mono> listByResourceGroupSingleP return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -2019,7 +2020,7 @@ private Mono> listByResourceGroupSingleP /** * 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 ManagementException thrown if the request is rejected by server. @@ -2034,7 +2035,7 @@ public PagedFlux listByResourceGroupAsync(String resou /** * 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. @@ -2050,7 +2051,7 @@ private PagedFlux listByResourceGroupAsync(String reso /** * 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 ManagementException thrown if the request is rejected by server. @@ -2064,7 +2065,7 @@ public PagedIterable listByResourceGroup(String resour /** * 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. @@ -2079,7 +2080,7 @@ public PagedIterable listByResourceGroup(String resour /** * 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 along with {@link PagedResponse} on successful @@ -2095,7 +2096,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -2107,7 +2108,7 @@ private Mono> listSinglePageAsync() { /** * 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. @@ -2125,7 +2126,7 @@ private Mono> listSinglePageAsync(Contex return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) @@ -2135,7 +2136,7 @@ private Mono> listSinglePageAsync(Contex /** * 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 PagedFlux}. @@ -2147,7 +2148,7 @@ public PagedFlux 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. @@ -2162,7 +2163,7 @@ private PagedFlux listAsync(Context 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}. @@ -2174,7 +2175,7 @@ public 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 ManagementException thrown if the request is rejected by server. @@ -2188,9 +2189,9 @@ public PagedIterable list(Context context) { /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2216,9 +2217,9 @@ private Mono> listNextSinglePageAsync(St /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -2245,9 +2246,9 @@ private Mono> listNextSinglePageAsync(St /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2274,9 +2275,9 @@ private Mono> listAllNextSinglePageAsync /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteConnectionsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteConnectionsClientImpl.java index 4a61474a31591..abc3603d9bfbe 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteConnectionsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteConnectionsClientImpl.java @@ -30,10 +30,11 @@ import com.azure.resourcemanager.network.fluent.ExpressRouteConnectionsClient; import com.azure.resourcemanager.network.fluent.models.ExpressRouteConnectionInner; import com.azure.resourcemanager.network.fluent.models.ExpressRouteConnectionListInner; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in ExpressRouteConnectionsClient. */ @@ -50,7 +51,7 @@ public final class ExpressRouteConnectionsClientImpl implements ExpressRouteConn /** * Initializes an instance of ExpressRouteConnectionsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ ExpressRouteConnectionsClientImpl(NetworkManagementClientImpl client) { @@ -111,7 +112,7 @@ Mono> list(@HostParam("$host") String /** * 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. @@ -150,7 +151,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { putExpressRouteConnectionParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -161,7 +162,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r /** * 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. @@ -201,7 +202,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { putExpressRouteConnectionParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, expressRouteGatewayName, @@ -211,7 +212,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * 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. @@ -234,7 +235,7 @@ 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. @@ -259,7 +260,7 @@ 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. @@ -273,13 +274,15 @@ private PollerFlux, ExpressRouteConnecti public SyncPoller, ExpressRouteConnectionInner> beginCreateOrUpdate( String resourceGroupName, String expressRouteGatewayName, String connectionName, ExpressRouteConnectionInner putExpressRouteConnectionParameters) { - return this.beginCreateOrUpdateAsync(resourceGroupName, expressRouteGatewayName, connectionName, - putExpressRouteConnectionParameters).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, expressRouteGatewayName, connectionName, + putExpressRouteConnectionParameters) + .getSyncPoller(); } /** * 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. @@ -294,13 +297,15 @@ public SyncPoller, ExpressRouteConnectio public SyncPoller, ExpressRouteConnectionInner> beginCreateOrUpdate( String resourceGroupName, String expressRouteGatewayName, String connectionName, ExpressRouteConnectionInner putExpressRouteConnectionParameters, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, expressRouteGatewayName, connectionName, - putExpressRouteConnectionParameters, context).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, expressRouteGatewayName, connectionName, + putExpressRouteConnectionParameters, context) + .getSyncPoller(); } /** * 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. @@ -320,7 +325,7 @@ 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. @@ -341,7 +346,7 @@ 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. @@ -360,7 +365,7 @@ 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. @@ -380,7 +385,7 @@ 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. @@ -412,7 +417,7 @@ public Mono> getWithResponseAsync(String r return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, expressRouteGatewayName, @@ -422,7 +427,7 @@ public Mono> getWithResponseAsync(String r /** * 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. @@ -455,7 +460,7 @@ private Mono> getWithResponseAsync(String return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), resourceGroupName, expressRouteGatewayName, connectionName, @@ -464,7 +469,7 @@ private Mono> getWithResponseAsync(String /** * 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. @@ -482,7 +487,7 @@ 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. @@ -500,7 +505,7 @@ 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. @@ -517,7 +522,7 @@ 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. @@ -548,7 +553,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, @@ -558,7 +563,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * 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. @@ -590,7 +595,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, expressRouteGatewayName, connectionName, @@ -599,7 +604,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * 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. @@ -619,7 +624,7 @@ 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. @@ -641,7 +646,7 @@ 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. @@ -658,7 +663,7 @@ 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. @@ -677,7 +682,7 @@ 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. @@ -694,7 +699,7 @@ 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. @@ -713,7 +718,7 @@ 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. @@ -728,7 +733,7 @@ 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. @@ -745,7 +750,7 @@ public void delete(String resourceGroupName, String expressRouteGatewayName, Str /** * Lists ExpressRouteConnections. - * + * * @param resourceGroupName The name of the resource group. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -772,7 +777,7 @@ public Mono> listWithResponseAsync(Str return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, expressRouteGatewayName, @@ -782,7 +787,7 @@ public Mono> listWithResponseAsync(Str /** * Lists ExpressRouteConnections. - * + * * @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. @@ -810,7 +815,7 @@ private Mono> listWithResponseAsync(St return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), resourceGroupName, expressRouteGatewayName, apiVersion, @@ -819,7 +824,7 @@ private Mono> listWithResponseAsync(St /** * Lists ExpressRouteConnections. - * + * * @param resourceGroupName The name of the resource group. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -835,7 +840,7 @@ public Mono listAsync(String resourceGroupName, /** * Lists ExpressRouteConnections. - * + * * @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. @@ -852,7 +857,7 @@ public Response listWithResponse(String resourc /** * Lists ExpressRouteConnections. - * + * * @param resourceGroupName The name of the resource group. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCrossConnectionPeeringsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCrossConnectionPeeringsClientImpl.java index 9c052e756d146..0b93c4fd6ed69 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCrossConnectionPeeringsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCrossConnectionPeeringsClientImpl.java @@ -34,13 +34,13 @@ import com.azure.resourcemanager.network.fluent.ExpressRouteCrossConnectionPeeringsClient; import com.azure.resourcemanager.network.fluent.models.ExpressRouteCrossConnectionPeeringInner; import com.azure.resourcemanager.network.models.ExpressRouteCrossConnectionPeeringList; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** - * An instance of this class provides access to all the operations defined in - * ExpressRouteCrossConnectionPeeringsClient. + * An instance of this class provides access to all the operations defined in ExpressRouteCrossConnectionPeeringsClient. */ public final class ExpressRouteCrossConnectionPeeringsClientImpl implements ExpressRouteCrossConnectionPeeringsClient { /** @@ -55,7 +55,7 @@ public final class ExpressRouteCrossConnectionPeeringsClientImpl implements Expr /** * Initializes an instance of ExpressRouteCrossConnectionPeeringsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ ExpressRouteCrossConnectionPeeringsClientImpl(NetworkManagementClientImpl client) { @@ -65,8 +65,8 @@ 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. + * The interface defining all the services for NetworkManagementClientExpressRouteCrossConnectionPeerings to be used + * by the proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "NetworkManagementCli") @@ -122,7 +122,7 @@ Mono> listNext( /** * Gets all peerings in a specified ExpressRouteCrossConnection. - * + * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -150,7 +150,7 @@ private Mono> listSingleP return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, crossConnectionName, @@ -163,7 +163,7 @@ 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 context The context to associate with this operation. @@ -192,7 +192,7 @@ private Mono> listSingleP return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -204,7 +204,7 @@ 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -221,7 +221,7 @@ 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 context The context to associate with this operation. @@ -239,7 +239,7 @@ 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -255,7 +255,7 @@ 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 context The context to associate with this operation. @@ -272,7 +272,7 @@ 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 peeringName The name of the peering. @@ -303,7 +303,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, crossConnectionName, @@ -313,7 +313,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * Deletes the specified peering from the ExpressRouteCrossConnection. - * + * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param peeringName The name of the peering. @@ -345,7 +345,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, crossConnectionName, peeringName, @@ -354,7 +354,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * Deletes the specified peering from the ExpressRouteCrossConnection. - * + * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param peeringName The name of the peering. @@ -374,7 +374,7 @@ 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 peeringName The name of the peering. @@ -396,7 +396,7 @@ 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 peeringName The name of the peering. @@ -413,7 +413,7 @@ 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 peeringName The name of the peering. @@ -431,7 +431,7 @@ 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 peeringName The name of the peering. @@ -448,7 +448,7 @@ 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 peeringName The name of the peering. @@ -467,7 +467,7 @@ 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 peeringName The name of the peering. @@ -482,7 +482,7 @@ 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 peeringName The name of the peering. @@ -498,7 +498,7 @@ 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 peeringName The name of the peering. @@ -530,7 +530,7 @@ public Mono> getWithResponseAs return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, crossConnectionName, @@ -540,7 +540,7 @@ public Mono> getWithResponseAs /** * Gets the specified peering for the ExpressRouteCrossConnection. - * + * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param peeringName The name of the peering. @@ -573,7 +573,7 @@ private Mono> getWithResponseA return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), resourceGroupName, crossConnectionName, peeringName, apiVersion, @@ -582,7 +582,7 @@ private Mono> getWithResponseA /** * Gets the specified peering for the ExpressRouteCrossConnection. - * + * * @param resourceGroupName The name of the resource group. * @param crossConnectionName The name of the ExpressRouteCrossConnection. * @param peeringName The name of the peering. @@ -600,7 +600,7 @@ 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 peeringName The name of the peering. @@ -618,7 +618,7 @@ 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 peeringName The name of the peering. @@ -635,7 +635,7 @@ 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 peeringName The name of the peering. @@ -675,7 +675,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { peeringParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -686,7 +686,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r /** * 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 peeringName The name of the peering. @@ -728,7 +728,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { peeringParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, crossConnectionName, peeringName, @@ -737,7 +737,7 @@ 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 peeringName The name of the peering. @@ -762,7 +762,7 @@ 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 peeringName The name of the peering. @@ -789,7 +789,7 @@ 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 peeringName The name of the peering. @@ -810,7 +810,7 @@ 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 peeringName The name of the peering. @@ -833,7 +833,7 @@ 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 peeringName The name of the peering. @@ -853,7 +853,7 @@ 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 peeringName The name of the peering. @@ -870,12 +870,13 @@ private Mono createOrUpdateAsync(String String crossConnectionName, String peeringName, ExpressRouteCrossConnectionPeeringInner peeringParameters, Context context) { return beginCreateOrUpdateAsync(resourceGroupName, crossConnectionName, peeringName, peeringParameters, context) - .last().flatMap(this.client::getLroFinalResultOrError); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** * 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 peeringName The name of the peering. @@ -894,7 +895,7 @@ 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 peeringName The name of the peering. @@ -915,9 +916,9 @@ public ExpressRouteCrossConnectionPeeringInner createOrUpdate(String resourceGro /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -944,9 +945,9 @@ private Mono> listNextSin /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCrossConnectionsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCrossConnectionsClientImpl.java index 37c3f058b7f70..0c8ae73b6a282 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCrossConnectionsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCrossConnectionsClientImpl.java @@ -41,10 +41,11 @@ import com.azure.resourcemanager.network.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in ExpressRouteCrossConnectionsClient. */ @@ -62,7 +63,7 @@ public final class ExpressRouteCrossConnectionsClientImpl implements InnerSuppor /** * Initializes an instance of ExpressRouteCrossConnectionsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ ExpressRouteCrossConnectionsClientImpl(NetworkManagementClientImpl client) { @@ -72,8 +73,8 @@ 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. + * The interface defining all the services for NetworkManagementClientExpressRouteCrossConnections to be used by the + * proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "NetworkManagementCli") @@ -174,7 +175,7 @@ Mono> listByResourceGroupNext( /** * 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 along with {@link PagedResponse} on @@ -190,7 +191,7 @@ private Mono> listSinglePageAsyn return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -202,7 +203,7 @@ private Mono> listSinglePageAsyn /** * Retrieves all the ExpressRouteCrossConnections 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. @@ -220,7 +221,7 @@ private Mono> listSinglePageAsyn return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) @@ -230,7 +231,7 @@ private Mono> listSinglePageAsyn /** * 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 @@ -243,7 +244,7 @@ public PagedFlux listAsync() { /** * Retrieves all the ExpressRouteCrossConnections 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. @@ -259,7 +260,7 @@ private PagedFlux listAsync(Context 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 @@ -272,7 +273,7 @@ public PagedIterable list() { /** * Retrieves all the ExpressRouteCrossConnections 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. @@ -287,7 +288,7 @@ public PagedIterable list(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 ManagementException thrown if the request is rejected by server. @@ -310,7 +311,7 @@ public PagedIterable list(Context context) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -322,7 +323,7 @@ public PagedIterable list(Context context) { /** * 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. @@ -346,7 +347,7 @@ public PagedIterable list(Context context) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -358,7 +359,7 @@ public PagedIterable list(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 ManagementException thrown if the request is rejected by server. @@ -374,7 +375,7 @@ public PagedFlux listByResourceGroupAsync(Stri /** * 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. @@ -392,7 +393,7 @@ private PagedFlux listByResourceGroupAsync(Str /** * 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 ManagementException thrown if the request is rejected by server. @@ -407,7 +408,7 @@ public PagedIterable listByResourceGroup(Strin /** * 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. @@ -424,7 +425,7 @@ public PagedIterable listByResourceGroup(Strin /** * Gets details about the specified ExpressRouteCrossConnection. - * + * * @param resourceGroupName The name of the resource group (peering location of the circuit). * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -452,7 +453,7 @@ public PagedIterable listByResourceGroup(Strin return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -462,7 +463,7 @@ public PagedIterable listByResourceGroup(Strin /** * Gets details about the specified ExpressRouteCrossConnection. - * + * * @param resourceGroupName The name of the resource group (peering location of the circuit). * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param context The context to associate with this operation. @@ -491,7 +492,7 @@ public PagedIterable listByResourceGroup(Strin return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, crossConnectionName, apiVersion, @@ -500,7 +501,7 @@ public PagedIterable listByResourceGroup(Strin /** * Gets details about the specified ExpressRouteCrossConnection. - * + * * @param resourceGroupName The name of the resource group (peering location of the circuit). * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -517,7 +518,7 @@ public Mono getByResourceGroupAsync(String res /** * Gets details about the specified ExpressRouteCrossConnection. - * + * * @param resourceGroupName The name of the resource group (peering location of the circuit). * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @param context The context to associate with this operation. @@ -534,7 +535,7 @@ public Response getByResourceGroupWithResponse /** * Gets details about the specified ExpressRouteCrossConnection. - * + * * @param resourceGroupName The name of the resource group (peering location of the circuit). * @param crossConnectionName The name of the ExpressRouteCrossConnection (service key of the circuit). * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -549,7 +550,7 @@ public ExpressRouteCrossConnectionInner getByResourceGroup(String resourceGroupN /** * 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. @@ -583,7 +584,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -593,7 +594,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r /** * 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. @@ -628,7 +629,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, crossConnectionName, apiVersion, @@ -637,7 +638,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * 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. @@ -659,7 +660,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * 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. @@ -683,7 +684,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * 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. @@ -701,7 +702,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * 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. @@ -721,7 +722,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * 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. @@ -739,7 +740,7 @@ public Mono createOrUpdateAsync(String resourc /** * 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. @@ -758,7 +759,7 @@ private Mono createOrUpdateAsync(String resour /** * 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. @@ -775,7 +776,7 @@ public ExpressRouteCrossConnectionInner createOrUpdate(String resourceGroupName, /** * 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. @@ -793,7 +794,7 @@ public ExpressRouteCrossConnectionInner createOrUpdate(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 crossConnectionParameters Parameters supplied to update express route cross connection tags. @@ -828,7 +829,7 @@ public Mono> updateTagsWithResponseAs } else { crossConnectionParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -839,7 +840,7 @@ public Mono> updateTagsWithResponseAs /** * Updates an express route cross connection tags. - * + * * @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. @@ -875,7 +876,7 @@ private Mono> updateTagsWithResponseA } else { crossConnectionParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), resourceGroupName, crossConnectionName, apiVersion, @@ -884,7 +885,7 @@ private Mono> updateTagsWithResponseA /** * Updates an express route cross connection tags. - * + * * @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. @@ -902,7 +903,7 @@ public Mono updateTagsAsync(String resourceGro /** * Updates an express route cross connection tags. - * + * * @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. @@ -921,7 +922,7 @@ public Response updateTagsWithResponse(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 crossConnectionParameters Parameters supplied to update express route cross connection tags. @@ -939,7 +940,7 @@ public ExpressRouteCrossConnectionInner updateTags(String resourceGroupName, Str /** * 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 peeringName The name of the peering. @@ -975,7 +976,7 @@ public Mono>> listArpTableWithResponseAsync(String res return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -986,7 +987,7 @@ public Mono>> listArpTableWithResponseAsync(String res /** * 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 peeringName The name of the peering. @@ -1023,7 +1024,7 @@ private Mono>> listArpTableWithResponseAsync(String re return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listArpTable(this.client.getEndpoint(), resourceGroupName, crossConnectionName, peeringName, @@ -1032,7 +1033,7 @@ 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 peeringName The name of the peering. @@ -1058,7 +1059,7 @@ 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 peeringName The name of the peering. @@ -1086,7 +1087,7 @@ 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 peeringName The name of the peering. @@ -1107,7 +1108,7 @@ 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 peeringName The name of the peering. @@ -1130,7 +1131,7 @@ 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 peeringName The name of the peering. @@ -1150,7 +1151,7 @@ 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 peeringName The name of the peering. @@ -1171,7 +1172,7 @@ 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 peeringName The name of the peering. @@ -1190,7 +1191,7 @@ 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 peeringName The name of the peering. @@ -1210,7 +1211,7 @@ 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 peeringName The name of the peering. @@ -1246,7 +1247,7 @@ public Mono>> listRoutesTableSummaryWithResponseAsync( return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listRoutesTableSummary(this.client.getEndpoint(), resourceGroupName, @@ -1257,7 +1258,7 @@ public 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 peeringName The name of the peering. @@ -1294,7 +1295,7 @@ private Mono>> listRoutesTableSummaryWithResponseAsync return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listRoutesTableSummary(this.client.getEndpoint(), resourceGroupName, crossConnectionName, @@ -1303,7 +1304,7 @@ 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 peeringName The name of the peering. @@ -1330,7 +1331,7 @@ 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 peeringName The name of the peering. @@ -1359,7 +1360,7 @@ 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 peeringName The name of the peering. @@ -1381,7 +1382,7 @@ 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 peeringName The name of the peering. @@ -1405,7 +1406,7 @@ 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 peeringName The name of the peering. @@ -1425,7 +1426,7 @@ 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 peeringName The name of the peering. @@ -1446,7 +1447,7 @@ 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 peeringName The name of the peering. @@ -1464,7 +1465,7 @@ 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 peeringName The name of the peering. @@ -1485,7 +1486,7 @@ 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 peeringName The name of the peering. @@ -1521,7 +1522,7 @@ public Mono>> listRoutesTableWithResponseAsync(String return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1533,7 +1534,7 @@ 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 peeringName The name of the peering. @@ -1570,7 +1571,7 @@ private Mono>> listRoutesTableWithResponseAsync(String return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listRoutesTable(this.client.getEndpoint(), resourceGroupName, crossConnectionName, peeringName, @@ -1580,7 +1581,7 @@ 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 peeringName The name of the peering. @@ -1607,7 +1608,7 @@ 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 peeringName The name of the peering. @@ -1636,7 +1637,7 @@ 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 peeringName The name of the peering. @@ -1659,7 +1660,7 @@ 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 peeringName The name of the peering. @@ -1683,7 +1684,7 @@ 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 peeringName The name of the peering. @@ -1704,7 +1705,7 @@ 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 peeringName The name of the peering. @@ -1720,13 +1721,14 @@ public Mono listRoutesTableAsync private Mono listRoutesTableAsync(String resourceGroupName, String crossConnectionName, String peeringName, String devicePath, Context context) { return beginListRoutesTableAsync(resourceGroupName, crossConnectionName, peeringName, devicePath, context) - .last().flatMap(this.client::getLroFinalResultOrError); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** * 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 peeringName The name of the peering. @@ -1746,7 +1748,7 @@ 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 peeringName The name of the peering. @@ -1766,9 +1768,9 @@ public ExpressRouteCircuitsRoutesTableListResultInner listRoutesTable(String res /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1794,9 +1796,9 @@ private Mono> listNextSinglePage /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1824,9 +1826,9 @@ private Mono> listNextSinglePage /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1855,9 +1857,9 @@ private Mono> listNextSinglePage /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteGatewaysClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteGatewaysClientImpl.java index be9b09e5a2652..8c82eeeefb963 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteGatewaysClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteGatewaysClientImpl.java @@ -34,10 +34,11 @@ import com.azure.resourcemanager.network.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in ExpressRouteGatewaysClient. */ @@ -55,7 +56,7 @@ public final class ExpressRouteGatewaysClientImpl /** * Initializes an instance of ExpressRouteGatewaysClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ ExpressRouteGatewaysClientImpl(NetworkManagementClientImpl client) { @@ -133,7 +134,7 @@ Mono>> delete(@HostParam("$host") String endpoint, /** * 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}. @@ -148,7 +149,7 @@ public Mono> listBySubscriptionWithRespon return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listBySubscription(this.client.getEndpoint(), apiVersion, @@ -158,7 +159,7 @@ public Mono> listBySubscriptionWithRespon /** * 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. @@ -175,7 +176,7 @@ private Mono> listBySubscriptionWithRespo return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listBySubscription(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -184,7 +185,7 @@ private Mono> listBySubscriptionWithRespo /** * 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}. @@ -196,7 +197,7 @@ public 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 ManagementException thrown if the request is rejected by server. @@ -210,7 +211,7 @@ public Response listBySubscriptionWithResponse(Con /** * 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. @@ -222,7 +223,7 @@ public ExpressRouteGatewayListInner listBySubscription() { /** * 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. @@ -243,7 +244,7 @@ public Mono> listByResourceGroupWithRespo return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -253,7 +254,7 @@ public Mono> listByResourceGroupWithRespo /** * Lists ExpressRoute gateways in a given 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. @@ -276,7 +277,7 @@ private Mono> listByResourceGroupWithResp return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, apiVersion, @@ -285,7 +286,7 @@ private Mono> listByResourceGroupWithResp /** * 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. @@ -299,7 +300,7 @@ public Mono listByResourceGroupAsync(String resour /** * Lists ExpressRoute gateways in a given 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. @@ -315,7 +316,7 @@ public Response listByResourceGroupWithResponse(St /** * 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. @@ -329,7 +330,7 @@ public ExpressRouteGatewayListInner listByResourceGroup(String resourceGroupName /** * Creates or updates a ExpressRoute gateway in a specified resource group. - * + * * @param resourceGroupName The name of the resource group. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param putExpressRouteGatewayParameters Parameters required in an ExpressRoute gateway PUT operation. @@ -363,7 +364,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { putExpressRouteGatewayParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -374,7 +375,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r /** * Creates or updates a ExpressRoute gateway in a specified resource group. - * + * * @param resourceGroupName The name of the resource group. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param putExpressRouteGatewayParameters Parameters required in an ExpressRoute gateway PUT operation. @@ -409,7 +410,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { putExpressRouteGatewayParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, expressRouteGatewayName, apiVersion, @@ -418,7 +419,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a ExpressRoute gateway in a specified resource group. - * + * * @param resourceGroupName The name of the resource group. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param putExpressRouteGatewayParameters Parameters required in an ExpressRoute gateway PUT operation. @@ -440,7 +441,7 @@ public PollerFlux, ExpressRouteGatewayInner /** * Creates or updates a ExpressRoute gateway in a specified resource group. - * + * * @param resourceGroupName The name of the resource group. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param putExpressRouteGatewayParameters Parameters required in an ExpressRoute gateway PUT operation. @@ -463,7 +464,7 @@ private PollerFlux, ExpressRouteGatewayInne /** * Creates or updates a ExpressRoute gateway in a specified resource group. - * + * * @param resourceGroupName The name of the resource group. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param putExpressRouteGatewayParameters Parameters required in an ExpressRoute gateway PUT operation. @@ -483,7 +484,7 @@ public SyncPoller, ExpressRouteGatewayInner /** * Creates or updates a ExpressRoute gateway in a specified resource group. - * + * * @param resourceGroupName The name of the resource group. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param putExpressRouteGatewayParameters Parameters required in an ExpressRoute gateway PUT operation. @@ -497,13 +498,15 @@ public SyncPoller, ExpressRouteGatewayInner public SyncPoller, ExpressRouteGatewayInner> beginCreateOrUpdate( String resourceGroupName, String expressRouteGatewayName, ExpressRouteGatewayInner putExpressRouteGatewayParameters, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, expressRouteGatewayName, - putExpressRouteGatewayParameters, context).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, expressRouteGatewayName, putExpressRouteGatewayParameters, + context) + .getSyncPoller(); } /** * Creates or updates a ExpressRoute gateway in a specified resource group. - * + * * @param resourceGroupName The name of the resource group. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param putExpressRouteGatewayParameters Parameters required in an ExpressRoute gateway PUT operation. @@ -516,12 +519,13 @@ public SyncPoller, ExpressRouteGatewayInner public Mono createOrUpdateAsync(String resourceGroupName, String expressRouteGatewayName, ExpressRouteGatewayInner putExpressRouteGatewayParameters) { return beginCreateOrUpdateAsync(resourceGroupName, expressRouteGatewayName, putExpressRouteGatewayParameters) - .last().flatMap(this.client::getLroFinalResultOrError); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** * Creates or updates a ExpressRoute gateway in a specified resource group. - * + * * @param resourceGroupName The name of the resource group. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param putExpressRouteGatewayParameters Parameters required in an ExpressRoute gateway PUT operation. @@ -540,7 +544,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 expressRouteGatewayName The name of the ExpressRoute gateway. * @param putExpressRouteGatewayParameters Parameters required in an ExpressRoute gateway PUT operation. @@ -558,7 +562,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 expressRouteGatewayName The name of the ExpressRoute gateway. * @param putExpressRouteGatewayParameters Parameters required in an ExpressRoute gateway PUT operation. @@ -577,7 +581,7 @@ 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 expressRouteGatewayParameters Parameters supplied to update a virtual wan express route gateway tags. @@ -611,7 +615,7 @@ public Mono>> updateTagsWithResponseAsync(String resou } else { expressRouteGatewayParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -621,7 +625,7 @@ public Mono>> updateTagsWithResponseAsync(String resou /** * Updates express route gateway tags. - * + * * @param resourceGroupName The resource group name of the ExpressRouteGateway. * @param expressRouteGatewayName The name of the gateway. * @param expressRouteGatewayParameters Parameters supplied to update a virtual wan express route gateway tags. @@ -656,7 +660,7 @@ private Mono>> updateTagsWithResponseAsync(String reso } else { expressRouteGatewayParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -665,7 +669,7 @@ private Mono>> updateTagsWithResponseAsync(String reso /** * Updates express route gateway tags. - * + * * @param resourceGroupName The resource group name of the ExpressRouteGateway. * @param expressRouteGatewayName The name of the gateway. * @param expressRouteGatewayParameters Parameters supplied to update a virtual wan express route gateway tags. @@ -686,7 +690,7 @@ 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 expressRouteGatewayParameters Parameters supplied to update a virtual wan express route gateway tags. @@ -709,7 +713,7 @@ 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 expressRouteGatewayParameters Parameters supplied to update a virtual wan express route gateway tags. @@ -727,7 +731,7 @@ 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 expressRouteGatewayParameters Parameters supplied to update a virtual wan express route gateway tags. @@ -748,7 +752,7 @@ 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 expressRouteGatewayParameters Parameters supplied to update a virtual wan express route gateway tags. @@ -766,7 +770,7 @@ 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 expressRouteGatewayParameters Parameters supplied to update a virtual wan express route gateway tags. @@ -780,12 +784,13 @@ public Mono updateTagsAsync(String resourceGroupName, private Mono updateTagsAsync(String resourceGroupName, String expressRouteGatewayName, TagsObject expressRouteGatewayParameters, Context context) { return beginUpdateTagsAsync(resourceGroupName, expressRouteGatewayName, expressRouteGatewayParameters, context) - .last().flatMap(this.client::getLroFinalResultOrError); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** * Updates express route gateway tags. - * + * * @param resourceGroupName The resource group name of the ExpressRouteGateway. * @param expressRouteGatewayName The name of the gateway. * @param expressRouteGatewayParameters Parameters supplied to update a virtual wan express route gateway tags. @@ -802,7 +807,7 @@ 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 expressRouteGatewayParameters Parameters supplied to update a virtual wan express route gateway tags. @@ -821,7 +826,7 @@ public ExpressRouteGatewayInner updateTags(String resourceGroupName, String expr /** * Fetches the details of a ExpressRoute gateway in a resource group. - * + * * @param resourceGroupName The name of the resource group. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -848,7 +853,7 @@ public Mono> getByResourceGroupWithResponseAs return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -858,7 +863,7 @@ public Mono> getByResourceGroupWithResponseAs /** * Fetches the details of a ExpressRoute gateway in a 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. @@ -886,7 +891,7 @@ private Mono> getByResourceGroupWithResponseA return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, expressRouteGatewayName, @@ -895,7 +900,7 @@ private Mono> getByResourceGroupWithResponseA /** * Fetches the details of a ExpressRoute gateway in a resource group. - * + * * @param resourceGroupName The name of the resource group. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -912,7 +917,7 @@ public Mono getByResourceGroupAsync(String resourceGro /** * Fetches the details of a ExpressRoute gateway in a 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. @@ -929,7 +934,7 @@ public Response getByResourceGroupWithResponse(String /** * Fetches the details of a ExpressRoute gateway in a resource group. - * + * * @param resourceGroupName The name of the resource group. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -945,7 +950,7 @@ public ExpressRouteGatewayInner getByResourceGroup(String resourceGroupName, Str /** * 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 expressRouteGatewayName The name of the ExpressRoute gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -972,7 +977,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, @@ -983,7 +988,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * 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 expressRouteGatewayName The name of the ExpressRoute gateway. * @param context The context to associate with this operation. @@ -1011,7 +1016,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, expressRouteGatewayName, apiVersion, @@ -1021,7 +1026,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * 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 expressRouteGatewayName The name of the ExpressRoute gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1040,7 +1045,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * 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 expressRouteGatewayName The name of the ExpressRoute gateway. * @param context The context to associate with this operation. @@ -1062,7 +1067,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * 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 expressRouteGatewayName The name of the ExpressRoute gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1078,7 +1083,7 @@ public SyncPoller, Void> beginDelete(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. - * + * * @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. @@ -1096,7 +1101,7 @@ public SyncPoller, Void> beginDelete(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. - * + * * @param resourceGroupName The name of the resource group. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1113,7 +1118,7 @@ public Mono deleteAsync(String resourceGroupName, String expressRouteGatew /** * 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 expressRouteGatewayName The name of the ExpressRoute gateway. * @param context The context to associate with this operation. @@ -1131,7 +1136,7 @@ private Mono deleteAsync(String resourceGroupName, String expressRouteGate /** * 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 expressRouteGatewayName The name of the ExpressRoute gateway. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1146,7 +1151,7 @@ public 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 expressRouteGatewayName The name of the ExpressRoute gateway. * @param context The context to associate with this operation. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteLinksClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteLinksClientImpl.java index b1299303212bf..d8b461ed641b7 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteLinksClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteLinksClientImpl.java @@ -124,7 +124,7 @@ public Mono> getWithResponseAsync(String resourc if (linkName == null) { return Mono.error(new IllegalArgumentException("Parameter linkName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, @@ -166,7 +166,7 @@ private Mono> getWithResponseAsync(String resour if (linkName == null) { return Mono.error(new IllegalArgumentException("Parameter linkName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, resourceGroupName, @@ -254,7 +254,7 @@ private Mono> listSinglePageAsync(String re return Mono .error(new IllegalArgumentException("Parameter expressRoutePortName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, @@ -294,7 +294,7 @@ private Mono> listSinglePageAsync(String re return Mono .error(new IllegalArgumentException("Parameter expressRoutePortName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRoutePortAuthorizationsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRoutePortAuthorizationsClientImpl.java index 57f3c04a59062..87293791d3b13 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRoutePortAuthorizationsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRoutePortAuthorizationsClientImpl.java @@ -34,10 +34,11 @@ import com.azure.resourcemanager.network.fluent.ExpressRoutePortAuthorizationsClient; import com.azure.resourcemanager.network.fluent.models.ExpressRoutePortAuthorizationInner; import com.azure.resourcemanager.network.models.ExpressRoutePortAuthorizationListResult; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in ExpressRoutePortAuthorizationsClient. */ @@ -54,7 +55,7 @@ public final class ExpressRoutePortAuthorizationsClientImpl implements ExpressRo /** * Initializes an instance of ExpressRoutePortAuthorizationsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ ExpressRoutePortAuthorizationsClientImpl(NetworkManagementClientImpl client) { @@ -123,7 +124,7 @@ Mono> listNext( /** * 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. @@ -155,7 +156,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, expressRoutePortName, @@ -165,7 +166,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * 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. @@ -198,7 +199,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, expressRoutePortName, authorizationName, @@ -207,7 +208,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * 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. @@ -227,7 +228,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * 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. @@ -249,7 +250,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * 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. @@ -266,7 +267,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -285,7 +286,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -302,7 +303,7 @@ public Mono deleteAsync(String resourceGroupName, String expressRoutePortN /** * 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. @@ -321,7 +322,7 @@ private Mono deleteAsync(String resourceGroupName, String expressRoutePort /** * 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. @@ -336,7 +337,7 @@ public void delete(String resourceGroupName, String expressRoutePortName, String /** * 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. @@ -353,7 +354,7 @@ public void delete(String resourceGroupName, String expressRoutePortName, String /** * Gets 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. @@ -386,7 +387,7 @@ public Mono> getWithResponseAsync(S return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, expressRoutePortName, @@ -396,7 +397,7 @@ public Mono> getWithResponseAsync(S /** * Gets 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. @@ -430,7 +431,7 @@ private Mono> getWithResponseAsync( return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), resourceGroupName, expressRoutePortName, authorizationName, @@ -439,7 +440,7 @@ private Mono> getWithResponseAsync( /** * Gets 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. @@ -458,7 +459,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 expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. @@ -476,7 +477,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 expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. @@ -493,7 +494,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 expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. @@ -534,7 +535,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { authorizationParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -545,7 +546,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r /** * Creates or updates an authorization in 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. @@ -587,7 +588,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { authorizationParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, expressRoutePortName, @@ -596,7 +597,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 expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. @@ -620,7 +621,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 expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. @@ -646,7 +647,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 expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. @@ -661,13 +662,15 @@ private Mono>> createOrUpdateWithResponseAsync(String public SyncPoller, ExpressRoutePortAuthorizationInner> beginCreateOrUpdate(String resourceGroupName, String expressRoutePortName, String authorizationName, ExpressRoutePortAuthorizationInner authorizationParameters) { - return this.beginCreateOrUpdateAsync(resourceGroupName, expressRoutePortName, authorizationName, - authorizationParameters).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, expressRoutePortName, authorizationName, + authorizationParameters) + .getSyncPoller(); } /** * Creates or updates an authorization in 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. @@ -683,13 +686,15 @@ private Mono>> createOrUpdateWithResponseAsync(String public SyncPoller, ExpressRoutePortAuthorizationInner> beginCreateOrUpdate(String resourceGroupName, String expressRoutePortName, String authorizationName, ExpressRoutePortAuthorizationInner authorizationParameters, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, expressRoutePortName, authorizationName, - authorizationParameters, context).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, expressRoutePortName, authorizationName, + authorizationParameters, context) + .getSyncPoller(); } /** * Creates or updates an authorization in 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. @@ -710,7 +715,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 expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. @@ -732,7 +737,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 expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. @@ -752,7 +757,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 expressRoutePortName The name of the express route port. * @param authorizationName The name of the authorization. @@ -773,7 +778,7 @@ public ExpressRoutePortAuthorizationInner createOrUpdate(String resourceGroupNam /** * Gets all authorizations in an express route port. - * + * * @param resourceGroupName The name of the resource group. * @param expressRoutePortName The name of the express route port. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -801,7 +806,7 @@ private Mono> listSinglePageAs return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, expressRoutePortName, @@ -813,7 +818,7 @@ private Mono> listSinglePageAs /** * Gets all authorizations in an express route port. - * + * * @param resourceGroupName The name of the resource group. * @param expressRoutePortName The name of the express route port. * @param context The context to associate with this operation. @@ -842,7 +847,7 @@ private Mono> listSinglePageAs return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -854,7 +859,7 @@ private Mono> listSinglePageAs /** * Gets all authorizations in an express route port. - * + * * @param resourceGroupName The name of the resource group. * @param expressRoutePortName The name of the express route port. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -871,7 +876,7 @@ public PagedFlux listAsync(String resourceGr /** * Gets all authorizations in an express route port. - * + * * @param resourceGroupName The name of the resource group. * @param expressRoutePortName The name of the express route port. * @param context The context to associate with this operation. @@ -889,7 +894,7 @@ private PagedFlux listAsync(String resourceG /** * Gets all authorizations in an express route port. - * + * * @param resourceGroupName The name of the resource group. * @param expressRoutePortName The name of the express route port. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -905,7 +910,7 @@ public PagedIterable list(String resourceGro /** * Gets all authorizations in an express route port. - * + * * @param resourceGroupName The name of the resource group. * @param expressRoutePortName The name of the express route port. * @param context The context to associate with this operation. @@ -922,9 +927,9 @@ public PagedIterable list(String resourceGro /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -950,9 +955,9 @@ private Mono> listNextSinglePa /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRoutePortsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRoutePortsClientImpl.java index b9cc280ec4534..4c7fe333a47f2 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRoutePortsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRoutePortsClientImpl.java @@ -42,10 +42,11 @@ import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in ExpressRoutePortsClient. */ @@ -63,7 +64,7 @@ public final class ExpressRoutePortsClientImpl implements InnerSupportsGet> listNext( /** * 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. @@ -195,7 +196,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono .error(new IllegalArgumentException("Parameter expressRoutePortName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -205,7 +206,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * 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. @@ -233,7 +234,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter expressRoutePortName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, resourceGroupName, @@ -242,7 +243,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * 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. @@ -259,7 +260,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * 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. @@ -280,7 +281,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * 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. @@ -295,7 +296,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -312,7 +313,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -328,7 +329,7 @@ public Mono deleteAsync(String resourceGroupName, String expressRoutePortN /** * 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. @@ -345,7 +346,7 @@ private Mono deleteAsync(String resourceGroupName, String expressRoutePort /** * 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. @@ -359,7 +360,7 @@ public 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. @@ -374,7 +375,7 @@ public void delete(String resourceGroupName, String expressRoutePortName, Contex /** * Retrieves the requested ExpressRoutePort resource. - * + * * @param resourceGroupName The name of the resource group. * @param expressRoutePortName The name of ExpressRoutePort. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -401,7 +402,7 @@ public Mono> getByResourceGroupWithResponseAsync return Mono .error(new IllegalArgumentException("Parameter expressRoutePortName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), @@ -411,7 +412,7 @@ public Mono> getByResourceGroupWithResponseAsync /** * Retrieves the requested ExpressRoutePort resource. - * + * * @param resourceGroupName The name of the resource group. * @param expressRoutePortName The name of ExpressRoutePort. * @param context The context to associate with this operation. @@ -439,7 +440,7 @@ private Mono> getByResourceGroupWithResponseAsyn return Mono .error(new IllegalArgumentException("Parameter expressRoutePortName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, @@ -448,7 +449,7 @@ private Mono> getByResourceGroupWithResponseAsyn /** * Retrieves the requested ExpressRoutePort resource. - * + * * @param resourceGroupName The name of the resource group. * @param expressRoutePortName The name of ExpressRoutePort. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -464,7 +465,7 @@ public Mono getByResourceGroupAsync(String resourceGroupN /** * Retrieves the requested ExpressRoutePort resource. - * + * * @param resourceGroupName The name of the resource group. * @param expressRoutePortName The name of ExpressRoutePort. * @param context The context to associate with this operation. @@ -481,7 +482,7 @@ public Response getByResourceGroupWithResponse(String res /** * Retrieves the requested ExpressRoutePort resource. - * + * * @param resourceGroupName The name of the resource group. * @param expressRoutePortName The name of ExpressRoutePort. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -496,7 +497,7 @@ 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 parameters Parameters supplied to the create ExpressRoutePort operation. @@ -529,7 +530,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -539,7 +540,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r /** * Creates or updates the specified ExpressRoutePort resource. - * + * * @param resourceGroupName The name of the resource group. * @param expressRoutePortName The name of the ExpressRoutePort resource. * @param parameters Parameters supplied to the create ExpressRoutePort operation. @@ -573,7 +574,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, @@ -582,7 +583,7 @@ private Mono>> createOrUpdateWithResponseAsync(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 parameters Parameters supplied to the create ExpressRoutePort operation. @@ -603,7 +604,7 @@ 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 parameters Parameters supplied to the create ExpressRoutePort operation. @@ -625,7 +626,7 @@ 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 parameters Parameters supplied to the create ExpressRoutePort operation. @@ -642,7 +643,7 @@ 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 parameters Parameters supplied to the create ExpressRoutePort operation. @@ -661,7 +662,7 @@ 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 parameters Parameters supplied to the create ExpressRoutePort operation. @@ -679,7 +680,7 @@ 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 parameters Parameters supplied to the create ExpressRoutePort operation. @@ -698,7 +699,7 @@ 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 parameters Parameters supplied to the create ExpressRoutePort operation. @@ -715,7 +716,7 @@ 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 parameters Parameters supplied to the create ExpressRoutePort operation. @@ -733,7 +734,7 @@ 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 parameters Parameters supplied to update ExpressRoutePort resource tags. @@ -766,7 +767,7 @@ public Mono> updateTagsWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -776,7 +777,7 @@ public Mono> updateTagsWithResponseAsync(String /** * Update ExpressRoutePort tags. - * + * * @param resourceGroupName The name of the resource group. * @param expressRoutePortName The name of the ExpressRoutePort resource. * @param parameters Parameters supplied to update ExpressRoutePort resource tags. @@ -810,7 +811,7 @@ private Mono> updateTagsWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, @@ -819,7 +820,7 @@ private Mono> updateTagsWithResponseAsync(String /** * Update ExpressRoutePort tags. - * + * * @param resourceGroupName The name of the resource group. * @param expressRoutePortName The name of the ExpressRoutePort resource. * @param parameters Parameters supplied to update ExpressRoutePort resource tags. @@ -837,7 +838,7 @@ 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 parameters Parameters supplied to update ExpressRoutePort resource tags. @@ -855,7 +856,7 @@ 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 parameters Parameters supplied to update ExpressRoutePort resource tags. @@ -872,7 +873,7 @@ public ExpressRoutePortInner updateTags(String resourceGroupName, String express /** * List all the ExpressRoutePort resources in the specified 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. @@ -893,7 +894,7 @@ private Mono> listByResourceGroupSinglePage return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), @@ -905,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 context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -928,7 +929,7 @@ private Mono> listByResourceGroupSinglePage return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -940,7 +941,7 @@ private Mono> listByResourceGroupSinglePage /** * List all the ExpressRoutePort resources in the specified 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. @@ -955,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 context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -971,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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -985,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 context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1000,7 +1001,7 @@ public PagedIterable listByResourceGroup(String resourceG /** * List all the ExpressRoutePort resources in the specified 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 expressRoute Port List Result along with {@link PagedResponse} on successful completion of {@link Mono}. @@ -1015,7 +1016,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, @@ -1027,7 +1028,7 @@ private Mono> listSinglePageAsync() { /** * List all the ExpressRoutePort resources in the specified 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. @@ -1044,7 +1045,7 @@ private Mono> listSinglePageAsync(Context c return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, accept, context) @@ -1054,7 +1055,7 @@ private Mono> listSinglePageAsync(Context c /** * List all the ExpressRoutePort resources in the specified 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 expressRoute Port List Result as paginated response with {@link PagedFlux}. @@ -1066,7 +1067,7 @@ public PagedFlux listAsync() { /** * List all the ExpressRoutePort resources in the specified 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. @@ -1081,7 +1082,7 @@ private PagedFlux listAsync(Context context) { /** * List all the ExpressRoutePort resources in the specified 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 expressRoute Port List Result as paginated response with {@link PagedIterable}. @@ -1093,7 +1094,7 @@ public PagedIterable list() { /** * List all the ExpressRoutePort resources in the specified 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. @@ -1107,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 expressRoutePortName The name of ExpressRoutePort. * @param request Request parameters supplied to generate a letter of authorization. @@ -1141,7 +1142,7 @@ public Mono> generateLoaWithRe } else { request.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.generateLoa(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -1151,7 +1152,7 @@ public Mono> generateLoaWithRe /** * Generate a letter of authorization for the requested ExpressRoutePort resource. - * + * * @param resourceGroupName The name of the resource group. * @param expressRoutePortName The name of ExpressRoutePort. * @param request Request parameters supplied to generate a letter of authorization. @@ -1187,7 +1188,7 @@ private Mono> generateLoaWithR } else { request.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.generateLoa(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, @@ -1196,7 +1197,7 @@ private Mono> generateLoaWithR /** * Generate a letter of authorization for the requested ExpressRoutePort resource. - * + * * @param resourceGroupName The name of the resource group. * @param expressRoutePortName The name of ExpressRoutePort. * @param request Request parameters supplied to generate a letter of authorization. @@ -1214,7 +1215,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 expressRoutePortName The name of ExpressRoutePort. * @param request Request parameters supplied to generate a letter of authorization. @@ -1232,7 +1233,7 @@ public Response generateLoaWithResponse /** * Generate a letter of authorization for the requested ExpressRoutePort resource. - * + * * @param resourceGroupName The name of the resource group. * @param expressRoutePortName The name of ExpressRoutePort. * @param request Request parameters supplied to generate a letter of authorization. @@ -1249,9 +1250,9 @@ public GenerateExpressRoutePortsLoaResultInner generateLoa(String resourceGroupN /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1278,9 +1279,9 @@ private Mono> listByResourceGroupNextSingle /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1307,9 +1308,9 @@ private Mono> listByResourceGroupNextSingle /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1334,9 +1335,9 @@ private Mono> listNextSinglePageAsync(Strin /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRoutePortsLocationsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRoutePortsLocationsClientImpl.java index f5daca6c0757c..0805af0208eee 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRoutePortsLocationsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRoutePortsLocationsClientImpl.java @@ -106,7 +106,7 @@ private Mono> listSinglePageAsync( return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, @@ -137,7 +137,7 @@ private Mono> listSinglePageAsync( return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, accept, context) @@ -225,7 +225,7 @@ public Mono> getWithResponseAsync(Strin if (locationName == null) { return Mono.error(new IllegalArgumentException("Parameter locationName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, @@ -257,7 +257,7 @@ private Mono> getWithResponseAsync(Stri if (locationName == null) { return Mono.error(new IllegalArgumentException("Parameter locationName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, locationName, accept, diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteProviderPortsLocationsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteProviderPortsLocationsClientImpl.java index e47129d8abff0..8c78d3f101986 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteProviderPortsLocationsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteProviderPortsLocationsClientImpl.java @@ -86,7 +86,7 @@ public Mono> listWithResponseA return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -116,7 +116,7 @@ private Mono> listWithResponse return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), filter, accept, diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteServiceProvidersClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteServiceProvidersClientImpl.java index f25eda76a8921..cff5438cfb703 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteServiceProvidersClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteServiceProvidersClientImpl.java @@ -56,8 +56,8 @@ 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. + * The interface defining all the services for NetworkManagementClientExpressRouteServiceProviders to be used by the + * proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "NetworkManagementCli") @@ -97,7 +97,7 @@ private Mono> listSinglePageAsyn return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -127,7 +127,7 @@ private Mono> listSinglePageAsyn return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPoliciesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPoliciesClientImpl.java index ddedcf3bf4afc..5e3af0da18aa2 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPoliciesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPoliciesClientImpl.java @@ -39,10 +39,11 @@ import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in FirewallPoliciesClient. */ @@ -60,7 +61,7 @@ public final class FirewallPoliciesClientImpl implements InnerSupportsGet> listAllNext( /** * 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. @@ -178,7 +179,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, @@ -188,7 +189,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * 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. @@ -216,7 +217,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, apiVersion, @@ -225,7 +226,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * 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. @@ -242,7 +243,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * 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. @@ -262,7 +263,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * 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. @@ -277,7 +278,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -294,7 +295,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -310,7 +311,7 @@ public Mono deleteAsync(String resourceGroupName, String firewallPolicyNam /** * 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. @@ -327,7 +328,7 @@ private Mono deleteAsync(String resourceGroupName, String firewallPolicyNa /** * 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. @@ -341,7 +342,7 @@ public 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. @@ -356,7 +357,7 @@ public void delete(String resourceGroupName, String firewallPolicyName, Context /** * Gets the specified Firewall Policy. - * + * * @param resourceGroupName The name of the resource group. * @param firewallPolicyName The name of the Firewall Policy. * @param expand Expands referenced resources. @@ -384,7 +385,7 @@ public Mono> getByResourceGroupWithResponseAsync(S return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -394,7 +395,7 @@ public Mono> getByResourceGroupWithResponseAsync(S /** * Gets the specified Firewall Policy. - * + * * @param resourceGroupName The name of the resource group. * @param firewallPolicyName The name of the Firewall Policy. * @param expand Expands referenced resources. @@ -423,7 +424,7 @@ private Mono> getByResourceGroupWithResponseAsync( return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, apiVersion, @@ -432,7 +433,7 @@ private Mono> getByResourceGroupWithResponseAsync( /** * Gets 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. @@ -449,7 +450,7 @@ public Mono getByResourceGroupAsync(String resourceGroupNam /** * Gets the specified Firewall Policy. - * + * * @param resourceGroupName The name of the resource group. * @param firewallPolicyName The name of the Firewall Policy. * @param expand Expands referenced resources. @@ -467,7 +468,7 @@ public Response getByResourceGroupWithResponse(String resou /** * Gets 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. @@ -483,7 +484,7 @@ public FirewallPolicyInner getByResourceGroup(String resourceGroupName, String f /** * Creates or updates the specified Firewall Policy. - * + * * @param resourceGroupName The name of the resource group. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to the create or update Firewall Policy operation. @@ -516,7 +517,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -526,7 +527,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r /** * Creates or updates the specified Firewall Policy. - * + * * @param resourceGroupName The name of the resource group. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to the create or update Firewall Policy operation. @@ -560,7 +561,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, apiVersion, @@ -569,7 +570,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates the specified Firewall Policy. - * + * * @param resourceGroupName The name of the resource group. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to the create or update Firewall Policy operation. @@ -589,7 +590,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates the specified Firewall Policy. - * + * * @param resourceGroupName The name of the resource group. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to the create or update Firewall Policy operation. @@ -611,7 +612,7 @@ private PollerFlux, FirewallPolicyInner> beginCr /** * Creates or updates the specified Firewall Policy. - * + * * @param resourceGroupName The name of the resource group. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to the create or update Firewall Policy operation. @@ -628,7 +629,7 @@ private PollerFlux, FirewallPolicyInner> beginCr /** * Creates or updates the specified Firewall Policy. - * + * * @param resourceGroupName The name of the resource group. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to the create or update Firewall Policy operation. @@ -647,7 +648,7 @@ public SyncPoller, FirewallPolicyInner> beginCre /** * Creates or updates the specified Firewall Policy. - * + * * @param resourceGroupName The name of the resource group. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to the create or update Firewall Policy operation. @@ -665,7 +666,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, S /** * Creates or updates the specified Firewall Policy. - * + * * @param resourceGroupName The name of the resource group. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to the create or update Firewall Policy operation. @@ -684,7 +685,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, /** * Creates or updates the specified Firewall Policy. - * + * * @param resourceGroupName The name of the resource group. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to the create or update Firewall Policy operation. @@ -701,7 +702,7 @@ public FirewallPolicyInner createOrUpdate(String resourceGroupName, String firew /** * Creates or updates the specified Firewall Policy. - * + * * @param resourceGroupName The name of the resource group. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to the create or update Firewall Policy operation. @@ -719,7 +720,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 firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to update Azure Firewall Policy tags. @@ -752,7 +753,7 @@ public Mono> updateTagsWithResponseAsync(String re } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, @@ -762,7 +763,7 @@ public Mono> updateTagsWithResponseAsync(String re /** * Updates tags of a Azure Firewall Policy resource. - * + * * @param resourceGroupName The name of the resource group. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to update Azure Firewall Policy tags. @@ -796,7 +797,7 @@ private Mono> updateTagsWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, apiVersion, @@ -805,7 +806,7 @@ private Mono> updateTagsWithResponseAsync(String r /** * Updates tags of a Azure Firewall Policy resource. - * + * * @param resourceGroupName The name of the resource group. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to update Azure Firewall Policy tags. @@ -823,7 +824,7 @@ public Mono updateTagsAsync(String resourceGroupName, Strin /** * Updates tags of a Azure Firewall Policy resource. - * + * * @param resourceGroupName The name of the resource group. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to update Azure Firewall Policy tags. @@ -841,7 +842,7 @@ public Response updateTagsWithResponse(String resourceGroup /** * Updates tags of a Azure Firewall Policy resource. - * + * * @param resourceGroupName The name of the resource group. * @param firewallPolicyName The name of the Firewall Policy. * @param parameters Parameters supplied to update Azure Firewall Policy tags. @@ -857,7 +858,7 @@ public FirewallPolicyInner updateTags(String resourceGroupName, String firewallP /** * Lists all Firewall Policies 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. @@ -879,7 +880,7 @@ private Mono> listByResourceGroupSinglePageAs return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -891,7 +892,7 @@ private Mono> listByResourceGroupSinglePageAs /** * Lists all Firewall Policies 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. @@ -915,7 +916,7 @@ private Mono> listByResourceGroupSinglePageAs return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -927,7 +928,7 @@ private Mono> listByResourceGroupSinglePageAs /** * Lists all Firewall Policies 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. @@ -942,7 +943,7 @@ public PagedFlux listByResourceGroupAsync(String resourceGr /** * Lists all Firewall Policies 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. @@ -958,7 +959,7 @@ private PagedFlux listByResourceGroupAsync(String resourceG /** * Lists all Firewall Policies 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. @@ -972,7 +973,7 @@ public PagedIterable listByResourceGroup(String resourceGro /** * Lists all Firewall Policies 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. @@ -987,7 +988,7 @@ public PagedIterable listByResourceGroup(String resourceGro /** * Gets all the Firewall 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 Firewall Policies in a subscription along with {@link PagedResponse} on successful completion of @@ -1003,7 +1004,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1015,7 +1016,7 @@ private Mono> listSinglePageAsync() { /** * Gets all the Firewall 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. @@ -1033,7 +1034,7 @@ private Mono> listSinglePageAsync(Context con return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) @@ -1043,7 +1044,7 @@ private Mono> listSinglePageAsync(Context con /** * Gets all the Firewall 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 Firewall Policies in a subscription as paginated response with {@link PagedFlux}. @@ -1055,7 +1056,7 @@ public PagedFlux listAsync() { /** * Gets all the Firewall 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. @@ -1070,7 +1071,7 @@ private PagedFlux listAsync(Context context) { /** * Gets all the Firewall 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 Firewall Policies in a subscription as paginated response with {@link PagedIterable}. @@ -1082,7 +1083,7 @@ public PagedIterable list() { /** * Gets all the Firewall 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. @@ -1096,9 +1097,9 @@ public PagedIterable list(Context context) { /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1124,9 +1125,9 @@ private Mono> listNextSinglePageAsync(String /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1153,9 +1154,9 @@ private Mono> listNextSinglePageAsync(String /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1182,9 +1183,9 @@ private Mono> listAllNextSinglePageAsync(Stri /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyDeploymentsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyDeploymentsClientImpl.java new file mode 100644 index 0000000000000..fe285f562993a --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyDeploymentsClientImpl.java @@ -0,0 +1,280 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest 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; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Post; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.network.fluent.FirewallPolicyDeploymentsClient; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +import java.nio.ByteBuffer; + +/** + * An instance of this class provides access to all the operations defined in FirewallPolicyDeploymentsClient. + */ +public final class FirewallPolicyDeploymentsClientImpl implements FirewallPolicyDeploymentsClient { + /** + * The proxy service used to perform REST calls. + */ + private final FirewallPolicyDeploymentsService service; + + /** + * The service client containing this operation class. + */ + private final NetworkManagementClientImpl client; + + /** + * Initializes an instance of FirewallPolicyDeploymentsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + FirewallPolicyDeploymentsClientImpl(NetworkManagementClientImpl client) { + this.service = RestProxy.create(FirewallPolicyDeploymentsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for NetworkManagementClientFirewallPolicyDeployments to be used by the + * proxy service to perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "NetworkManagementCli") + public interface FirewallPolicyDeploymentsService { + @Headers({ "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, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("firewallPolicyName") String firewallPolicyName, + @PathParam("subscriptionId") String subscriptionId, @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Deploys the firewall policy draft and child rule collection group drafts. + * + * @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>> deployWithResponseAsync(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 = "2023-11-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.deploy(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, + this.client.getSubscriptionId(), apiVersion, accept, 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 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>> deployWithResponseAsync(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 = "2023-11-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); + } + + /** + * Deploys the firewall policy draft and child rule collection group drafts. + * + * @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> beginDeployAsync(String resourceGroupName, String firewallPolicyName) { + Mono>> mono = deployWithResponseAsync(resourceGroupName, firewallPolicyName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deploys the firewall policy draft and child rule collection group drafts. + * + * @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> beginDeployAsync(String resourceGroupName, String firewallPolicyName, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono = deployWithResponseAsync(resourceGroupName, firewallPolicyName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deploys the firewall policy draft and child rule collection group drafts. + * + * @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> beginDeploy(String resourceGroupName, String firewallPolicyName) { + return this.beginDeployAsync(resourceGroupName, firewallPolicyName).getSyncPoller(); + } + + /** + * Deploys the firewall policy draft and child rule collection group drafts. + * + * @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> beginDeploy(String resourceGroupName, String firewallPolicyName, + Context context) { + return this.beginDeployAsync(resourceGroupName, firewallPolicyName, context).getSyncPoller(); + } + + /** + * Deploys the firewall policy draft and child rule collection group drafts. + * + * @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 deployAsync(String resourceGroupName, String firewallPolicyName) { + return beginDeployAsync(resourceGroupName, firewallPolicyName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deploys the firewall policy draft and child rule collection group drafts. + * + * @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 deployAsync(String resourceGroupName, String firewallPolicyName, Context context) { + return beginDeployAsync(resourceGroupName, firewallPolicyName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deploys the firewall policy draft and child rule collection group drafts. + * + * @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 deploy(String resourceGroupName, String firewallPolicyName) { + deployAsync(resourceGroupName, firewallPolicyName).block(); + } + + /** + * Deploys the firewall policy draft and child rule collection group drafts. + * + * @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 deploy(String resourceGroupName, String firewallPolicyName, Context context) { + deployAsync(resourceGroupName, firewallPolicyName, context).block(); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyDraftsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyDraftsClientImpl.java new file mode 100644 index 0000000000000..ca6124a79fbfb --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyDraftsClientImpl.java @@ -0,0 +1,474 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.network.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +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; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.network.fluent.FirewallPolicyDraftsClient; +import com.azure.resourcemanager.network.fluent.models.FirewallPolicyDraftInner; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in FirewallPolicyDraftsClient. + */ +public final class FirewallPolicyDraftsClientImpl implements InnerSupportsDelete, FirewallPolicyDraftsClient { + /** + * The proxy service used to perform REST calls. + */ + private final FirewallPolicyDraftsService service; + + /** + * The service client containing this operation class. + */ + private final NetworkManagementClientImpl client; + + /** + * Initializes an instance of FirewallPolicyDraftsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + FirewallPolicyDraftsClientImpl(NetworkManagementClientImpl client) { + this.service = RestProxy.create(FirewallPolicyDraftsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for NetworkManagementClientFirewallPolicyDrafts to be used by the proxy + * service to perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "NetworkManagementCli") + public interface FirewallPolicyDraftsService { + @Headers({ "Content-Type: application/json" }) + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/firewallPolicyDrafts/default") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> createOrUpdate(@HostParam("$host") String endpoint, + @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, + Context context); + + @Headers({ "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, + @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); + } + + /** + * Create or update a draft Firewall Policy. + * + * @param resourceGroupName The name of the resource group. + * @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}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + 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 (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.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String apiVersion = "2023-11-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, + firewallPolicyName, this.client.getSubscriptionId(), apiVersion, parameters, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Create or update a draft Firewall Policy. + * + * @param resourceGroupName The name of the resource group. + * @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}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + 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 (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.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String apiVersion = "2023-11-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); + } + + /** + * Create or update a draft Firewall Policy. + * + * @param resourceGroupName The name of the resource group. + * @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}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAsync(String resourceGroupName, String firewallPolicyName, + FirewallPolicyDraftInner parameters) { + return createOrUpdateWithResponseAsync(resourceGroupName, firewallPolicyName, parameters) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Create or update a draft Firewall Policy. + * + * @param resourceGroupName The name of the resource group. + * @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}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response createOrUpdateWithResponse(String resourceGroupName, + String firewallPolicyName, FirewallPolicyDraftInner parameters, Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, firewallPolicyName, parameters, context).block(); + } + + /** + * Create or update a draft Firewall Policy. + * + * @param resourceGroupName The name of the resource group. + * @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 FirewallPolicyDraftInner createOrUpdate(String resourceGroupName, String firewallPolicyName, + FirewallPolicyDraftInner parameters) { + return createOrUpdateWithResponse(resourceGroupName, firewallPolicyName, parameters, Context.NONE).getValue(); + } + + /** + * Delete a draft 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 = "2023-11-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, + this.client.getSubscriptionId(), apiVersion, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Delete a draft 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 = "2023-11-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, + this.client.getSubscriptionId(), apiVersion, accept, context); + } + + /** + * Delete a draft 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 deleteWithResponseAsync(resourceGroupName, firewallPolicyName).flatMap(ignored -> Mono.empty()); + } + + /** + * Delete a draft 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}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response deleteWithResponse(String resourceGroupName, String firewallPolicyName, Context context) { + return deleteWithResponseAsync(resourceGroupName, firewallPolicyName, context).block(); + } + + /** + * Delete a draft 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) { + deleteWithResponse(resourceGroupName, firewallPolicyName, Context.NONE); + } + + /** + * Get a draft 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 draft Firewall Policy along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + 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 (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 = "2023-11-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, + this.client.getSubscriptionId(), apiVersion, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get a draft 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 draft Firewall Policy along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + 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 (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 = "2023-11-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); + } + + /** + * Get a draft 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 draft Firewall Policy on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String firewallPolicyName) { + return getWithResponseAsync(resourceGroupName, firewallPolicyName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Get a draft 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 draft Firewall Policy along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String firewallPolicyName, + Context context) { + return getWithResponseAsync(resourceGroupName, firewallPolicyName, context).block(); + } + + /** + * Get a draft 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 draft Firewall Policy. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public FirewallPolicyDraftInner get(String resourceGroupName, String firewallPolicyName) { + return getWithResponse(resourceGroupName, firewallPolicyName, Context.NONE).getValue(); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyIdpsSignaturesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyIdpsSignaturesClientImpl.java index 5243180f53ee0..791d4fc39a1ac 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyIdpsSignaturesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyIdpsSignaturesClientImpl.java @@ -53,8 +53,8 @@ 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. + * The interface defining all the services for NetworkManagementClientFirewallPolicyIdpsSignatures to be used by the + * proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "NetworkManagementCli") @@ -107,7 +107,7 @@ public Mono> listWithResponseAsync(String resourceGr } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, @@ -152,7 +152,7 @@ private Mono> listWithResponseAsync(String resourceG } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyIdpsSignaturesFilterValuesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyIdpsSignaturesFilterValuesClientImpl.java index 9872760445f4a..fa2b36e47e627 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyIdpsSignaturesFilterValuesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyIdpsSignaturesFilterValuesClientImpl.java @@ -55,8 +55,8 @@ public final class FirewallPolicyIdpsSignaturesFilterValuesClientImpl } /** - * The interface defining all the services for NetworkManagementClientFirewallPolicyIdpsSignaturesFilterValues to - * be used by the proxy service to perform REST calls. + * The interface defining all the services for NetworkManagementClientFirewallPolicyIdpsSignaturesFilterValues to be + * used by the proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "NetworkManagementCli") @@ -109,7 +109,7 @@ public Mono> listWithRespo } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, @@ -154,7 +154,7 @@ private Mono> listWithResp } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyIdpsSignaturesOverridesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyIdpsSignaturesOverridesClientImpl.java index 17f58d852131a..cb3ba4cb5b272 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyIdpsSignaturesOverridesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyIdpsSignaturesOverridesClientImpl.java @@ -142,7 +142,7 @@ public Mono> patchWithResponseAsync(String re } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.patch(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, @@ -187,7 +187,7 @@ private Mono> patchWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.patch(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, @@ -283,7 +283,7 @@ public Mono> putWithResponseAsync(String reso } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.put(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, @@ -328,7 +328,7 @@ private Mono> putWithResponseAsync(String res } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.put(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, @@ -418,7 +418,7 @@ public Mono> getWithResponseAsync(String reso return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, @@ -457,7 +457,7 @@ private Mono> getWithResponseAsync(String res return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, @@ -542,7 +542,7 @@ public Mono> listWithResponseAsync(String return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, @@ -581,7 +581,7 @@ private Mono> listWithResponseAsync(Strin return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyRuleCollectionGroupDraftsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyRuleCollectionGroupDraftsClientImpl.java new file mode 100644 index 0000000000000..1a93124df3139 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyRuleCollectionGroupDraftsClientImpl.java @@ -0,0 +1,530 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.network.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +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; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.network.fluent.FirewallPolicyRuleCollectionGroupDraftsClient; +import com.azure.resourcemanager.network.fluent.models.FirewallPolicyRuleCollectionGroupDraftInner; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in + * FirewallPolicyRuleCollectionGroupDraftsClient. + */ +public final class FirewallPolicyRuleCollectionGroupDraftsClientImpl + implements FirewallPolicyRuleCollectionGroupDraftsClient { + /** + * The proxy service used to perform REST calls. + */ + private final FirewallPolicyRuleCollectionGroupDraftsService service; + + /** + * The service client containing this operation class. + */ + private final NetworkManagementClientImpl client; + + /** + * Initializes an instance of FirewallPolicyRuleCollectionGroupDraftsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + FirewallPolicyRuleCollectionGroupDraftsClientImpl(NetworkManagementClientImpl client) { + this.service = RestProxy.create(FirewallPolicyRuleCollectionGroupDraftsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for NetworkManagementClientFirewallPolicyRuleCollectionGroupDrafts to be + * used by the proxy service to perform REST calls. + */ + @Host("{$host}") + @ServiceInterface(name = "NetworkManagementCli") + 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 }) + @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" }) + @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, + @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); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/ruleCollectionGroups/{ruleCollectionGroupName}/ruleCollectionGroupDrafts/default") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("$host") String endpoint, + @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); + } + + /** + * Delete Rule Collection Group Draft. + * + * @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 = "2023-11-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())); + } + + /** + * Delete Rule Collection Group Draft. + * + * @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 = "2023-11-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); + } + + /** + * Delete Rule Collection Group Draft. + * + * @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 deleteWithResponseAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName) + .flatMap(ignored -> Mono.empty()); + } + + /** + * Delete Rule Collection Group Draft. + * + * @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}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response deleteWithResponse(String resourceGroupName, String firewallPolicyName, + String ruleCollectionGroupName, Context context) { + return deleteWithResponseAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName, context).block(); + } + + /** + * Delete Rule Collection Group Draft. + * + * @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) { + deleteWithResponse(resourceGroupName, firewallPolicyName, ruleCollectionGroupName, Context.NONE); + } + + /** + * Create or Update Rule Collection Group Draft. + * + * @param resourceGroupName The name of the resource group. + * @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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws 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}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> createOrUpdateWithResponseAsync( + String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName, + FirewallPolicyRuleCollectionGroupDraftInner 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 (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.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String apiVersion = "2023-11-01"; + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, + ruleCollectionGroupName, apiVersion, this.client.getSubscriptionId(), parameters, accept, 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 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 context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws 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}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> createOrUpdateWithResponseAsync( + String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName, + FirewallPolicyRuleCollectionGroupDraftInner 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 (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.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String apiVersion = "2023-11-01"; + 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); + } + + /** + * Create or Update Rule Collection Group Draft. + * + * @param resourceGroupName The name of the resource group. + * @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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws 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}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAsync(String resourceGroupName, + String firewallPolicyName, String ruleCollectionGroupName, + FirewallPolicyRuleCollectionGroupDraftInner parameters) { + return createOrUpdateWithResponseAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName, + parameters).flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Create or Update Rule Collection Group Draft. + * + * @param resourceGroupName The name of the resource group. + * @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 context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws 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}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response createOrUpdateWithResponse(String resourceGroupName, + String firewallPolicyName, String ruleCollectionGroupName, + FirewallPolicyRuleCollectionGroupDraftInner parameters, Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName, + parameters, context).block(); + } + + /** + * Create or Update Rule Collection Group Draft. + * + * @param resourceGroupName The name of the resource group. + * @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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws 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) + public FirewallPolicyRuleCollectionGroupDraftInner createOrUpdate(String resourceGroupName, + String firewallPolicyName, String ruleCollectionGroupName, + FirewallPolicyRuleCollectionGroupDraftInner parameters) { + return createOrUpdateWithResponse(resourceGroupName, firewallPolicyName, ruleCollectionGroupName, parameters, + Context.NONE).getValue(); + } + + /** + * Get Rule Collection Group Draft. + * + * @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 rule Collection Group Draft along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + 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 (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 = "2023-11-01"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, + ruleCollectionGroupName, this.client.getSubscriptionId(), apiVersion, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get Rule Collection Group Draft. + * + * @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 rule Collection Group Draft along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + 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 (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 = "2023-11-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); + } + + /** + * Get Rule Collection Group Draft. + * + * @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 rule Collection Group Draft on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, + String firewallPolicyName, String ruleCollectionGroupName) { + return getWithResponseAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Get Rule Collection Group Draft. + * + * @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 rule Collection Group Draft along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, + String firewallPolicyName, String ruleCollectionGroupName, Context context) { + return getWithResponseAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName, context).block(); + } + + /** + * Get Rule Collection Group Draft. + * + * @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 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(); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyRuleCollectionGroupsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyRuleCollectionGroupsClientImpl.java index e2e1db57abaa1..189bea8925792 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyRuleCollectionGroupsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FirewallPolicyRuleCollectionGroupsClientImpl.java @@ -34,10 +34,11 @@ import com.azure.resourcemanager.network.fluent.FirewallPolicyRuleCollectionGroupsClient; import com.azure.resourcemanager.network.fluent.models.FirewallPolicyRuleCollectionGroupInner; import com.azure.resourcemanager.network.models.FirewallPolicyRuleCollectionGroupListResult; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in FirewallPolicyRuleCollectionGroupsClient. */ @@ -54,7 +55,7 @@ public final class FirewallPolicyRuleCollectionGroupsClientImpl implements Firew /** * Initializes an instance of FirewallPolicyRuleCollectionGroupsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ FirewallPolicyRuleCollectionGroupsClientImpl(NetworkManagementClientImpl client) { @@ -124,7 +125,7 @@ Mono> listNext( /** * 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. @@ -156,7 +157,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, @@ -166,7 +167,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * 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. @@ -199,7 +200,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, ruleCollectionGroupName, @@ -208,7 +209,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * 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. @@ -228,7 +229,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * 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. @@ -250,7 +251,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * 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. @@ -267,7 +268,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -286,7 +287,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -303,7 +304,7 @@ public Mono deleteAsync(String resourceGroupName, String firewallPolicyNam /** * 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. @@ -322,7 +323,7 @@ private Mono deleteAsync(String resourceGroupName, String firewallPolicyNa /** * 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. @@ -337,7 +338,7 @@ public void delete(String resourceGroupName, String firewallPolicyName, String r /** * 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. @@ -354,7 +355,7 @@ public void delete(String resourceGroupName, String firewallPolicyName, String r /** * Gets 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. @@ -387,7 +388,7 @@ public Mono> getWithResponseAsy return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, @@ -397,7 +398,7 @@ public Mono> getWithResponseAsy /** * Gets 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. @@ -431,7 +432,7 @@ private Mono> getWithResponseAs return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, ruleCollectionGroupName, @@ -440,7 +441,7 @@ private Mono> getWithResponseAs /** * Gets 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. @@ -458,7 +459,7 @@ public Mono getAsync(String resourceGrou /** * Gets 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. @@ -476,7 +477,7 @@ public Response getWithResponse(String r /** * Gets 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. @@ -493,7 +494,7 @@ public FirewallPolicyRuleCollectionGroupInner get(String resourceGroupName, Stri /** * Creates or updates 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. @@ -531,7 +532,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -542,7 +543,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r /** * Creates or updates 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. @@ -582,7 +583,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, @@ -591,7 +592,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates 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. @@ -614,7 +615,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates 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. @@ -639,7 +640,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates 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. @@ -659,7 +660,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates 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. @@ -674,13 +675,15 @@ private Mono>> createOrUpdateWithResponseAsync(String public SyncPoller, FirewallPolicyRuleCollectionGroupInner> beginCreateOrUpdate(String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName, FirewallPolicyRuleCollectionGroupInner parameters, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName, parameters, - context).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName, parameters, + context) + .getSyncPoller(); } /** * Creates or updates 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. @@ -694,12 +697,13 @@ private Mono>> createOrUpdateWithResponseAsync(String public Mono createOrUpdateAsync(String resourceGroupName, String firewallPolicyName, String ruleCollectionGroupName, FirewallPolicyRuleCollectionGroupInner parameters) { return beginCreateOrUpdateAsync(resourceGroupName, firewallPolicyName, ruleCollectionGroupName, parameters) - .last().flatMap(this.client::getLroFinalResultOrError); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** * Creates or updates 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. @@ -720,7 +724,7 @@ private Mono createOrUpdateAsync(String /** * Creates or updates 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. @@ -738,7 +742,7 @@ public FirewallPolicyRuleCollectionGroupInner createOrUpdate(String resourceGrou /** * Creates or updates 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. @@ -758,7 +762,7 @@ public FirewallPolicyRuleCollectionGroupInner createOrUpdate(String resourceGrou /** * Lists all FirewallPolicyRuleCollectionGroups in a FirewallPolicy resource. - * + * * @param resourceGroupName The name of the resource group. * @param firewallPolicyName The name of the Firewall Policy. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -786,7 +790,7 @@ private Mono> listSinglePa return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, firewallPolicyName, @@ -798,7 +802,7 @@ private Mono> listSinglePa /** * Lists all FirewallPolicyRuleCollectionGroups in a FirewallPolicy resource. - * + * * @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. @@ -827,7 +831,7 @@ private Mono> listSinglePa return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -839,7 +843,7 @@ private Mono> listSinglePa /** * Lists all FirewallPolicyRuleCollectionGroups in a FirewallPolicy resource. - * + * * @param resourceGroupName The name of the resource group. * @param firewallPolicyName The name of the Firewall Policy. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -857,7 +861,7 @@ public PagedFlux listAsync(String resour /** * Lists all FirewallPolicyRuleCollectionGroups in a FirewallPolicy resource. - * + * * @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. @@ -876,7 +880,7 @@ private PagedFlux listAsync(String resou /** * Lists all FirewallPolicyRuleCollectionGroups in a FirewallPolicy resource. - * + * * @param resourceGroupName The name of the resource group. * @param firewallPolicyName The name of the Firewall Policy. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -893,7 +897,7 @@ public PagedIterable list(String resourc /** * Lists all FirewallPolicyRuleCollectionGroups in a FirewallPolicy resource. - * + * * @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. @@ -911,9 +915,9 @@ public PagedIterable list(String resourc /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -939,9 +943,9 @@ private Mono> listNextSing /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FlowLogsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FlowLogsClientImpl.java index 865bc07cc291a..4633a84f8fc8d 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FlowLogsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/FlowLogsClientImpl.java @@ -36,10 +36,11 @@ import com.azure.resourcemanager.network.fluent.models.FlowLogInner; import com.azure.resourcemanager.network.models.FlowLogListResult; import com.azure.resourcemanager.network.models.TagsObject; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in FlowLogsClient. */ @@ -56,7 +57,7 @@ public final class FlowLogsClientImpl implements FlowLogsClient { /** * Initializes an instance of FlowLogsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ FlowLogsClientImpl(NetworkManagementClientImpl client) { @@ -132,7 +133,7 @@ Mono> listNext(@PathParam(value = "nextLink", encode /** * Create or update a flow log for the specified network security group. - * + * * @param resourceGroupName The name of the resource group. * @param networkWatcherName The name of the network watcher. * @param flowLogName The name of the flow log. @@ -169,7 +170,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -180,7 +181,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r /** * Create or update a flow log for the specified network security group. - * + * * @param resourceGroupName The name of the resource group. * @param networkWatcherName The name of the network watcher. * @param flowLogName The name of the flow log. @@ -218,7 +219,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, networkWatcherName, flowLogName, @@ -227,7 +228,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Create or update a flow log for the specified network security group. - * + * * @param resourceGroupName The name of the resource group. * @param networkWatcherName The name of the network watcher. * @param flowLogName The name of the flow log. @@ -248,7 +249,7 @@ 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 networkWatcherName The name of the network watcher. * @param flowLogName The name of the flow log. @@ -271,7 +272,7 @@ 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 networkWatcherName The name of the network watcher. * @param flowLogName The name of the flow log. @@ -290,7 +291,7 @@ 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 networkWatcherName The name of the network watcher. * @param flowLogName The name of the flow log. @@ -310,7 +311,7 @@ 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 networkWatcherName The name of the network watcher. * @param flowLogName The name of the flow log. @@ -329,7 +330,7 @@ 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 networkWatcherName The name of the network watcher. * @param flowLogName The name of the flow log. @@ -349,7 +350,7 @@ 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 networkWatcherName The name of the network watcher. * @param flowLogName The name of the flow log. @@ -367,7 +368,7 @@ 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 networkWatcherName The name of the network watcher. * @param flowLogName The name of the flow log. @@ -386,7 +387,7 @@ public FlowLogInner createOrUpdate(String resourceGroupName, String networkWatch /** * Update tags of the specified flow log. - * + * * @param resourceGroupName The name of the resource group. * @param networkWatcherName The name of the network watcher. * @param flowLogName The name of the flow log. @@ -423,7 +424,7 @@ public Mono> updateTagsWithResponseAsync(String resourceG } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, networkWatcherName, @@ -433,7 +434,7 @@ public Mono> updateTagsWithResponseAsync(String resourceG /** * Update tags of the specified flow log. - * + * * @param resourceGroupName The name of the resource group. * @param networkWatcherName The name of the network watcher. * @param flowLogName The name of the flow log. @@ -471,7 +472,7 @@ private Mono> updateTagsWithResponseAsync(String resource } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), resourceGroupName, networkWatcherName, flowLogName, @@ -480,7 +481,7 @@ private Mono> updateTagsWithResponseAsync(String resource /** * Update tags of the specified flow log. - * + * * @param resourceGroupName The name of the resource group. * @param networkWatcherName The name of the network watcher. * @param flowLogName The name of the flow log. @@ -499,7 +500,7 @@ public Mono updateTagsAsync(String resourceGroupName, String netwo /** * Update tags of the specified flow log. - * + * * @param resourceGroupName The name of the resource group. * @param networkWatcherName The name of the network watcher. * @param flowLogName The name of the flow log. @@ -519,7 +520,7 @@ public Response updateTagsWithResponse(String resourceGroupName, S /** * Update tags of the specified flow log. - * + * * @param resourceGroupName The name of the resource group. * @param networkWatcherName The name of the network watcher. * @param flowLogName The name of the flow log. @@ -538,7 +539,7 @@ public FlowLogInner updateTags(String resourceGroupName, String networkWatcherNa /** * 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. @@ -569,7 +570,7 @@ public Mono> getWithResponseAsync(String resourceGroupNam return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, networkWatcherName, @@ -579,7 +580,7 @@ public Mono> getWithResponseAsync(String resourceGroupNam /** * 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. @@ -611,7 +612,7 @@ private Mono> getWithResponseAsync(String resourceGroupNa return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), resourceGroupName, networkWatcherName, flowLogName, apiVersion, @@ -620,7 +621,7 @@ private Mono> getWithResponseAsync(String resourceGroupNa /** * 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. @@ -637,7 +638,7 @@ public Mono getAsync(String resourceGroupName, String networkWatch /** * 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. @@ -655,7 +656,7 @@ public Response getWithResponse(String resourceGroupName, String n /** * 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. @@ -671,7 +672,7 @@ public FlowLogInner get(String resourceGroupName, String networkWatcherName, Str /** * 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. @@ -702,7 +703,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, networkWatcherName, @@ -712,7 +713,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * 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. @@ -744,7 +745,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, networkWatcherName, flowLogName, apiVersion, @@ -753,7 +754,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * 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. @@ -773,7 +774,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * 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. @@ -795,7 +796,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * 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. @@ -812,7 +813,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -830,7 +831,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -847,7 +848,7 @@ public Mono deleteAsync(String resourceGroupName, String networkWatcherNam /** * 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. @@ -866,7 +867,7 @@ private Mono deleteAsync(String resourceGroupName, String networkWatcherNa /** * 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. @@ -881,7 +882,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 networkWatcherName The name of the network watcher. * @param flowLogName The name of the flow log resource. @@ -897,7 +898,7 @@ 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -923,7 +924,7 @@ private Mono> listSinglePageAsync(String resourceGro return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, networkWatcherName, @@ -935,7 +936,7 @@ 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 context The context to associate with this operation. @@ -963,7 +964,7 @@ private Mono> listSinglePageAsync(String resourceGro return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -975,7 +976,7 @@ 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -991,7 +992,7 @@ 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 context The context to associate with this operation. @@ -1008,7 +1009,7 @@ 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. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1023,7 +1024,7 @@ 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 context The context to associate with this operation. @@ -1039,9 +1040,9 @@ public PagedIterable list(String resourceGroupName, String network /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1066,9 +1067,9 @@ private Mono> listNextSinglePageAsync(String nextLin /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/HubRouteTablesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/HubRouteTablesClientImpl.java index 519b590d191b5..1375eee42ed6f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/HubRouteTablesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/HubRouteTablesClientImpl.java @@ -34,10 +34,11 @@ import com.azure.resourcemanager.network.fluent.HubRouteTablesClient; import com.azure.resourcemanager.network.fluent.models.HubRouteTableInner; import com.azure.resourcemanager.network.models.ListHubRouteTablesResult; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in HubRouteTablesClient. */ @@ -54,7 +55,7 @@ public final class HubRouteTablesClientImpl implements HubRouteTablesClient { /** * Initializes an instance of HubRouteTablesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ HubRouteTablesClientImpl(NetworkManagementClientImpl client) { @@ -64,8 +65,8 @@ 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. + * The interface defining all the services for NetworkManagementClientHubRouteTables to be used by the proxy service + * to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "NetworkManagementCli") @@ -123,7 +124,7 @@ Mono> listNext( /** * Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. - * + * * @param resourceGroupName The resource group name of the VirtualHub. * @param virtualHubName The name of the VirtualHub. * @param routeTableName The name of the RouteTable. @@ -161,7 +162,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { routeTableParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -171,7 +172,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r /** * Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. - * + * * @param resourceGroupName The resource group name of the VirtualHub. * @param virtualHubName The name of the VirtualHub. * @param routeTableName The name of the RouteTable. @@ -210,7 +211,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { routeTableParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -219,7 +220,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates a RouteTable resource if it doesn't exist else updates the existing RouteTable. - * + * * @param resourceGroupName The resource group name of the VirtualHub. * @param virtualHubName The name of the VirtualHub. * @param routeTableName The name of the RouteTable. @@ -241,7 +242,7 @@ 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 virtualHubName The name of the VirtualHub. * @param routeTableName The name of the RouteTable. @@ -265,7 +266,7 @@ 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 virtualHubName The name of the VirtualHub. * @param routeTableName The name of the RouteTable. @@ -284,7 +285,7 @@ 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 virtualHubName The name of the VirtualHub. * @param routeTableName The name of the RouteTable. @@ -305,7 +306,7 @@ 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 virtualHubName The name of the VirtualHub. * @param routeTableName The name of the RouteTable. @@ -324,7 +325,7 @@ 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 virtualHubName The name of the VirtualHub. * @param routeTableName The name of the RouteTable. @@ -344,7 +345,7 @@ 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 virtualHubName The name of the VirtualHub. * @param routeTableName The name of the RouteTable. @@ -362,7 +363,7 @@ 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 virtualHubName The name of the VirtualHub. * @param routeTableName The name of the RouteTable. @@ -382,7 +383,7 @@ public HubRouteTableInner createOrUpdate(String resourceGroupName, String virtua /** * 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. @@ -413,7 +414,7 @@ public Mono> getWithResponseAsync(String resourceGr if (routeTableName == null) { return Mono.error(new IllegalArgumentException("Parameter routeTableName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -423,7 +424,7 @@ public Mono> getWithResponseAsync(String resourceGr /** * 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. @@ -455,7 +456,7 @@ private Mono> getWithResponseAsync(String resourceG if (routeTableName == null) { return Mono.error(new IllegalArgumentException("Parameter routeTableName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -464,7 +465,7 @@ private Mono> getWithResponseAsync(String resourceG /** * 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. @@ -481,7 +482,7 @@ public Mono getAsync(String resourceGroupName, String virtua /** * 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. @@ -499,7 +500,7 @@ public Response getWithResponse(String resourceGroupName, St /** * 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. @@ -515,7 +516,7 @@ public HubRouteTableInner get(String resourceGroupName, String virtualHubName, S /** * Deletes a RouteTable. - * + * * @param resourceGroupName The resource group name of the RouteTable. * @param virtualHubName The name of the VirtualHub. * @param routeTableName The name of the RouteTable. @@ -545,7 +546,7 @@ public Mono>> deleteWithResponseAsync(String resourceG if (routeTableName == null) { return Mono.error(new IllegalArgumentException("Parameter routeTableName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -555,7 +556,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * Deletes a RouteTable. - * + * * @param resourceGroupName The resource group name of the RouteTable. * @param virtualHubName The name of the VirtualHub. * @param routeTableName The name of the RouteTable. @@ -586,7 +587,7 @@ private Mono>> deleteWithResponseAsync(String resource if (routeTableName == null) { return Mono.error(new IllegalArgumentException("Parameter routeTableName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -595,7 +596,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * Deletes a RouteTable. - * + * * @param resourceGroupName The resource group name of the RouteTable. * @param virtualHubName The name of the VirtualHub. * @param routeTableName The name of the RouteTable. @@ -615,7 +616,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes a RouteTable. - * + * * @param resourceGroupName The resource group name of the RouteTable. * @param virtualHubName The name of the VirtualHub. * @param routeTableName The name of the RouteTable. @@ -637,7 +638,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes a RouteTable. - * + * * @param resourceGroupName The resource group name of the RouteTable. * @param virtualHubName The name of the VirtualHub. * @param routeTableName The name of the RouteTable. @@ -654,7 +655,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a RouteTable. - * + * * @param resourceGroupName The resource group name of the RouteTable. * @param virtualHubName The name of the VirtualHub. * @param routeTableName The name of the RouteTable. @@ -672,7 +673,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes a RouteTable. - * + * * @param resourceGroupName The resource group name of the RouteTable. * @param virtualHubName The name of the VirtualHub. * @param routeTableName The name of the RouteTable. @@ -689,7 +690,7 @@ public Mono deleteAsync(String resourceGroupName, String virtualHubName, S /** * Deletes a RouteTable. - * + * * @param resourceGroupName The resource group name of the RouteTable. * @param virtualHubName The name of the VirtualHub. * @param routeTableName The name of the RouteTable. @@ -708,7 +709,7 @@ private Mono deleteAsync(String resourceGroupName, String virtualHubName, /** * Deletes a RouteTable. - * + * * @param resourceGroupName The resource group name of the RouteTable. * @param virtualHubName The name of the VirtualHub. * @param routeTableName The name of the RouteTable. @@ -723,7 +724,7 @@ public void delete(String resourceGroupName, String virtualHubName, String route /** * Deletes a RouteTable. - * + * * @param resourceGroupName The resource group name of the RouteTable. * @param virtualHubName The name of the VirtualHub. * @param routeTableName The name of the RouteTable. @@ -739,7 +740,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 virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -766,7 +767,7 @@ private Mono> listSinglePageAsync(String resou if (virtualHubName == null) { return Mono.error(new IllegalArgumentException("Parameter virtualHubName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -778,7 +779,7 @@ private Mono> listSinglePageAsync(String resou /** * Retrieves the details of all RouteTables. - * + * * @param resourceGroupName The resource group name of the VirtualHub. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. @@ -806,7 +807,7 @@ private Mono> listSinglePageAsync(String resou if (virtualHubName == null) { return Mono.error(new IllegalArgumentException("Parameter virtualHubName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -818,7 +819,7 @@ private Mono> listSinglePageAsync(String resou /** * Retrieves the details of all RouteTables. - * + * * @param resourceGroupName The resource group name of the VirtualHub. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -835,7 +836,7 @@ public PagedFlux listAsync(String resourceGroupName, String /** * Retrieves the details of all RouteTables. - * + * * @param resourceGroupName The resource group name of the VirtualHub. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. @@ -853,7 +854,7 @@ private PagedFlux listAsync(String resourceGroupName, String /** * Retrieves the details of all RouteTables. - * + * * @param resourceGroupName The resource group name of the VirtualHub. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -869,7 +870,7 @@ public PagedIterable list(String resourceGroupName, String v /** * Retrieves the details of all RouteTables. - * + * * @param resourceGroupName The resource group name of the VirtualHub. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. @@ -886,9 +887,9 @@ public PagedIterable list(String resourceGroupName, String v /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -914,9 +915,9 @@ private Mono> listNextSinglePageAsync(String n /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/HubVirtualNetworkConnectionsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/HubVirtualNetworkConnectionsClientImpl.java index 514d12d2184a9..3c540ab10a3f4 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/HubVirtualNetworkConnectionsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/HubVirtualNetworkConnectionsClientImpl.java @@ -34,10 +34,11 @@ import com.azure.resourcemanager.network.fluent.HubVirtualNetworkConnectionsClient; import com.azure.resourcemanager.network.fluent.models.HubVirtualNetworkConnectionInner; import com.azure.resourcemanager.network.models.ListHubVirtualNetworkConnectionsResult; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in HubVirtualNetworkConnectionsClient. */ @@ -54,7 +55,7 @@ public final class HubVirtualNetworkConnectionsClientImpl implements HubVirtualN /** * Initializes an instance of HubVirtualNetworkConnectionsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ HubVirtualNetworkConnectionsClientImpl(NetworkManagementClientImpl client) { @@ -64,8 +65,8 @@ 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. + * The interface defining all the services for NetworkManagementClientHubVirtualNetworkConnections to be used by the + * proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "NetworkManagementCli") @@ -123,7 +124,7 @@ Mono> listNext( /** * 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. @@ -163,7 +164,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { hubVirtualNetworkConnectionParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -174,7 +175,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r /** * 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. @@ -215,7 +216,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { hubVirtualNetworkConnectionParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -224,7 +225,7 @@ 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. @@ -248,7 +249,7 @@ 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. @@ -274,7 +275,7 @@ 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. @@ -289,13 +290,15 @@ private Mono>> createOrUpdateWithResponseAsync(String public SyncPoller, HubVirtualNetworkConnectionInner> beginCreateOrUpdate(String resourceGroupName, String virtualHubName, String connectionName, HubVirtualNetworkConnectionInner hubVirtualNetworkConnectionParameters) { - return this.beginCreateOrUpdateAsync(resourceGroupName, virtualHubName, connectionName, - hubVirtualNetworkConnectionParameters).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, virtualHubName, connectionName, + hubVirtualNetworkConnectionParameters) + .getSyncPoller(); } /** * 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. @@ -311,13 +314,15 @@ private Mono>> createOrUpdateWithResponseAsync(String public SyncPoller, HubVirtualNetworkConnectionInner> beginCreateOrUpdate(String resourceGroupName, String virtualHubName, String connectionName, HubVirtualNetworkConnectionInner hubVirtualNetworkConnectionParameters, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, virtualHubName, connectionName, - hubVirtualNetworkConnectionParameters, context).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, virtualHubName, connectionName, + hubVirtualNetworkConnectionParameters, context) + .getSyncPoller(); } /** * 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. @@ -337,7 +342,7 @@ 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. @@ -359,7 +364,7 @@ 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. @@ -379,7 +384,7 @@ 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. @@ -401,7 +406,7 @@ 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. @@ -431,7 +436,7 @@ public Mono>> deleteWithResponseAsync(String resourceG if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -441,7 +446,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * 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. @@ -472,7 +477,7 @@ private Mono>> deleteWithResponseAsync(String resource if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -481,7 +486,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * 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. @@ -501,7 +506,7 @@ 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. @@ -523,7 +528,7 @@ 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. @@ -540,7 +545,7 @@ 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. @@ -558,7 +563,7 @@ 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. @@ -575,7 +580,7 @@ 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. @@ -594,7 +599,7 @@ 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. @@ -609,7 +614,7 @@ 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. @@ -625,7 +630,7 @@ 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. @@ -656,7 +661,7 @@ public Mono> getWithResponseAsync(Str if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -666,7 +671,7 @@ public Mono> getWithResponseAsync(Str /** * 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. @@ -698,7 +703,7 @@ private Mono> getWithResponseAsync(St if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -707,7 +712,7 @@ private Mono> getWithResponseAsync(St /** * 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. @@ -725,7 +730,7 @@ 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. @@ -743,7 +748,7 @@ 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. @@ -760,7 +765,7 @@ public HubVirtualNetworkConnectionInner get(String resourceGroupName, String vir /** * Retrieves the details of all HubVirtualNetworkConnections. - * + * * @param resourceGroupName The resource group name of the VirtualHub. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -787,7 +792,7 @@ private Mono> listSinglePageAsyn if (virtualHubName == null) { return Mono.error(new IllegalArgumentException("Parameter virtualHubName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -799,7 +804,7 @@ private Mono> listSinglePageAsyn /** * Retrieves the details of all HubVirtualNetworkConnections. - * + * * @param resourceGroupName The resource group name of the VirtualHub. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. @@ -827,7 +832,7 @@ private Mono> listSinglePageAsyn if (virtualHubName == null) { return Mono.error(new IllegalArgumentException("Parameter virtualHubName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -839,7 +844,7 @@ private Mono> listSinglePageAsyn /** * Retrieves the details of all HubVirtualNetworkConnections. - * + * * @param resourceGroupName The resource group name of the VirtualHub. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -856,7 +861,7 @@ public PagedFlux listAsync(String resourceGrou /** * Retrieves the details of all HubVirtualNetworkConnections. - * + * * @param resourceGroupName The resource group name of the VirtualHub. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. @@ -875,7 +880,7 @@ private PagedFlux listAsync(String resourceGro /** * Retrieves the details of all HubVirtualNetworkConnections. - * + * * @param resourceGroupName The resource group name of the VirtualHub. * @param virtualHubName The name of the VirtualHub. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -891,7 +896,7 @@ public PagedIterable list(String resourceGroup /** * Retrieves the details of all HubVirtualNetworkConnections. - * + * * @param resourceGroupName The resource group name of the VirtualHub. * @param virtualHubName The name of the VirtualHub. * @param context The context to associate with this operation. @@ -909,9 +914,9 @@ public PagedIterable list(String resourceGroup /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -937,9 +942,9 @@ private Mono> listNextSinglePage /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/InboundNatRulesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/InboundNatRulesClientImpl.java index 3c09ad400fb3e..83487b3c1baf9 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/InboundNatRulesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/InboundNatRulesClientImpl.java @@ -34,10 +34,11 @@ import com.azure.resourcemanager.network.fluent.InboundNatRulesClient; import com.azure.resourcemanager.network.fluent.models.InboundNatRuleInner; import com.azure.resourcemanager.network.models.InboundNatRuleListResult; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in InboundNatRulesClient. */ @@ -54,7 +55,7 @@ public final class InboundNatRulesClientImpl implements InboundNatRulesClient { /** * Initializes an instance of InboundNatRulesClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ InboundNatRulesClientImpl(NetworkManagementClientImpl client) { @@ -123,7 +124,7 @@ Mono> listNext( /** * 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. @@ -151,7 +152,7 @@ private Mono> listSinglePageAsync(String reso return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, loadBalancerName, @@ -163,7 +164,7 @@ private Mono> listSinglePageAsync(String reso /** * 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. * @param context The context to associate with this operation. @@ -192,7 +193,7 @@ private Mono> listSinglePageAsync(String reso return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -204,7 +205,7 @@ private Mono> listSinglePageAsync(String reso /** * 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. @@ -220,7 +221,7 @@ public PagedFlux listAsync(String resourceGroupName, String /** * 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. * @param context The context to associate with this operation. @@ -238,7 +239,7 @@ private PagedFlux listAsync(String resourceGroupName, Strin /** * 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. @@ -253,7 +254,7 @@ public PagedIterable list(String resourceGroupName, String /** * 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. * @param context The context to associate with this operation. @@ -269,7 +270,7 @@ public PagedIterable list(String resourceGroupName, String /** * Deletes the specified load balancer inbound NAT rule. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. @@ -301,7 +302,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, loadBalancerName, @@ -311,7 +312,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * Deletes the specified load balancer inbound NAT rule. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. @@ -344,7 +345,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, loadBalancerName, inboundNatRuleName, @@ -353,7 +354,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * Deletes the specified load balancer inbound NAT rule. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. @@ -373,7 +374,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes the specified load balancer inbound NAT rule. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. @@ -395,7 +396,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes the specified load balancer inbound NAT rule. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. @@ -412,7 +413,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes the specified load balancer inbound NAT rule. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. @@ -430,7 +431,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes the specified load balancer inbound NAT rule. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. @@ -447,7 +448,7 @@ public Mono deleteAsync(String resourceGroupName, String loadBalancerName, /** * Deletes the specified load balancer inbound NAT rule. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. @@ -466,7 +467,7 @@ private Mono deleteAsync(String resourceGroupName, String loadBalancerName /** * Deletes the specified load balancer inbound NAT rule. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. @@ -481,7 +482,7 @@ public void delete(String resourceGroupName, String loadBalancerName, String inb /** * Deletes the specified load balancer inbound NAT rule. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. @@ -497,7 +498,7 @@ public void delete(String resourceGroupName, String loadBalancerName, String inb /** * Gets the specified load balancer inbound NAT rule. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. @@ -531,7 +532,7 @@ public Mono> getWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, loadBalancerName, @@ -541,7 +542,7 @@ public Mono> getWithResponseAsync(String resourceG /** * Gets the specified load balancer inbound NAT rule. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. @@ -576,7 +577,7 @@ private Mono> getWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), resourceGroupName, loadBalancerName, inboundNatRuleName, @@ -585,7 +586,7 @@ private Mono> getWithResponseAsync(String resource /** * Gets the specified load balancer inbound NAT rule. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. @@ -604,7 +605,7 @@ public Mono getAsync(String resourceGroupName, String loadB /** * Gets the specified load balancer inbound NAT rule. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. @@ -623,7 +624,7 @@ public Response getWithResponse(String resourceGroupName, S /** * Gets the specified load balancer inbound NAT rule. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. @@ -641,7 +642,7 @@ public InboundNatRuleInner get(String resourceGroupName, String loadBalancerName /** * Creates or updates a load balancer inbound NAT rule. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. @@ -681,7 +682,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { inboundNatRuleParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -692,7 +693,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r /** * Creates or updates a load balancer inbound NAT rule. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. @@ -734,7 +735,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { inboundNatRuleParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, loadBalancerName, @@ -743,7 +744,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a load balancer inbound NAT rule. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. @@ -765,7 +766,7 @@ public PollerFlux, InboundNatRuleInner> beginCre /** * Creates or updates a load balancer inbound NAT rule. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. @@ -789,7 +790,7 @@ private PollerFlux, InboundNatRuleInner> beginCr /** * Creates or updates a load balancer inbound NAT rule. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. @@ -810,7 +811,7 @@ public SyncPoller, InboundNatRuleInner> beginCre /** * Creates or updates a load balancer inbound NAT rule. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. @@ -825,13 +826,15 @@ public SyncPoller, InboundNatRuleInner> beginCre public SyncPoller, InboundNatRuleInner> beginCreateOrUpdate( String resourceGroupName, String loadBalancerName, String inboundNatRuleName, InboundNatRuleInner inboundNatRuleParameters, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, loadBalancerName, inboundNatRuleName, - inboundNatRuleParameters, context).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, loadBalancerName, inboundNatRuleName, inboundNatRuleParameters, + context) + .getSyncPoller(); } /** * Creates or updates a load balancer inbound NAT rule. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. @@ -850,7 +853,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, S /** * Creates or updates a load balancer inbound NAT rule. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. @@ -870,7 +873,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, /** * Creates or updates a load balancer inbound NAT rule. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. @@ -889,7 +892,7 @@ public InboundNatRuleInner createOrUpdate(String resourceGroupName, String loadB /** * Creates or updates a load balancer inbound NAT rule. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param inboundNatRuleName The name of the inbound NAT rule. @@ -909,9 +912,9 @@ public InboundNatRuleInner createOrUpdate(String resourceGroupName, String loadB /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -937,9 +940,9 @@ private Mono> listNextSinglePageAsync(String /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/InboundSecurityRuleOperationsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/InboundSecurityRuleOperationsClientImpl.java index fda0ecb5d2d04..8289d22f311e6 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/InboundSecurityRuleOperationsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/InboundSecurityRuleOperationsClientImpl.java @@ -27,10 +27,11 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.InboundSecurityRuleOperationsClient; import com.azure.resourcemanager.network.fluent.models.InboundSecurityRuleInner; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in InboundSecurityRuleOperationsClient. */ @@ -47,7 +48,7 @@ public final class InboundSecurityRuleOperationsClientImpl implements InboundSec /** * Initializes an instance of InboundSecurityRuleOperationsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ InboundSecurityRuleOperationsClientImpl(NetworkManagementClientImpl client) { @@ -78,7 +79,7 @@ Mono>> createOrUpdate(@HostParam("$host") String endpo /** * 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. @@ -117,7 +118,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -128,7 +129,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r /** * 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. @@ -169,7 +170,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, networkVirtualApplianceName, @@ -178,7 +179,7 @@ private Mono>> createOrUpdateWithResponseAsync(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. @@ -202,7 +203,7 @@ 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. @@ -227,7 +228,7 @@ 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. @@ -249,7 +250,7 @@ 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. @@ -265,13 +266,15 @@ public SyncPoller, InboundSecurityRuleInner public SyncPoller, InboundSecurityRuleInner> beginCreateOrUpdate( String resourceGroupName, String networkVirtualApplianceName, String ruleCollectionName, InboundSecurityRuleInner parameters, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, networkVirtualApplianceName, ruleCollectionName, - parameters, context).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, networkVirtualApplianceName, ruleCollectionName, parameters, + context) + .getSyncPoller(); } /** * 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. @@ -286,12 +289,13 @@ public SyncPoller, InboundSecurityRuleInner public Mono createOrUpdateAsync(String resourceGroupName, String networkVirtualApplianceName, String ruleCollectionName, InboundSecurityRuleInner parameters) { return beginCreateOrUpdateAsync(resourceGroupName, networkVirtualApplianceName, ruleCollectionName, parameters) - .last().flatMap(this.client::getLroFinalResultOrError); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** * 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. @@ -313,7 +317,7 @@ 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. @@ -333,7 +337,7 @@ 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. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/IpAllocationsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/IpAllocationsClientImpl.java index 8f71337afecbf..208c7b2cdc356 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/IpAllocationsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/IpAllocationsClientImpl.java @@ -39,10 +39,11 @@ import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in IpAllocationsClient. */ @@ -60,7 +61,7 @@ public final class IpAllocationsClientImpl implements InnerSupportsGet> listByResourceGroupNext( /** * 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. @@ -176,7 +177,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, ipAllocationName, @@ -186,7 +187,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * 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. @@ -214,7 +215,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, ipAllocationName, apiVersion, @@ -223,7 +224,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * 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. @@ -240,7 +241,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * 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. @@ -260,7 +261,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * 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. @@ -275,7 +276,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -292,7 +293,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -308,7 +309,7 @@ public 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. * @param context The context to associate with this operation. @@ -325,7 +326,7 @@ private 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. @@ -339,7 +340,7 @@ public 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. @@ -354,7 +355,7 @@ public void delete(String resourceGroupName, String ipAllocationName, Context co /** * Gets the specified IpAllocation by resource group. - * + * * @param resourceGroupName The name of the resource group. * @param ipAllocationName The name of the IpAllocation. * @param expand Expands referenced resources. @@ -383,7 +384,7 @@ public Mono> getByResourceGroupWithResponseAsync(Str return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -393,7 +394,7 @@ public Mono> getByResourceGroupWithResponseAsync(Str /** * Gets the specified IpAllocation by resource group. - * + * * @param resourceGroupName The name of the resource group. * @param ipAllocationName The name of the IpAllocation. * @param expand Expands referenced resources. @@ -423,7 +424,7 @@ private Mono> getByResourceGroupWithResponseAsync(St return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, ipAllocationName, apiVersion, @@ -432,7 +433,7 @@ private Mono> getByResourceGroupWithResponseAsync(St /** * Gets the specified IpAllocation by resource group. - * + * * @param resourceGroupName The name of the resource group. * @param ipAllocationName The name of the IpAllocation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -449,7 +450,7 @@ public Mono getByResourceGroupAsync(String resourceGroupName, /** * Gets the specified IpAllocation by resource group. - * + * * @param resourceGroupName The name of the resource group. * @param ipAllocationName The name of the IpAllocation. * @param expand Expands referenced resources. @@ -467,7 +468,7 @@ public Response getByResourceGroupWithResponse(String resourc /** * Gets the specified IpAllocation by resource group. - * + * * @param resourceGroupName The name of the resource group. * @param ipAllocationName The name of the IpAllocation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -483,7 +484,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 ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to the create or update virtual network operation. @@ -516,7 +517,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -526,7 +527,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r /** * Creates or updates an IpAllocation in the specified resource group. - * + * * @param resourceGroupName The name of the resource group. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to the create or update virtual network operation. @@ -560,7 +561,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, ipAllocationName, apiVersion, @@ -569,7 +570,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates an IpAllocation in the specified resource group. - * + * * @param resourceGroupName The name of the resource group. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to the create or update virtual network operation. @@ -589,7 +590,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates an IpAllocation in the specified resource group. - * + * * @param resourceGroupName The name of the resource group. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to the create or update virtual network operation. @@ -611,7 +612,7 @@ private PollerFlux, IpAllocationInner> beginCreate /** * Creates or updates an IpAllocation in the specified resource group. - * + * * @param resourceGroupName The name of the resource group. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to the create or update virtual network operation. @@ -628,7 +629,7 @@ public SyncPoller, IpAllocationInner> beginCreateO /** * Creates or updates an IpAllocation in the specified resource group. - * + * * @param resourceGroupName The name of the resource group. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to the create or update virtual network operation. @@ -646,7 +647,7 @@ public SyncPoller, IpAllocationInner> beginCreateO /** * Creates or updates an IpAllocation in the specified resource group. - * + * * @param resourceGroupName The name of the resource group. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to the create or update virtual network operation. @@ -664,7 +665,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 ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to the create or update virtual network operation. @@ -683,7 +684,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 ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to the create or update virtual network operation. @@ -700,7 +701,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 ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to the create or update virtual network operation. @@ -718,7 +719,7 @@ public IpAllocationInner createOrUpdate(String resourceGroupName, String ipAlloc /** * Updates a IpAllocation tags. - * + * * @param resourceGroupName The name of the resource group. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to update IpAllocation tags. @@ -751,7 +752,7 @@ public Mono> updateTagsWithResponseAsync(String reso } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, ipAllocationName, @@ -761,7 +762,7 @@ public Mono> updateTagsWithResponseAsync(String reso /** * Updates a IpAllocation tags. - * + * * @param resourceGroupName The name of the resource group. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to update IpAllocation tags. @@ -795,7 +796,7 @@ private Mono> updateTagsWithResponseAsync(String res } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), resourceGroupName, ipAllocationName, apiVersion, @@ -804,7 +805,7 @@ private Mono> updateTagsWithResponseAsync(String res /** * Updates a IpAllocation tags. - * + * * @param resourceGroupName The name of the resource group. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to update IpAllocation tags. @@ -822,7 +823,7 @@ public Mono updateTagsAsync(String resourceGroupName, String /** * Updates a IpAllocation tags. - * + * * @param resourceGroupName The name of the resource group. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to update IpAllocation tags. @@ -840,7 +841,7 @@ public Response updateTagsWithResponse(String resourceGroupNa /** * Updates a IpAllocation tags. - * + * * @param resourceGroupName The name of the resource group. * @param ipAllocationName The name of the IpAllocation. * @param parameters Parameters supplied to update IpAllocation tags. @@ -856,7 +857,7 @@ public IpAllocationInner updateTags(String resourceGroupName, String ipAllocatio /** * 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 along with {@link PagedResponse} on successful completion of @@ -872,7 +873,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -884,7 +885,7 @@ private Mono> listSinglePageAsync() { /** * 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. @@ -902,7 +903,7 @@ private Mono> listSinglePageAsync(Context conte return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) @@ -912,7 +913,7 @@ private Mono> listSinglePageAsync(Context conte /** * 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}. @@ -924,7 +925,7 @@ public PagedFlux 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. @@ -939,7 +940,7 @@ private PagedFlux listAsync(Context 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}. @@ -951,7 +952,7 @@ public 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 ManagementException thrown if the request is rejected by server. @@ -965,7 +966,7 @@ public PagedIterable list(Context context) { /** * Gets all IpAllocations 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. @@ -987,7 +988,7 @@ private Mono> listByResourceGroupSinglePageAsyn return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -999,7 +1000,7 @@ private Mono> listByResourceGroupSinglePageAsyn /** * Gets all IpAllocations 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. @@ -1023,7 +1024,7 @@ private Mono> listByResourceGroupSinglePageAsyn return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1035,7 +1036,7 @@ private Mono> listByResourceGroupSinglePageAsyn /** * Gets all IpAllocations 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. @@ -1050,7 +1051,7 @@ public PagedFlux listByResourceGroupAsync(String resourceGrou /** * Gets all IpAllocations 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. @@ -1066,7 +1067,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGro /** * Gets all IpAllocations 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. @@ -1080,7 +1081,7 @@ public PagedIterable listByResourceGroup(String resourceGroup /** * Gets all IpAllocations 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. @@ -1095,9 +1096,9 @@ public PagedIterable listByResourceGroup(String resourceGroup /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1123,9 +1124,9 @@ private Mono> listNextSinglePageAsync(String ne /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1152,9 +1153,9 @@ private Mono> listNextSinglePageAsync(String ne /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1182,9 +1183,9 @@ private Mono> listByResourceGroupNextSinglePage /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/IpGroupsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/IpGroupsClientImpl.java index 3b83158953d9f..9d57bcb5a406b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/IpGroupsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/IpGroupsClientImpl.java @@ -39,10 +39,11 @@ import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in IpGroupsClient. */ @@ -60,7 +61,7 @@ public final class IpGroupsClientImpl implements InnerSupportsGet, /** * Initializes an instance of IpGroupsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ IpGroupsClientImpl(NetworkManagementClientImpl client) { @@ -147,7 +148,7 @@ Mono> listNext(@PathParam(value = "nextLink", encode /** * Gets the specified ipGroups. - * + * * @param resourceGroupName The name of the resource group. * @param ipGroupsName The name of the ipGroups. * @param expand Expands resourceIds (of Firewalls/Network Security Groups etc.) back referenced by the IpGroups @@ -175,7 +176,7 @@ public Mono> getByResourceGroupWithResponseAsync(String r return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -185,7 +186,7 @@ public Mono> getByResourceGroupWithResponseAsync(String r /** * Gets the specified ipGroups. - * + * * @param resourceGroupName The name of the resource group. * @param ipGroupsName The name of the ipGroups. * @param expand Expands resourceIds (of Firewalls/Network Security Groups etc.) back referenced by the IpGroups @@ -214,7 +215,7 @@ private Mono> getByResourceGroupWithResponseAsync(String return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, ipGroupsName, apiVersion, @@ -223,7 +224,7 @@ private Mono> getByResourceGroupWithResponseAsync(String /** * Gets the specified ipGroups. - * + * * @param resourceGroupName The name of the resource group. * @param ipGroupsName The name of the ipGroups. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -240,7 +241,7 @@ public Mono getByResourceGroupAsync(String resourceGroupName, Stri /** * Gets the specified ipGroups. - * + * * @param resourceGroupName The name of the resource group. * @param ipGroupsName The name of the ipGroups. * @param expand Expands resourceIds (of Firewalls/Network Security Groups etc.) back referenced by the IpGroups @@ -259,7 +260,7 @@ public Response getByResourceGroupWithResponse(String resourceGrou /** * Gets the specified ipGroups. - * + * * @param resourceGroupName The name of the resource group. * @param ipGroupsName The name of the ipGroups. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -275,7 +276,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 ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the create or update IpGroups operation. @@ -307,7 +308,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, ipGroupsName, @@ -317,7 +318,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r /** * Creates or updates an ipGroups in a specified resource group. - * + * * @param resourceGroupName The name of the resource group. * @param ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the create or update IpGroups operation. @@ -350,7 +351,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, ipGroupsName, apiVersion, @@ -359,7 +360,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates an ipGroups in a specified resource group. - * + * * @param resourceGroupName The name of the resource group. * @param ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the create or update IpGroups operation. @@ -379,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 ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the create or update IpGroups operation. @@ -401,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 ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the create or update IpGroups operation. @@ -418,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 ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the create or update IpGroups operation. @@ -436,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 ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the create or update IpGroups operation. @@ -454,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 ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the create or update IpGroups operation. @@ -473,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 ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the create or update IpGroups operation. @@ -489,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 ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the create or update IpGroups operation. @@ -507,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 ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the update ipGroups operation. @@ -539,7 +540,7 @@ public Mono> updateGroupsWithResponseAsync(String resourc } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateGroups(this.client.getEndpoint(), resourceGroupName, ipGroupsName, @@ -549,7 +550,7 @@ public Mono> updateGroupsWithResponseAsync(String resourc /** * Updates tags of an IpGroups resource. - * + * * @param resourceGroupName The name of the resource group. * @param ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the update ipGroups operation. @@ -582,7 +583,7 @@ private Mono> updateGroupsWithResponseAsync(String resour } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateGroups(this.client.getEndpoint(), resourceGroupName, ipGroupsName, apiVersion, @@ -591,7 +592,7 @@ private Mono> updateGroupsWithResponseAsync(String resour /** * Updates tags of an IpGroups resource. - * + * * @param resourceGroupName The name of the resource group. * @param ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the update ipGroups operation. @@ -608,7 +609,7 @@ public Mono updateGroupsAsync(String resourceGroupName, String ipG /** * Updates tags of an IpGroups resource. - * + * * @param resourceGroupName The name of the resource group. * @param ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the update ipGroups operation. @@ -626,7 +627,7 @@ public Response updateGroupsWithResponse(String resourceGroupName, /** * Updates tags of an IpGroups resource. - * + * * @param resourceGroupName The name of the resource group. * @param ipGroupsName The name of the ipGroups. * @param parameters Parameters supplied to the update ipGroups operation. @@ -642,7 +643,7 @@ public IpGroupInner updateGroups(String resourceGroupName, String ipGroupsName, /** * Deletes the specified ipGroups. - * + * * @param resourceGroupName The name of the resource group. * @param ipGroupsName The name of the ipGroups. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -667,7 +668,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, ipGroupsName, @@ -677,7 +678,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * Deletes the specified ipGroups. - * + * * @param resourceGroupName The name of the resource group. * @param ipGroupsName The name of the ipGroups. * @param context The context to associate with this operation. @@ -704,7 +705,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, ipGroupsName, apiVersion, @@ -713,7 +714,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * Deletes the specified ipGroups. - * + * * @param resourceGroupName The name of the resource group. * @param ipGroupsName The name of the ipGroups. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -730,7 +731,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes the specified ipGroups. - * + * * @param resourceGroupName The name of the resource group. * @param ipGroupsName The name of the ipGroups. * @param context The context to associate with this operation. @@ -750,7 +751,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes the specified ipGroups. - * + * * @param resourceGroupName The name of the resource group. * @param ipGroupsName The name of the ipGroups. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -765,7 +766,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes the specified ipGroups. - * + * * @param resourceGroupName The name of the resource group. * @param ipGroupsName The name of the ipGroups. * @param context The context to associate with this operation. @@ -782,7 +783,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes the specified ipGroups. - * + * * @param resourceGroupName The name of the resource group. * @param ipGroupsName The name of the ipGroups. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -797,7 +798,7 @@ public Mono deleteAsync(String resourceGroupName, String ipGroupsName) { /** * Deletes the specified ipGroups. - * + * * @param resourceGroupName The name of the resource group. * @param ipGroupsName The name of the ipGroups. * @param context The context to associate with this operation. @@ -814,7 +815,7 @@ private Mono deleteAsync(String resourceGroupName, String ipGroupsName, Co /** * Deletes the specified ipGroups. - * + * * @param resourceGroupName The name of the resource group. * @param ipGroupsName The name of the ipGroups. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -828,7 +829,7 @@ public void delete(String resourceGroupName, String ipGroupsName) { /** * Deletes the specified ipGroups. - * + * * @param resourceGroupName The name of the resource group. * @param ipGroupsName The name of the ipGroups. * @param context The context to associate with this operation. @@ -843,7 +844,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. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -865,7 +866,7 @@ private Mono> listByResourceGroupSinglePageAsync(Str return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -877,7 +878,7 @@ private Mono> listByResourceGroupSinglePageAsync(Str /** * Gets all IpGroups 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. @@ -901,7 +902,7 @@ private Mono> listByResourceGroupSinglePageAsync(Str return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -913,7 +914,7 @@ private Mono> listByResourceGroupSinglePageAsync(Str /** * Gets all IpGroups in a resource group. - * + * * @param resourceGroupName The name of the resource group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -928,7 +929,7 @@ public PagedFlux listByResourceGroupAsync(String resourceGroupName /** * Gets all IpGroups 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. @@ -944,7 +945,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGroupNam /** * Gets all IpGroups in a resource group. - * + * * @param resourceGroupName The name of the resource group. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -958,7 +959,7 @@ public PagedIterable listByResourceGroup(String resourceGroupName) /** * Gets all IpGroups 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. @@ -973,7 +974,7 @@ public PagedIterable listByResourceGroup(String resourceGroupName, /** * Gets all IpGroups in a subscription. - * + * * @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 IpGroups in a subscription along with {@link PagedResponse} on successful completion of {@link Mono}. @@ -988,7 +989,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1000,7 +1001,7 @@ private Mono> listSinglePageAsync() { /** * Gets all IpGroups in a subscription. - * + * * @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. @@ -1017,7 +1018,7 @@ private Mono> listSinglePageAsync(Context context) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) @@ -1027,7 +1028,7 @@ private Mono> listSinglePageAsync(Context context) { /** * Gets all IpGroups in a subscription. - * + * * @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 IpGroups in a subscription as paginated response with {@link PagedFlux}. @@ -1039,7 +1040,7 @@ public PagedFlux listAsync() { /** * Gets all IpGroups in a subscription. - * + * * @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. @@ -1054,7 +1055,7 @@ private PagedFlux listAsync(Context context) { /** * Gets all IpGroups in a subscription. - * + * * @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 IpGroups in a subscription as paginated response with {@link PagedIterable}. @@ -1066,7 +1067,7 @@ public PagedIterable list() { /** * Gets all IpGroups in a subscription. - * + * * @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. @@ -1080,9 +1081,9 @@ public PagedIterable list(Context context) { /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -1110,9 +1111,9 @@ private Mono> listByResourceGroupNextSinglePageAsync /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1139,9 +1140,9 @@ private Mono> listByResourceGroupNextSinglePageAsync /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorException thrown if the request is rejected by server. @@ -1167,9 +1168,9 @@ private Mono> listNextSinglePageAsync(String nextLin /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerBackendAddressPoolsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerBackendAddressPoolsClientImpl.java index 1d4e826577207..cbe2fed36d65f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerBackendAddressPoolsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerBackendAddressPoolsClientImpl.java @@ -34,10 +34,11 @@ import com.azure.resourcemanager.network.fluent.LoadBalancerBackendAddressPoolsClient; import com.azure.resourcemanager.network.fluent.models.BackendAddressPoolInner; import com.azure.resourcemanager.network.models.LoadBalancerBackendAddressPoolListResult; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in LoadBalancerBackendAddressPoolsClient. */ @@ -54,7 +55,7 @@ public final class LoadBalancerBackendAddressPoolsClientImpl implements LoadBala /** * Initializes an instance of LoadBalancerBackendAddressPoolsClientImpl. - * + * * @param client the instance of the service client containing this operation class. */ LoadBalancerBackendAddressPoolsClientImpl(NetworkManagementClientImpl client) { @@ -124,7 +125,7 @@ Mono> listNext( /** * 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. @@ -152,7 +153,7 @@ private Mono> listSinglePageAsync(String return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, loadBalancerName, @@ -164,7 +165,7 @@ private Mono> listSinglePageAsync(String /** * 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. @@ -193,7 +194,7 @@ private Mono> listSinglePageAsync(String return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -205,7 +206,7 @@ private Mono> listSinglePageAsync(String /** * 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. @@ -221,7 +222,7 @@ public PagedFlux listAsync(String resourceGroupName, St /** * 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. @@ -239,7 +240,7 @@ private PagedFlux listAsync(String resourceGroupName, S /** * 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. @@ -254,7 +255,7 @@ public PagedIterable list(String resourceGroupName, Str /** * 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. @@ -271,7 +272,7 @@ public PagedIterable list(String resourceGroupName, Str /** * Gets load balancer backend address pool. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. @@ -303,7 +304,7 @@ public Mono> getWithResponseAsync(String resou return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, loadBalancerName, @@ -313,7 +314,7 @@ public Mono> getWithResponseAsync(String resou /** * Gets load balancer backend address pool. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. @@ -346,7 +347,7 @@ private Mono> getWithResponseAsync(String reso return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), resourceGroupName, loadBalancerName, backendAddressPoolName, @@ -355,7 +356,7 @@ private Mono> getWithResponseAsync(String reso /** * Gets load balancer backend address pool. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. @@ -373,7 +374,7 @@ public Mono getAsync(String resourceGroupName, String l /** * Gets load balancer backend address pool. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. @@ -391,7 +392,7 @@ public Response getWithResponse(String resourceGroupNam /** * Gets load balancer backend address pool. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. @@ -408,7 +409,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 loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. @@ -446,7 +447,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -457,7 +458,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r /** * Creates or updates a load balancer backend address pool. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. @@ -496,7 +497,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, loadBalancerName, @@ -505,7 +506,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a load balancer backend address pool. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. @@ -528,7 +529,7 @@ public PollerFlux, BackendAddressPoolInner> /** * Creates or updates a load balancer backend address pool. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. @@ -552,7 +553,7 @@ private PollerFlux, BackendAddressPoolInner> /** * Creates or updates a load balancer backend address pool. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. @@ -572,7 +573,7 @@ public SyncPoller, BackendAddressPoolInner> /** * Creates or updates a load balancer backend address pool. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. @@ -594,7 +595,7 @@ public SyncPoller, BackendAddressPoolInner> /** * Creates or updates a load balancer backend address pool. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. @@ -613,7 +614,7 @@ public Mono createOrUpdateAsync(String resourceGroupNam /** * Creates or updates a load balancer backend address pool. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. @@ -633,7 +634,7 @@ private Mono createOrUpdateAsync(String resourceGroupNa /** * Creates or updates a load balancer backend address pool. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. @@ -651,7 +652,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 loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. @@ -671,7 +672,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 loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. @@ -703,7 +704,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, loadBalancerName, @@ -713,7 +714,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * Deletes the specified load balancer backend address pool. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. @@ -746,7 +747,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, loadBalancerName, backendAddressPoolName, @@ -755,7 +756,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * Deletes the specified load balancer backend address pool. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. @@ -775,7 +776,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Deletes the specified load balancer backend address pool. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. @@ -797,7 +798,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Deletes the specified load balancer backend address pool. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. @@ -814,7 +815,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes the specified load balancer backend address pool. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. @@ -833,7 +834,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Deletes the specified load balancer backend address pool. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. @@ -850,7 +851,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 loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. @@ -869,7 +870,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 loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. @@ -884,7 +885,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 loadBalancerName The name of the load balancer. * @param backendAddressPoolName The name of the backend address pool. @@ -901,9 +902,9 @@ public void delete(String resourceGroupName, String loadBalancerName, String bac /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -929,9 +930,9 @@ private Mono> listNextSinglePageAsync(Str /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerFrontendIpConfigurationsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerFrontendIpConfigurationsClientImpl.java index d72c77f1c51d0..475133bf23a5d 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerFrontendIpConfigurationsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerFrontendIpConfigurationsClientImpl.java @@ -123,7 +123,7 @@ private Mono> listSinglePageAsync(St return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, loadBalancerName, @@ -164,7 +164,7 @@ private Mono> listSinglePageAsync(St return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -275,7 +275,7 @@ public Mono> getWithResponseAsync(String return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, loadBalancerName, @@ -319,7 +319,7 @@ private Mono> getWithResponseAsync(String return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), resourceGroupName, loadBalancerName, frontendIpConfigurationName, diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerLoadBalancingRulesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerLoadBalancingRulesClientImpl.java index 411db7dba1452..437ca59a1ac9b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerLoadBalancingRulesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerLoadBalancingRulesClientImpl.java @@ -121,7 +121,7 @@ private Mono> listSinglePageAsync(String r return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, loadBalancerName, @@ -162,7 +162,7 @@ private Mono> listSinglePageAsync(String r return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -273,7 +273,7 @@ public Mono> getWithResponseAsync(String resour return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, loadBalancerName, @@ -317,7 +317,7 @@ private Mono> getWithResponseAsync(String resou return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), resourceGroupName, loadBalancerName, loadBalancingRuleName, diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerNetworkInterfacesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerNetworkInterfacesClientImpl.java index 44acc69116e64..7b87eff1d4b34 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerNetworkInterfacesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerNetworkInterfacesClientImpl.java @@ -110,7 +110,7 @@ private Mono> listSinglePageAsync(String re return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, loadBalancerName, @@ -151,7 +151,7 @@ private Mono> listSinglePageAsync(String re return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerOutboundRulesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerOutboundRulesClientImpl.java index 7a1e44b0291dd..b2057e176b826 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerOutboundRulesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerOutboundRulesClientImpl.java @@ -120,7 +120,7 @@ private Mono> listSinglePageAsync(String resour return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, loadBalancerName, @@ -161,7 +161,7 @@ private Mono> listSinglePageAsync(String resour return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -270,7 +270,7 @@ public Mono> getWithResponseAsync(String resourceGro return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, loadBalancerName, @@ -314,7 +314,7 @@ private Mono> getWithResponseAsync(String resourceGr return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), resourceGroupName, loadBalancerName, outboundRuleName, apiVersion, diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerProbesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerProbesClientImpl.java index 3ab24dde67032..a0ed61fc4c57c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerProbesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancerProbesClientImpl.java @@ -118,7 +118,7 @@ private Mono> listSinglePageAsync(String resourceGroup return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, loadBalancerName, @@ -158,7 +158,7 @@ private Mono> listSinglePageAsync(String resourceGroup return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -265,7 +265,7 @@ public Mono> getWithResponseAsync(String resourceGroupName, return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, loadBalancerName, @@ -307,7 +307,7 @@ private Mono> getWithResponseAsync(String resourceGroupName return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), resourceGroupName, loadBalancerName, probeName, apiVersion, diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancersClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancersClientImpl.java index f123c32a819a6..3cc9a0685d388 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancersClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancersClientImpl.java @@ -45,10 +45,11 @@ import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; -import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; +import java.nio.ByteBuffer; + /** * An instance of this class provides access to all the operations defined in LoadBalancersClient. */ @@ -66,7 +67,7 @@ public final class LoadBalancersClientImpl implements InnerSupportsGet> listNext(@PathParam(value = "nextLink", e /** * 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. @@ -213,7 +214,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, loadBalancerName, @@ -223,7 +224,7 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * 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. @@ -251,7 +252,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, loadBalancerName, apiVersion, @@ -260,7 +261,7 @@ private Mono>> deleteWithResponseAsync(String resource /** * 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. @@ -277,7 +278,7 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * 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. @@ -297,7 +298,7 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * 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. @@ -312,7 +313,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -329,7 +330,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * 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. @@ -345,7 +346,7 @@ public 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. * @param context The context to associate with this operation. @@ -362,7 +363,7 @@ private 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. @@ -376,7 +377,7 @@ public 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. @@ -391,7 +392,7 @@ public void delete(String resourceGroupName, String loadBalancerName, Context co /** * Gets the specified load balancer. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param expand Expands referenced resources. @@ -419,7 +420,7 @@ public Mono> getByResourceGroupWithResponseAsync(Str return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -429,7 +430,7 @@ public Mono> getByResourceGroupWithResponseAsync(Str /** * Gets the specified load balancer. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param expand Expands referenced resources. @@ -458,7 +459,7 @@ private Mono> getByResourceGroupWithResponseAsync(St return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, loadBalancerName, apiVersion, @@ -467,7 +468,7 @@ private Mono> getByResourceGroupWithResponseAsync(St /** * Gets 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. @@ -484,7 +485,7 @@ public Mono getByResourceGroupAsync(String resourceGroupName, /** * Gets the specified load balancer. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param expand Expands referenced resources. @@ -502,7 +503,7 @@ public Response getByResourceGroupWithResponse(String resourc /** * Gets 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. @@ -518,7 +519,7 @@ public LoadBalancerInner getByResourceGroup(String resourceGroupName, String loa /** * Creates or updates a load balancer. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to the create or update load balancer operation. @@ -551,7 +552,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -561,7 +562,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r /** * Creates or updates a load balancer. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to the create or update load balancer operation. @@ -595,7 +596,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, loadBalancerName, apiVersion, @@ -604,7 +605,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a load balancer. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to the create or update load balancer operation. @@ -624,7 +625,7 @@ private Mono>> createOrUpdateWithResponseAsync(String /** * Creates or updates a load balancer. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to the create or update load balancer operation. @@ -646,7 +647,7 @@ private PollerFlux, LoadBalancerInner> beginCreate /** * Creates or updates a load balancer. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to the create or update load balancer operation. @@ -663,7 +664,7 @@ public SyncPoller, LoadBalancerInner> beginCreateO /** * Creates or updates a load balancer. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to the create or update load balancer operation. @@ -681,7 +682,7 @@ public SyncPoller, LoadBalancerInner> beginCreateO /** * Creates or updates a load balancer. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to the create or update load balancer operation. @@ -699,7 +700,7 @@ public Mono createOrUpdateAsync(String resourceGroupName, Str /** * Creates or updates a load balancer. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to the create or update load balancer operation. @@ -718,7 +719,7 @@ private Mono createOrUpdateAsync(String resourceGroupName, St /** * Creates or updates a load balancer. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to the create or update load balancer operation. @@ -735,7 +736,7 @@ public LoadBalancerInner createOrUpdate(String resourceGroupName, String loadBal /** * Creates or updates a load balancer. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to the create or update load balancer operation. @@ -753,7 +754,7 @@ public LoadBalancerInner createOrUpdate(String resourceGroupName, String loadBal /** * Updates a load balancer tags. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to update load balancer tags. @@ -786,7 +787,7 @@ public Mono> updateTagsWithResponseAsync(String reso } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, loadBalancerName, @@ -796,7 +797,7 @@ public Mono> updateTagsWithResponseAsync(String reso /** * Updates a load balancer tags. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to update load balancer tags. @@ -830,7 +831,7 @@ private Mono> updateTagsWithResponseAsync(String res } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), resourceGroupName, loadBalancerName, apiVersion, @@ -839,7 +840,7 @@ private Mono> updateTagsWithResponseAsync(String res /** * Updates a load balancer tags. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to update load balancer tags. @@ -857,7 +858,7 @@ public Mono updateTagsAsync(String resourceGroupName, String /** * Updates a load balancer tags. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to update load balancer tags. @@ -875,7 +876,7 @@ public Response updateTagsWithResponse(String resourceGroupNa /** * Updates a load balancer tags. - * + * * @param resourceGroupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to update load balancer tags. @@ -891,7 +892,7 @@ public LoadBalancerInner updateTags(String resourceGroupName, String loadBalance /** * 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 along with {@link PagedResponse} on successful completion of @@ -907,7 +908,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -919,7 +920,7 @@ private Mono> listSinglePageAsync() { /** * Gets all the load balancers 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. @@ -937,7 +938,7 @@ private Mono> listSinglePageAsync(Context conte return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) @@ -947,7 +948,7 @@ private Mono> listSinglePageAsync(Context conte /** * 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}. @@ -959,7 +960,7 @@ public PagedFlux listAsync() { /** * Gets all the load balancers 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. @@ -974,7 +975,7 @@ private PagedFlux listAsync(Context context) { /** * 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}. @@ -986,7 +987,7 @@ public PagedIterable list() { /** * Gets all the load balancers 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. @@ -1000,7 +1001,7 @@ public PagedIterable list(Context context) { /** * Gets all the load balancers 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. @@ -1022,7 +1023,7 @@ private Mono> listByResourceGroupSinglePageAsyn return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -1034,7 +1035,7 @@ private Mono> listByResourceGroupSinglePageAsyn /** * Gets all the load balancers 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. @@ -1058,7 +1059,7 @@ private Mono> listByResourceGroupSinglePageAsyn return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1070,7 +1071,7 @@ private Mono> listByResourceGroupSinglePageAsyn /** * Gets all the load balancers 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. @@ -1085,7 +1086,7 @@ public PagedFlux listByResourceGroupAsync(String resourceGrou /** * Gets all the load balancers 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. @@ -1101,7 +1102,7 @@ private PagedFlux listByResourceGroupAsync(String resourceGro /** * Gets all the load balancers 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. @@ -1115,7 +1116,7 @@ public PagedIterable listByResourceGroup(String resourceGroup /** * Gets all the load balancers 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. @@ -1130,7 +1131,7 @@ public PagedIterable listByResourceGroup(String resourceGroup /** * 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. @@ -1157,7 +1158,7 @@ public Mono>> swapPublicIpAddressesWithResponseAsync(S } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.swapPublicIpAddresses(this.client.getEndpoint(), location, apiVersion, @@ -1167,7 +1168,7 @@ public Mono>> swapPublicIpAddressesWithResponseAsync(S /** * 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. * @param context The context to associate with this operation. @@ -1195,7 +1196,7 @@ private Mono>> swapPublicIpAddressesWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.swapPublicIpAddresses(this.client.getEndpoint(), location, apiVersion, @@ -1204,7 +1205,7 @@ private Mono>> swapPublicIpAddressesWithResponseAsync( /** * 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. @@ -1222,7 +1223,7 @@ public PollerFlux, Void> beginSwapPublicIpAddressesAsync(String /** * 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. * @param context The context to associate with this operation. @@ -1242,7 +1243,7 @@ private PollerFlux, Void> beginSwapPublicIpAddressesAsync(Strin /** * 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. @@ -1258,7 +1259,7 @@ public SyncPoller, Void> beginSwapPublicIpAddresses(String loca /** * 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. * @param context The context to associate with this operation. @@ -1275,7 +1276,7 @@ public SyncPoller, Void> beginSwapPublicIpAddresses(String loca /** * 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. @@ -1291,7 +1292,7 @@ public Mono swapPublicIpAddressesAsync(String location, LoadBalancerVipSwa /** * 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. * @param context The context to associate with this operation. @@ -1309,7 +1310,7 @@ private Mono swapPublicIpAddressesAsync(String location, LoadBalancerVipSw /** * 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. @@ -1323,7 +1324,7 @@ public void swapPublicIpAddresses(String location, LoadBalancerVipSwapRequest pa /** * 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. * @param context The context to associate with this operation. @@ -1338,7 +1339,7 @@ public void swapPublicIpAddresses(String location, LoadBalancerVipSwapRequest pa /** * List of inbound NAT rule port mappings. - * + * * @param groupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param backendPoolName The name of the load balancer backend address pool. @@ -1376,7 +1377,7 @@ public Mono>> listInboundNatRulePortMappingsWithRespon } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listInboundNatRulePortMappings(this.client.getEndpoint(), groupName, @@ -1387,7 +1388,7 @@ public Mono>> listInboundNatRulePortMappingsWithRespon /** * List of inbound NAT rule port mappings. - * + * * @param groupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param backendPoolName The name of the load balancer backend address pool. @@ -1427,7 +1428,7 @@ private Mono>> listInboundNatRulePortMappingsWithRespo } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listInboundNatRulePortMappings(this.client.getEndpoint(), groupName, loadBalancerName, @@ -1436,7 +1437,7 @@ private Mono>> listInboundNatRulePortMappingsWithRespo /** * List of inbound NAT rule port mappings. - * + * * @param groupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param backendPoolName The name of the load balancer backend address pool. @@ -1461,7 +1462,7 @@ private Mono>> listInboundNatRulePortMappingsWithRespo /** * List of inbound NAT rule port mappings. - * + * * @param groupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param backendPoolName The name of the load balancer backend address pool. @@ -1488,7 +1489,7 @@ private Mono>> listInboundNatRulePortMappingsWithRespo /** * List of inbound NAT rule port mappings. - * + * * @param groupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param backendPoolName The name of the load balancer backend address pool. @@ -1509,7 +1510,7 @@ private Mono>> listInboundNatRulePortMappingsWithRespo /** * List of inbound NAT rule port mappings. - * + * * @param groupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param backendPoolName The name of the load balancer backend address pool. @@ -1532,7 +1533,7 @@ private Mono>> listInboundNatRulePortMappingsWithRespo /** * List of inbound NAT rule port mappings. - * + * * @param groupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param backendPoolName The name of the load balancer backend address pool. @@ -1551,7 +1552,7 @@ public Mono listInboundNatRulePor /** * List of inbound NAT rule port mappings. - * + * * @param groupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param backendPoolName The name of the load balancer backend address pool. @@ -1572,7 +1573,7 @@ private Mono listInboundNatRulePo /** * List of inbound NAT rule port mappings. - * + * * @param groupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param backendPoolName The name of the load balancer backend address pool. @@ -1590,7 +1591,7 @@ public BackendAddressInboundNatRulePortMappingsInner listInboundNatRulePortMappi /** * List of inbound NAT rule port mappings. - * + * * @param groupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param backendPoolName The name of the load balancer backend address pool. @@ -1611,7 +1612,7 @@ public BackendAddressInboundNatRulePortMappingsInner listInboundNatRulePortMappi /** * Migrate load balancer to IP Based. - * + * * @param groupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to the migrateToIpBased Api. @@ -1642,7 +1643,7 @@ public Mono> migrateToIpBasedWithResponseAsync(Stri if (parameters != null) { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.migrateToIpBased(this.client.getEndpoint(), groupName, loadBalancerName, @@ -1652,7 +1653,7 @@ public Mono> migrateToIpBasedWithResponseAsync(Stri /** * Migrate load balancer to IP Based. - * + * * @param groupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to the migrateToIpBased Api. @@ -1684,7 +1685,7 @@ private Mono> migrateToIpBasedWithResponseAsync(Str if (parameters != null) { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.migrateToIpBased(this.client.getEndpoint(), groupName, loadBalancerName, apiVersion, @@ -1693,7 +1694,7 @@ private Mono> migrateToIpBasedWithResponseAsync(Str /** * Migrate load balancer to IP Based. - * + * * @param groupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1710,7 +1711,7 @@ public Mono migrateToIpBasedAsync(String groupName, String l /** * Migrate load balancer to IP Based. - * + * * @param groupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @param parameters Parameters supplied to the migrateToIpBased Api. @@ -1728,7 +1729,7 @@ public Response migrateToIpBasedWithResponse(String groupNam /** * Migrate load balancer to IP Based. - * + * * @param groupName The name of the resource group. * @param loadBalancerName The name of the load balancer. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1744,9 +1745,9 @@ public MigratedPoolsInner migrateToIpBased(String groupName, String loadBalancer /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1773,9 +1774,9 @@ private Mono> listAllNextSinglePageAsync(String /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1802,9 +1803,9 @@ private Mono> listAllNextSinglePageAsync(String /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1830,9 +1831,9 @@ private Mono> listNextSinglePageAsync(String ne /** * Get the next page of items. - * + * * @param nextLink The URL to get the next list of items - * + * * The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LocalNetworkGatewaysClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LocalNetworkGatewaysClientImpl.java index 3eda600bcdf62..b347c1cc23fd0 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LocalNetworkGatewaysClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LocalNetworkGatewaysClientImpl.java @@ -170,7 +170,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -215,7 +215,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, localNetworkGatewayName, apiVersion, @@ -405,7 +405,7 @@ public Mono> getByResourceGroupWithResponseAs return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -444,7 +444,7 @@ private Mono> getByResourceGroupWithResponseA return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, localNetworkGatewayName, @@ -529,7 +529,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, @@ -567,7 +567,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, localNetworkGatewayName, apiVersion, @@ -743,7 +743,7 @@ public Mono> updateTagsWithResponseAsync(Stri } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, @@ -788,7 +788,7 @@ private Mono> updateTagsWithResponseAsync(Str } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), resourceGroupName, localNetworkGatewayName, apiVersion, @@ -872,7 +872,7 @@ private Mono> listByResourceGroupSingleP return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -908,7 +908,7 @@ private Mono> listByResourceGroupSingleP return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ManagementGroupNetworkManagerConnectionsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ManagementGroupNetworkManagerConnectionsClientImpl.java index 4b044c2a577bb..ef949419ac6aa 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ManagementGroupNetworkManagerConnectionsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ManagementGroupNetworkManagerConnectionsClientImpl.java @@ -62,8 +62,8 @@ public final class ManagementGroupNetworkManagerConnectionsClientImpl } /** - * The interface defining all the services for NetworkManagementClientManagementGroupNetworkManagerConnections to - * be used by the proxy service to perform REST calls. + * The interface defining all the services for NetworkManagementClientManagementGroupNetworkManagerConnections to be + * used by the proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "NetworkManagementCli") @@ -147,7 +147,7 @@ public Mono> createOrUpdateWithResponseA } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), managementGroupId, @@ -188,7 +188,7 @@ private Mono> createOrUpdateWithResponse } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), managementGroupId, networkManagerConnectionName, @@ -276,7 +276,7 @@ public Mono> getWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter networkManagerConnectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), managementGroupId, @@ -311,7 +311,7 @@ private Mono> getWithResponseAsync(Strin return Mono.error( new IllegalArgumentException("Parameter networkManagerConnectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), managementGroupId, networkManagerConnectionName, apiVersion, @@ -390,7 +390,7 @@ public Mono> deleteWithResponseAsync(String managementGroupId, St return Mono.error( new IllegalArgumentException("Parameter networkManagerConnectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), managementGroupId, @@ -424,7 +424,7 @@ private Mono> deleteWithResponseAsync(String managementGroupId, S return Mono.error( new IllegalArgumentException("Parameter networkManagerConnectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), managementGroupId, networkManagerConnectionName, apiVersion, @@ -504,7 +504,7 @@ private Mono> listSinglePageAsync(S return Mono .error(new IllegalArgumentException("Parameter managementGroupId is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), managementGroupId, apiVersion, top, @@ -541,7 +541,7 @@ private Mono> listSinglePageAsync(S return Mono .error(new IllegalArgumentException("Parameter managementGroupId is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), managementGroupId, apiVersion, top, skipToken, accept, context) diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NatGatewaysClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NatGatewaysClientImpl.java index 1d5dbcba0588e..0aebc261baa16 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NatGatewaysClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NatGatewaysClientImpl.java @@ -70,8 +70,8 @@ public final class NatGatewaysClientImpl implements InnerSupportsGet>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, natGatewayName, @@ -211,7 +211,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, natGatewayName, apiVersion, @@ -379,7 +379,7 @@ public Mono> getByResourceGroupWithResponseAsync(Strin return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -418,7 +418,7 @@ private Mono> getByResourceGroupWithResponseAsync(Stri return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, natGatewayName, apiVersion, @@ -510,7 +510,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, natGatewayName, @@ -553,7 +553,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, natGatewayName, apiVersion, @@ -742,7 +742,7 @@ public Mono> updateTagsWithResponseAsync(String resour } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, natGatewayName, @@ -785,7 +785,7 @@ private Mono> updateTagsWithResponseAsync(String resou } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), resourceGroupName, natGatewayName, apiVersion, @@ -862,7 +862,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -892,7 +892,7 @@ private Mono> listSinglePageAsync(Context context return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) @@ -977,7 +977,7 @@ private Mono> listByResourceGroupSinglePageAsync( return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -1013,7 +1013,7 @@ private Mono> listByResourceGroupSinglePageAsync( return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NatRulesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NatRulesClientImpl.java index 6ee3b590ab1df..aa8d04b55da25 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NatRulesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NatRulesClientImpl.java @@ -150,7 +150,7 @@ public Mono> getWithResponseAsync(String resour if (natRuleName == null) { return Mono.error(new IllegalArgumentException("Parameter natRuleName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -191,7 +191,7 @@ private Mono> getWithResponseAsync(String resou if (natRuleName == null) { return Mono.error(new IllegalArgumentException("Parameter natRuleName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, gatewayName, @@ -288,7 +288,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { natRuleParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -336,7 +336,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { natRuleParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -537,7 +537,7 @@ public Mono>> deleteWithResponseAsync(String resourceG if (natRuleName == null) { return Mono.error(new IllegalArgumentException("Parameter natRuleName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -578,7 +578,7 @@ private Mono>> deleteWithResponseAsync(String resource if (natRuleName == null) { return Mono.error(new IllegalArgumentException("Parameter natRuleName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -756,7 +756,7 @@ private Mono> listByVpnGatewaySinglePageAs if (gatewayName == null) { return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByVpnGateway(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -796,7 +796,7 @@ private Mono> listByVpnGatewaySinglePageAs if (gatewayName == null) { return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkGroupsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkGroupsClientImpl.java index bf195d0d630fc..38dee4cd50b81 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkGroupsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkGroupsClientImpl.java @@ -158,7 +158,7 @@ public Mono> getWithResponseAsync(String resourceGro return Mono .error(new IllegalArgumentException("Parameter networkGroupName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -201,7 +201,7 @@ private Mono> getWithResponseAsync(String resourceGr return Mono .error(new IllegalArgumentException("Parameter networkGroupName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -302,7 +302,7 @@ public Mono createOrUpdateWithResponseAsync } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -355,7 +355,7 @@ private Mono createOrUpdateWithResponseAsyn } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -461,7 +461,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono .error(new IllegalArgumentException("Parameter networkGroupName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -506,7 +506,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter networkGroupName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -748,7 +748,7 @@ private Mono> listSinglePageAsync(String resour return Mono .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -794,7 +794,7 @@ private Mono> listSinglePageAsync(String resour return Mono .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfaceIpConfigurationsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfaceIpConfigurationsClientImpl.java index 4005eb48ceb96..36440e262d540 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfaceIpConfigurationsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfaceIpConfigurationsClientImpl.java @@ -56,8 +56,8 @@ 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. + * The interface defining all the services for NetworkManagementClientNetworkInterfaceIpConfigurations to be used by + * the proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "NetworkManagementCli") @@ -121,7 +121,7 @@ private Mono> listSinglePage return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, @@ -162,7 +162,7 @@ private Mono> listSinglePage return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -275,7 +275,7 @@ public Mono> getWithResponseAsync return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, @@ -319,7 +319,7 @@ private Mono> getWithResponseAsyn return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, ipConfigurationName, diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfaceLoadBalancersClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfaceLoadBalancersClientImpl.java index 0200637c3548e..4003916345138 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfaceLoadBalancersClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfaceLoadBalancersClientImpl.java @@ -111,7 +111,7 @@ private Mono> listSinglePageAsync(String resour return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, @@ -152,7 +152,7 @@ private Mono> listSinglePageAsync(String resour return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfaceTapConfigurationsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfaceTapConfigurationsClientImpl.java index 790c3a2936c90..b2b2660a99b7d 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfaceTapConfigurationsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfaceTapConfigurationsClientImpl.java @@ -157,7 +157,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, @@ -200,7 +200,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, tapConfigurationName, @@ -388,7 +388,7 @@ public Mono> getWithResponseAsyn return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, @@ -432,7 +432,7 @@ private Mono> getWithResponseAsy return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, tapConfigurationName, @@ -535,7 +535,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { tapConfigurationParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -588,7 +588,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { tapConfigurationParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, @@ -660,8 +660,10 @@ private Mono>> createOrUpdateWithResponseAsync(String public SyncPoller, NetworkInterfaceTapConfigurationInner> beginCreateOrUpdate(String resourceGroupName, String networkInterfaceName, String tapConfigurationName, NetworkInterfaceTapConfigurationInner tapConfigurationParameters) { - return this.beginCreateOrUpdateAsync(resourceGroupName, networkInterfaceName, tapConfigurationName, - tapConfigurationParameters).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, networkInterfaceName, tapConfigurationName, + tapConfigurationParameters) + .getSyncPoller(); } /** @@ -681,8 +683,10 @@ private Mono>> createOrUpdateWithResponseAsync(String public SyncPoller, NetworkInterfaceTapConfigurationInner> beginCreateOrUpdate(String resourceGroupName, String networkInterfaceName, String tapConfigurationName, NetworkInterfaceTapConfigurationInner tapConfigurationParameters, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, networkInterfaceName, tapConfigurationName, - tapConfigurationParameters, context).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, networkInterfaceName, tapConfigurationName, + tapConfigurationParameters, context) + .getSyncPoller(); } /** @@ -796,7 +800,7 @@ private Mono> listSinglePag return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, @@ -837,7 +841,7 @@ private Mono> listSinglePag return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfacesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfacesClientImpl.java index ba2af256a6fc5..6adc3e43e22d4 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfacesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfacesClientImpl.java @@ -339,7 +339,7 @@ private Mono> listCloudServiceRoleInstanceN return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listCloudServiceRoleInstanceNetworkInterfaces(this.client.getEndpoint(), @@ -386,7 +386,7 @@ private Mono> listCloudServiceRoleInstanceN return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -508,7 +508,7 @@ public PagedIterable listCloudServiceRoleInstanceNetworkI return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listCloudServiceNetworkInterfaces(this.client.getEndpoint(), @@ -549,7 +549,7 @@ private Mono> listCloudServiceNetworkInterf return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -672,7 +672,7 @@ public Mono> getCloudServiceNetworkInterfaceWith return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getCloudServiceNetworkInterface(this.client.getEndpoint(), @@ -724,7 +724,7 @@ private Mono> getCloudServiceNetworkInterfaceWit return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getCloudServiceNetworkInterface(this.client.getEndpoint(), resourceGroupName, cloudServiceName, @@ -822,7 +822,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, @@ -860,7 +860,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, apiVersion, @@ -1030,7 +1030,7 @@ public Mono> getByResourceGroupWithResponseAsync return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -1070,7 +1070,7 @@ private Mono> getByResourceGroupWithResponseAsyn return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, @@ -1164,7 +1164,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -1209,7 +1209,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, apiVersion, @@ -1403,7 +1403,7 @@ public Mono> updateTagsWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, @@ -1448,7 +1448,7 @@ private Mono> updateTagsWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, apiVersion, @@ -1526,7 +1526,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1556,7 +1556,7 @@ private Mono> listSinglePageAsync(Context c return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) @@ -1641,7 +1641,7 @@ private Mono> listByResourceGroupSinglePage return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -1677,7 +1677,7 @@ private Mono> listByResourceGroupSinglePage return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1777,7 +1777,7 @@ public Mono>> getEffectiveRouteTableWithResponseAsync( return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getEffectiveRouteTable(this.client.getEndpoint(), resourceGroupName, @@ -1816,7 +1816,7 @@ private Mono>> getEffectiveRouteTableWithResponseAsync return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getEffectiveRouteTable(this.client.getEndpoint(), resourceGroupName, networkInterfaceName, @@ -1995,7 +1995,7 @@ public EffectiveRouteListResultInner getEffectiveRouteTable(String resourceGroup return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listEffectiveNetworkSecurityGroups(this.client.getEndpoint(), @@ -2034,7 +2034,7 @@ private Mono>> listEffectiveNetworkSecurityGroupsWithR return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listEffectiveNetworkSecurityGroups(this.client.getEndpoint(), resourceGroupName, diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagementClientBuilder.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagementClientBuilder.java index 0553927c0c5e1..10d9e71317342 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagementClientBuilder.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagementClientBuilder.java @@ -20,8 +20,7 @@ @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. + * The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. */ private String subscriptionId; @@ -125,11 +124,13 @@ public NetworkManagementClientBuilder serializerAdapter(SerializerAdapter serial public NetworkManagementClientImpl buildClient() { String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com"; AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE; - HttpPipeline localPipeline = (pipeline != null) ? pipeline + HttpPipeline localPipeline = (pipeline != null) + ? pipeline : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(); Duration localDefaultPollInterval = (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30); - SerializerAdapter localSerializerAdapter = (serializerAdapter != null) ? serializerAdapter + SerializerAdapter localSerializerAdapter = (serializerAdapter != null) + ? serializerAdapter : SerializerFactory.createDefaultManagementSerializerAdapter(); NetworkManagementClientImpl client = new NetworkManagementClientImpl(localPipeline, localSerializerAdapter, localDefaultPollInterval, localEnvironment, this.subscriptionId, localEndpoint); diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagementClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagementClientImpl.java index 8cbd484c1523e..2a31641906f12 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagementClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagementClientImpl.java @@ -38,9 +38,9 @@ import com.azure.resourcemanager.network.fluent.AdminRulesClient; import com.azure.resourcemanager.network.fluent.ApplicationGatewayPrivateEndpointConnectionsClient; import com.azure.resourcemanager.network.fluent.ApplicationGatewayPrivateLinkResourcesClient; +import com.azure.resourcemanager.network.fluent.ApplicationGatewaysClient; import com.azure.resourcemanager.network.fluent.ApplicationGatewayWafDynamicManifestsClient; import com.azure.resourcemanager.network.fluent.ApplicationGatewayWafDynamicManifestsDefaultsClient; -import com.azure.resourcemanager.network.fluent.ApplicationGatewaysClient; import com.azure.resourcemanager.network.fluent.ApplicationSecurityGroupsClient; import com.azure.resourcemanager.network.fluent.AvailableDelegationsClient; import com.azure.resourcemanager.network.fluent.AvailableEndpointServicesClient; @@ -74,9 +74,12 @@ import com.azure.resourcemanager.network.fluent.ExpressRouteProviderPortsLocationsClient; import com.azure.resourcemanager.network.fluent.ExpressRouteServiceProvidersClient; import com.azure.resourcemanager.network.fluent.FirewallPoliciesClient; +import com.azure.resourcemanager.network.fluent.FirewallPolicyDeploymentsClient; +import com.azure.resourcemanager.network.fluent.FirewallPolicyDraftsClient; import com.azure.resourcemanager.network.fluent.FirewallPolicyIdpsSignaturesClient; import com.azure.resourcemanager.network.fluent.FirewallPolicyIdpsSignaturesFilterValuesClient; import com.azure.resourcemanager.network.fluent.FirewallPolicyIdpsSignaturesOverridesClient; +import com.azure.resourcemanager.network.fluent.FirewallPolicyRuleCollectionGroupDraftsClient; import com.azure.resourcemanager.network.fluent.FirewallPolicyRuleCollectionGroupsClient; import com.azure.resourcemanager.network.fluent.FlowLogsClient; import com.azure.resourcemanager.network.fluent.HubRouteTablesClient; @@ -99,8 +102,8 @@ import com.azure.resourcemanager.network.fluent.NetworkGroupsClient; import com.azure.resourcemanager.network.fluent.NetworkInterfaceIpConfigurationsClient; import com.azure.resourcemanager.network.fluent.NetworkInterfaceLoadBalancersClient; -import com.azure.resourcemanager.network.fluent.NetworkInterfaceTapConfigurationsClient; import com.azure.resourcemanager.network.fluent.NetworkInterfacesClient; +import com.azure.resourcemanager.network.fluent.NetworkInterfaceTapConfigurationsClient; import com.azure.resourcemanager.network.fluent.NetworkManagementClient; import com.azure.resourcemanager.network.fluent.NetworkManagerCommitsClient; import com.azure.resourcemanager.network.fluent.NetworkManagerDeploymentStatusOperationsClient; @@ -123,8 +126,8 @@ import com.azure.resourcemanager.network.fluent.RouteFilterRulesClient; import com.azure.resourcemanager.network.fluent.RouteFiltersClient; import com.azure.resourcemanager.network.fluent.RouteMapsClient; -import com.azure.resourcemanager.network.fluent.RouteTablesClient; import com.azure.resourcemanager.network.fluent.RoutesClient; +import com.azure.resourcemanager.network.fluent.RouteTablesClient; import com.azure.resourcemanager.network.fluent.RoutingIntentsClient; import com.azure.resourcemanager.network.fluent.ScopeConnectionsClient; import com.azure.resourcemanager.network.fluent.SecurityAdminConfigurationsClient; @@ -150,8 +153,8 @@ import com.azure.resourcemanager.network.fluent.VirtualNetworkGatewayNatRulesClient; import com.azure.resourcemanager.network.fluent.VirtualNetworkGatewaysClient; import com.azure.resourcemanager.network.fluent.VirtualNetworkPeeringsClient; -import com.azure.resourcemanager.network.fluent.VirtualNetworkTapsClient; import com.azure.resourcemanager.network.fluent.VirtualNetworksClient; +import com.azure.resourcemanager.network.fluent.VirtualNetworkTapsClient; import com.azure.resourcemanager.network.fluent.VirtualRouterPeeringsClient; import com.azure.resourcemanager.network.fluent.VirtualRoutersClient; import com.azure.resourcemanager.network.fluent.VirtualWansClient; @@ -820,6 +823,48 @@ public FirewallPolicyIdpsSignaturesFilterValuesClient getFirewallPolicyIdpsSigna return this.firewallPolicyIdpsSignaturesFilterValues; } + /** + * The FirewallPolicyDraftsClient object to access its operations. + */ + private final FirewallPolicyDraftsClient firewallPolicyDrafts; + + /** + * Gets the FirewallPolicyDraftsClient object to access its operations. + * + * @return the FirewallPolicyDraftsClient object. + */ + 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. + */ + private final FirewallPolicyRuleCollectionGroupDraftsClient firewallPolicyRuleCollectionGroupDrafts; + + /** + * Gets the FirewallPolicyRuleCollectionGroupDraftsClient object to access its operations. + * + * @return the FirewallPolicyRuleCollectionGroupDraftsClient object. + */ + public FirewallPolicyRuleCollectionGroupDraftsClient getFirewallPolicyRuleCollectionGroupDrafts() { + return this.firewallPolicyRuleCollectionGroupDrafts; + } + /** * The IpAllocationsClient object to access its operations. */ @@ -2169,6 +2214,9 @@ public WebApplicationFirewallPoliciesClient getWebApplicationFirewallPolicies() 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.ipAllocations = new IpAllocationsClientImpl(this); this.ipGroups = new IpGroupsClientImpl(this); this.loadBalancers = new LoadBalancersClientImpl(this); @@ -2493,18 +2541,22 @@ private Mono> putBastionShareableLinkSi } else { bslRequest.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-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(); + = service + .putBastionShareableLink(this.getEndpoint(), resourceGroupName, bastionHostname, apiVersion, + this.getSubscriptionId(), bslRequest, accept, context) + .cache(); return Mono.zip(mono, this.getLroResult(mono, this.getHttpPipeline(), BastionShareableLinkListResult.class, BastionShareableLinkListResult.class, this.getContext()).last().flatMap(this::getLroFinalResultOrError)); - }).>map(res -> new PagedResponseBase<>(res.getT1().getRequest(), - res.getT1().getStatusCode(), res.getT1().getHeaders(), res.getT2().value(), res.getT2().nextLink(), null)) + }) + .>map( + res -> new PagedResponseBase<>(res.getT1().getRequest(), res.getT1().getStatusCode(), + res.getT1().getHeaders(), res.getT2().value(), res.getT2().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.getContext()).readOnly())); } @@ -2545,16 +2597,19 @@ private Mono> putBastionShareableLinkSi } else { bslRequest.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-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(), resourceGroupName, bastionHostname, apiVersion, + this.getSubscriptionId(), bslRequest, accept, context) + .cache(); return Mono .zip(mono, - this.getLroResult(mono, - this.getHttpPipeline(), BastionShareableLinkListResult.class, BastionShareableLinkListResult.class, - context).last().flatMap(this::getLroFinalResultOrError)) + this.getLroResult( + mono, this.getHttpPipeline(), BastionShareableLinkListResult.class, + BastionShareableLinkListResult.class, context).last().flatMap(this::getLroFinalResultOrError)) .map(res -> new PagedResponseBase<>(res.getT1().getRequest(), res.getT1().getStatusCode(), res.getT1().getHeaders(), res.getT2().value(), res.getT2().nextLink(), null)); } @@ -2669,7 +2724,7 @@ public Mono>> deleteBastionShareableLinkWithResponseAs } else { bslRequest.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.deleteBastionShareableLink(this.getEndpoint(), resourceGroupName, @@ -2713,7 +2768,7 @@ private Mono>> deleteBastionShareableLinkWithResponseA } else { bslRequest.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.mergeContext(context); return service.deleteBastionShareableLink(this.getEndpoint(), resourceGroupName, bastionHostname, apiVersion, @@ -2903,7 +2958,7 @@ public Mono>> deleteBastionShareableLinkByTokenWithRes } else { bslTokenRequest.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.deleteBastionShareableLinkByToken(this.getEndpoint(), resourceGroupName, @@ -2949,7 +3004,7 @@ private Mono>> deleteBastionShareableLinkByTokenWithRe } else { bslTokenRequest.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.mergeContext(context); return service.deleteBastionShareableLinkByToken(this.getEndpoint(), resourceGroupName, bastionHostname, @@ -3068,7 +3123,8 @@ public Mono deleteBastionShareableLinkByTokenAsync(String resourceGroupNam private Mono deleteBastionShareableLinkByTokenAsync(String resourceGroupName, String bastionHostname, BastionShareableLinkTokenListRequest bslTokenRequest, Context context) { return beginDeleteBastionShareableLinkByTokenAsync(resourceGroupName, bastionHostname, bslTokenRequest, context) - .last().flatMap(this::getLroFinalResultOrError); + .last() + .flatMap(this::getLroFinalResultOrError); } /** @@ -3140,7 +3196,7 @@ private Mono> getBastionShareableLinkSi } else { bslRequest.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getBastionShareableLink(this.getEndpoint(), resourceGroupName, @@ -3187,7 +3243,7 @@ private Mono> getBastionShareableLinkSi } else { bslRequest.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.mergeContext(context); return service @@ -3301,17 +3357,22 @@ private Mono> getActiveSessionsSinglePa return Mono.error( new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil.withContext(context -> { - Mono>> mono = service.getActiveSessions(this.getEndpoint(), resourceGroupName, - bastionHostname, apiVersion, this.getSubscriptionId(), accept, context).cache(); + Mono>> mono + = service + .getActiveSessions(this.getEndpoint(), resourceGroupName, bastionHostname, apiVersion, + this.getSubscriptionId(), accept, context) + .cache(); return Mono.zip(mono, this.getLroResult(mono, this.getHttpPipeline(), BastionActiveSessionListResult.class, BastionActiveSessionListResult.class, this.getContext()).last().flatMap(this::getLroFinalResultOrError)); - }).>map(res -> new PagedResponseBase<>(res.getT1().getRequest(), - res.getT1().getStatusCode(), res.getT1().getHeaders(), res.getT2().value(), res.getT2().nextLink(), null)) + }) + .>map( + res -> new PagedResponseBase<>(res.getT1().getRequest(), res.getT1().getStatusCode(), + res.getT1().getHeaders(), res.getT2().value(), res.getT2().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.getContext()).readOnly())); } @@ -3345,16 +3406,19 @@ private Mono> getActiveSessionsSinglePa return Mono.error( new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.mergeContext(context); - Mono>> mono = service.getActiveSessions(this.getEndpoint(), resourceGroupName, - bastionHostname, apiVersion, this.getSubscriptionId(), accept, context).cache(); + Mono>> mono + = service + .getActiveSessions(this.getEndpoint(), resourceGroupName, bastionHostname, apiVersion, + this.getSubscriptionId(), accept, context) + .cache(); return Mono .zip(mono, - this.getLroResult(mono, - this.getHttpPipeline(), BastionActiveSessionListResult.class, BastionActiveSessionListResult.class, - context).last().flatMap(this::getLroFinalResultOrError)) + this.getLroResult( + mono, this.getHttpPipeline(), BastionActiveSessionListResult.class, + BastionActiveSessionListResult.class, context).last().flatMap(this::getLroFinalResultOrError)) .map(res -> new PagedResponseBase<>(res.getT1().getRequest(), res.getT1().getStatusCode(), res.getT1().getHeaders(), res.getT2().value(), res.getT2().nextLink(), null)); } @@ -3463,7 +3527,7 @@ private Mono> disconnectActiveSessionsSi } else { sessionIds.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.disconnectActiveSessions(this.getEndpoint(), resourceGroupName, @@ -3510,7 +3574,7 @@ private Mono> disconnectActiveSessionsSi } else { sessionIds.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.mergeContext(context); return service @@ -3625,7 +3689,7 @@ public Mono> checkDnsNameAvailabilityWi return Mono.error( new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.checkDnsNameAvailability(this.getEndpoint(), location, domainNameLabel, @@ -3664,7 +3728,7 @@ private Mono> checkDnsNameAvailabilityW return Mono.error( new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.mergeContext(context); return service.checkDnsNameAvailability(this.getEndpoint(), location, domainNameLabel, apiVersion, @@ -3745,7 +3809,7 @@ public DnsNameAvailabilityResultInner checkDnsNameAvailability(String location, return Mono.error( new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.expressRouteProviderPort(this.getEndpoint(), providerport, apiVersion, @@ -3777,7 +3841,7 @@ private Mono> expressRouteProviderPortWi return Mono.error( new IllegalArgumentException("Parameter this.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.mergeContext(context); return service.expressRouteProviderPort(this.getEndpoint(), providerport, apiVersion, this.getSubscriptionId(), @@ -3867,7 +3931,7 @@ public ExpressRouteProviderPortInner expressRouteProviderPort(String providerpor } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listActiveConnectivityConfigurations(this.getEndpoint(), apiVersion, @@ -3915,7 +3979,7 @@ public ExpressRouteProviderPortInner expressRouteProviderPort(String providerpor } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.mergeContext(context); return service.listActiveConnectivityConfigurations(this.getEndpoint(), apiVersion, this.getSubscriptionId(), @@ -4021,7 +4085,7 @@ public Mono> listActiveSecurit } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listActiveSecurityAdminRules(this.getEndpoint(), apiVersion, @@ -4069,7 +4133,7 @@ private Mono> listActiveSecuri } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.mergeContext(context); return service.listActiveSecurityAdminRules(this.getEndpoint(), apiVersion, this.getSubscriptionId(), @@ -4175,7 +4239,7 @@ public ActiveSecurityAdminRulesListResultInner listActiveSecurityAdminRules(Stri } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listNetworkManagerEffectiveConnectivityConfigurations(this.getEndpoint(), @@ -4224,7 +4288,7 @@ public ActiveSecurityAdminRulesListResultInner listActiveSecurityAdminRules(Stri } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.mergeContext(context); return service.listNetworkManagerEffectiveConnectivityConfigurations(this.getEndpoint(), @@ -4335,7 +4399,7 @@ public ActiveSecurityAdminRulesListResultInner listActiveSecurityAdminRules(Stri } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listNetworkManagerEffectiveSecurityAdminRules(this.getEndpoint(), @@ -4384,7 +4448,7 @@ public ActiveSecurityAdminRulesListResultInner listActiveSecurityAdminRules(Stri } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.mergeContext(context); return service.listNetworkManagerEffectiveSecurityAdminRules(this.getEndpoint(), this.getSubscriptionId(), @@ -4481,7 +4545,7 @@ public NetworkManagerEffectiveSecurityAdminRulesListResultInner listNetworkManag if (virtualWanName == null) { return Mono.error(new IllegalArgumentException("Parameter virtualWanName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.supportedSecurityProviders(this.getEndpoint(), this.getSubscriptionId(), @@ -4518,7 +4582,7 @@ public NetworkManagerEffectiveSecurityAdminRulesListResultInner listNetworkManag if (virtualWanName == null) { return Mono.error(new IllegalArgumentException("Parameter virtualWanName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.mergeContext(context); return service.supportedSecurityProviders(this.getEndpoint(), this.getSubscriptionId(), resourceGroupName, @@ -4612,7 +4676,7 @@ public Mono>> generatevirtualwanvpnserverconfiguration } else { vpnClientParams.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.generatevirtualwanvpnserverconfigurationvpnprofile(this.getEndpoint(), @@ -4660,7 +4724,7 @@ private Mono>> generatevirtualwanvpnserverconfiguratio } else { vpnClientParams.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.mergeContext(context); return service.generatevirtualwanvpnserverconfigurationvpnprofile(this.getEndpoint(), this.getSubscriptionId(), @@ -4729,8 +4793,10 @@ private Mono>> generatevirtualwanvpnserverconfiguratio public SyncPoller, VpnProfileResponseInner> beginGeneratevirtualwanvpnserverconfigurationvpnprofile(String resourceGroupName, String virtualWanName, VirtualWanVpnProfileParameters vpnClientParams) { - return this.beginGeneratevirtualwanvpnserverconfigurationvpnprofileAsync(resourceGroupName, virtualWanName, - vpnClientParams).getSyncPoller(); + return this + .beginGeneratevirtualwanvpnserverconfigurationvpnprofileAsync(resourceGroupName, virtualWanName, + vpnClientParams) + .getSyncPoller(); } /** @@ -4750,8 +4816,10 @@ private Mono>> generatevirtualwanvpnserverconfiguratio public SyncPoller, VpnProfileResponseInner> beginGeneratevirtualwanvpnserverconfigurationvpnprofile(String resourceGroupName, String virtualWanName, VirtualWanVpnProfileParameters vpnClientParams, Context context) { - return this.beginGeneratevirtualwanvpnserverconfigurationvpnprofileAsync(resourceGroupName, virtualWanName, - vpnClientParams, context).getSyncPoller(); + return this + .beginGeneratevirtualwanvpnserverconfigurationvpnprofileAsync(resourceGroupName, virtualWanName, + vpnClientParams, context) + .getSyncPoller(); } /** diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagerCommitsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagerCommitsClientImpl.java index dbb168c3358c2..c46b4b50fff3b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagerCommitsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagerCommitsClientImpl.java @@ -110,7 +110,7 @@ public Mono>> postWithResponseAsync(String resourceGro } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.post(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -154,7 +154,7 @@ private Mono>> postWithResponseAsync(String resourceGr } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.post(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagerDeploymentStatusOperationsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagerDeploymentStatusOperationsClientImpl.java index f87d1500a5d81..3eb4e57de0f73 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagerDeploymentStatusOperationsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagerDeploymentStatusOperationsClientImpl.java @@ -55,8 +55,8 @@ public final class NetworkManagerDeploymentStatusOperationsClientImpl } /** - * The interface defining all the services for NetworkManagementClientNetworkManagerDeploymentStatusOperations to - * be used by the proxy service to perform REST calls. + * The interface defining all the services for NetworkManagementClientNetworkManagerDeploymentStatusOperations to be + * used by the proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "NetworkManagementCli") @@ -112,7 +112,7 @@ public Mono> listWithRes } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -160,7 +160,7 @@ private Mono> listWithRe } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagersClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagersClientImpl.java index 48cfe93ed24f4..5d0b37cbeec0a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagersClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagersClientImpl.java @@ -183,7 +183,7 @@ public Mono> getByResourceGroupWithResponseAsync(S return Mono .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), @@ -221,7 +221,7 @@ private Mono> getByResourceGroupWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -311,7 +311,7 @@ public Mono> createOrUpdateWithResponseAsync(Strin } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -355,7 +355,7 @@ private Mono> createOrUpdateWithResponseAsync(Stri } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -446,7 +446,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -486,7 +486,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -711,7 +711,7 @@ public Mono> patchWithResponseAsync(String resourc } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.patch(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -755,7 +755,7 @@ private Mono> patchWithResponseAsync(String resour } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.patch(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -838,7 +838,7 @@ private Mono> listSinglePageAsync(Integer top return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, @@ -874,7 +874,7 @@ private Mono> listSinglePageAsync(Integer top return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1001,7 +1001,7 @@ private Mono> listByResourceGroupSinglePageAs return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), @@ -1042,7 +1042,7 @@ private Mono> listByResourceGroupSinglePageAs return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkProfilesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkProfilesClientImpl.java index 7394247908056..310ea4c5323e3 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkProfilesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkProfilesClientImpl.java @@ -178,7 +178,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, networkProfileName, @@ -216,7 +216,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, networkProfileName, apiVersion, @@ -385,7 +385,7 @@ public Mono> getByResourceGroupWithResponseAsync(S return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -425,7 +425,7 @@ private Mono> getByResourceGroupWithResponseAsync( return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, networkProfileName, apiVersion, @@ -518,7 +518,7 @@ public Mono> createOrUpdateWithResponseAsync(Strin } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -562,7 +562,7 @@ private Mono> createOrUpdateWithResponseAsync(Stri } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, networkProfileName, apiVersion, @@ -657,7 +657,7 @@ public Mono> updateTagsWithResponseAsync(String re } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, networkProfileName, @@ -701,7 +701,7 @@ private Mono> updateTagsWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), resourceGroupName, networkProfileName, apiVersion, @@ -778,7 +778,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -808,7 +808,7 @@ private Mono> listSinglePageAsync(Context con return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) @@ -893,7 +893,7 @@ private Mono> listByResourceGroupSinglePageAs return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -929,7 +929,7 @@ private Mono> listByResourceGroupSinglePageAs return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityGroupsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityGroupsClientImpl.java index cbf4b711686d7..9d4ff9d6afc9f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityGroupsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkSecurityGroupsClientImpl.java @@ -180,7 +180,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, @@ -218,7 +218,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, networkSecurityGroupName, apiVersion, @@ -389,7 +389,7 @@ public Mono> getByResourceGroupWithResponseA return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -429,7 +429,7 @@ private Mono> getByResourceGroupWithResponse return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, networkSecurityGroupName, @@ -525,7 +525,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -569,7 +569,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, networkSecurityGroupName, @@ -764,7 +764,7 @@ public Mono> updateTagsWithResponseAsync(Str } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, @@ -808,7 +808,7 @@ private Mono> updateTagsWithResponseAsync(St } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), resourceGroupName, networkSecurityGroupName, apiVersion, @@ -886,7 +886,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -916,7 +916,7 @@ private Mono> listSinglePageAsync(Conte return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) @@ -1002,7 +1002,7 @@ public PagedIterable list(Context context) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -1038,7 +1038,7 @@ private Mono> listByResourceGroupSingle return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkVirtualApplianceConnectionsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkVirtualApplianceConnectionsClientImpl.java index 384f54c4db176..8db64e2b6145f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkVirtualApplianceConnectionsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkVirtualApplianceConnectionsClientImpl.java @@ -166,7 +166,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { networkVirtualApplianceConnectionParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -219,7 +219,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { networkVirtualApplianceConnectionParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -294,8 +294,10 @@ private Mono>> createOrUpdateWithResponseAsync(String public SyncPoller, NetworkVirtualApplianceConnectionInner> beginCreateOrUpdate(String resourceGroupName, String networkVirtualApplianceName, String connectionName, NetworkVirtualApplianceConnectionInner networkVirtualApplianceConnectionParameters) { - return this.beginCreateOrUpdateAsync(resourceGroupName, networkVirtualApplianceName, connectionName, - networkVirtualApplianceConnectionParameters).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, networkVirtualApplianceName, connectionName, + networkVirtualApplianceConnectionParameters) + .getSyncPoller(); } /** @@ -316,8 +318,10 @@ private Mono>> createOrUpdateWithResponseAsync(String public SyncPoller, NetworkVirtualApplianceConnectionInner> beginCreateOrUpdate(String resourceGroupName, String networkVirtualApplianceName, String connectionName, NetworkVirtualApplianceConnectionInner networkVirtualApplianceConnectionParameters, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, networkVirtualApplianceName, connectionName, - networkVirtualApplianceConnectionParameters, context).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, networkVirtualApplianceName, connectionName, + networkVirtualApplianceConnectionParameters, context) + .getSyncPoller(); } /** @@ -440,7 +444,7 @@ public Mono> getWithResponseAsy if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -483,7 +487,7 @@ private Mono> getWithResponseAs if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -576,7 +580,7 @@ public Mono>> deleteWithResponseAsync(String resourceG if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -618,7 +622,7 @@ private Mono>> deleteWithResponseAsync(String resource if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -801,7 +805,7 @@ private Mono> listSinglePa return Mono.error( new IllegalArgumentException("Parameter networkVirtualApplianceName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -842,7 +846,7 @@ private Mono> listSinglePa return Mono.error( new IllegalArgumentException("Parameter networkVirtualApplianceName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkVirtualAppliancesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkVirtualAppliancesClientImpl.java index 393cc1ab37de2..654211cbd48a0 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkVirtualAppliancesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkVirtualAppliancesClientImpl.java @@ -14,6 +14,7 @@ import com.azure.core.annotation.HostParam; import com.azure.core.annotation.Patch; import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Post; import com.azure.core.annotation.Put; import com.azure.core.annotation.QueryParam; import com.azure.core.annotation.ReturnType; @@ -34,6 +35,7 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.NetworkVirtualAppliancesClient; import com.azure.resourcemanager.network.fluent.models.NetworkVirtualApplianceInner; +import com.azure.resourcemanager.network.fluent.models.NetworkVirtualApplianceInstanceIdsInner; import com.azure.resourcemanager.network.models.NetworkVirtualApplianceListResult; import com.azure.resourcemanager.network.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; @@ -118,6 +120,17 @@ Mono>> createOrUpdate(@HostParam("$host") String endpo @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, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("networkVirtualApplianceName") String networkVirtualApplianceName, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @BodyParam("application/json") NetworkVirtualApplianceInstanceIdsInner networkVirtualApplianceInstanceIds, + @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances") @ExpectedResponses({ 200 }) @@ -180,7 +193,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, @@ -218,7 +231,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, networkVirtualApplianceName, apiVersion, @@ -390,7 +403,7 @@ public Mono> getByResourceGroupWithRespon return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -430,7 +443,7 @@ private Mono> getByResourceGroupWithRespo return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, networkVirtualApplianceName, @@ -527,7 +540,7 @@ public Mono> updateTagsWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -571,7 +584,7 @@ private Mono> updateTagsWithResponseAsync } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -667,7 +680,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -711,7 +724,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, networkVirtualApplianceName, @@ -873,6 +886,315 @@ public NetworkVirtualApplianceInner createOrUpdate(String resourceGroupName, Str return createOrUpdateAsync(resourceGroupName, networkVirtualApplianceName, parameters, context).block(); } + /** + * Restarts one or more VMs belonging to the specified Network Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. + * @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}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> restartWithResponseAsync(String resourceGroupName, + String networkVirtualApplianceName, + NetworkVirtualApplianceInstanceIdsInner networkVirtualApplianceInstanceIds) { + 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 (networkVirtualApplianceInstanceIds != null) { + networkVirtualApplianceInstanceIds.validate(); + } + final String apiVersion = "2023-11-01"; + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.restart(this.client.getEndpoint(), resourceGroupName, networkVirtualApplianceName, + apiVersion, this.client.getSubscriptionId(), networkVirtualApplianceInstanceIds, accept, 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 networkVirtualApplianceName The name of Network Virtual Appliance. + * @param networkVirtualApplianceInstanceIds Specifies a list of virtual machine instance IDs from the Network + * Virtual Appliance VM instances. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws 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}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> restartWithResponseAsync(String resourceGroupName, + String networkVirtualApplianceName, NetworkVirtualApplianceInstanceIdsInner networkVirtualApplianceInstanceIds, + 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 (networkVirtualApplianceInstanceIds != null) { + networkVirtualApplianceInstanceIds.validate(); + } + final String apiVersion = "2023-11-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); + } + + /** + * Restarts one or more VMs belonging to the specified Network Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. + * @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. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, NetworkVirtualApplianceInstanceIdsInner> + beginRestartAsync(String resourceGroupName, String networkVirtualApplianceName, + NetworkVirtualApplianceInstanceIdsInner networkVirtualApplianceInstanceIds) { + Mono>> mono = restartWithResponseAsync(resourceGroupName, networkVirtualApplianceName, + networkVirtualApplianceInstanceIds); + return this.client + .getLroResult(mono, + this.client.getHttpPipeline(), NetworkVirtualApplianceInstanceIdsInner.class, + NetworkVirtualApplianceInstanceIdsInner.class, this.client.getContext()); + } + + /** + * Restarts one or more VMs belonging to 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 specifies a list of virtual machine instance IDs from the Network + * Virtual Appliance VM instances. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, NetworkVirtualApplianceInstanceIdsInner> + beginRestartAsync(String resourceGroupName, String networkVirtualApplianceName) { + final NetworkVirtualApplianceInstanceIdsInner networkVirtualApplianceInstanceIds = null; + Mono>> mono = restartWithResponseAsync(resourceGroupName, networkVirtualApplianceName, + networkVirtualApplianceInstanceIds); + return this.client + .getLroResult(mono, + this.client.getHttpPipeline(), NetworkVirtualApplianceInstanceIdsInner.class, + NetworkVirtualApplianceInstanceIdsInner.class, this.client.getContext()); + } + + /** + * Restarts one or more VMs belonging to the specified Network Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. + * @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. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is 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. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, NetworkVirtualApplianceInstanceIdsInner> + beginRestartAsync(String resourceGroupName, String networkVirtualApplianceName, + NetworkVirtualApplianceInstanceIdsInner networkVirtualApplianceInstanceIds, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = restartWithResponseAsync(resourceGroupName, networkVirtualApplianceName, + networkVirtualApplianceInstanceIds, context); + return this.client + .getLroResult(mono, + this.client.getHttpPipeline(), NetworkVirtualApplianceInstanceIdsInner.class, + NetworkVirtualApplianceInstanceIdsInner.class, context); + } + + /** + * Restarts one or more VMs belonging to 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 specifies a list of virtual machine instance IDs from the Network + * Virtual Appliance VM instances. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, NetworkVirtualApplianceInstanceIdsInner> + beginRestart(String resourceGroupName, String networkVirtualApplianceName) { + final NetworkVirtualApplianceInstanceIdsInner networkVirtualApplianceInstanceIds = null; + return this + .beginRestartAsync(resourceGroupName, networkVirtualApplianceName, networkVirtualApplianceInstanceIds) + .getSyncPoller(); + } + + /** + * Restarts one or more VMs belonging to the specified Network Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. + * @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. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is 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. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, NetworkVirtualApplianceInstanceIdsInner> + beginRestart(String resourceGroupName, String networkVirtualApplianceName, + NetworkVirtualApplianceInstanceIdsInner networkVirtualApplianceInstanceIds, Context context) { + return this + .beginRestartAsync(resourceGroupName, networkVirtualApplianceName, networkVirtualApplianceInstanceIds, + context) + .getSyncPoller(); + } + + /** + * Restarts one or more VMs belonging to the specified Network Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. + * @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}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono restartAsync(String resourceGroupName, + String networkVirtualApplianceName, + NetworkVirtualApplianceInstanceIdsInner networkVirtualApplianceInstanceIds) { + return beginRestartAsync(resourceGroupName, networkVirtualApplianceName, networkVirtualApplianceInstanceIds) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Restarts one or more VMs belonging to 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 specifies a list of virtual machine instance IDs from the Network Virtual Appliance VM instances on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono restartAsync(String resourceGroupName, + String networkVirtualApplianceName) { + final NetworkVirtualApplianceInstanceIdsInner networkVirtualApplianceInstanceIds = null; + return beginRestartAsync(resourceGroupName, networkVirtualApplianceName, networkVirtualApplianceInstanceIds) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Restarts one or more VMs belonging to the specified Network Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. + * @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. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws 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}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono restartAsync(String resourceGroupName, + String networkVirtualApplianceName, NetworkVirtualApplianceInstanceIdsInner networkVirtualApplianceInstanceIds, + Context context) { + return beginRestartAsync(resourceGroupName, networkVirtualApplianceName, networkVirtualApplianceInstanceIds, + context).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Restarts one or more VMs belonging to 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 specifies a list of virtual machine instance IDs from the Network Virtual Appliance VM instances. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public NetworkVirtualApplianceInstanceIdsInner restart(String resourceGroupName, + String networkVirtualApplianceName) { + final NetworkVirtualApplianceInstanceIdsInner networkVirtualApplianceInstanceIds = null; + return restartAsync(resourceGroupName, networkVirtualApplianceName, networkVirtualApplianceInstanceIds).block(); + } + + /** + * Restarts one or more VMs belonging to the specified Network Virtual Appliance. + * + * @param resourceGroupName The name of the resource group. + * @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. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws 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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public NetworkVirtualApplianceInstanceIdsInner restart(String resourceGroupName, String networkVirtualApplianceName, + NetworkVirtualApplianceInstanceIdsInner networkVirtualApplianceInstanceIds, Context context) { + return restartAsync(resourceGroupName, networkVirtualApplianceName, networkVirtualApplianceInstanceIds, context) + .block(); + } + /** * Lists all Network Virtual Appliances in a resource group. * @@ -898,7 +1220,7 @@ public NetworkVirtualApplianceInner createOrUpdate(String resourceGroupName, Str return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -934,7 +1256,7 @@ public NetworkVirtualApplianceInner createOrUpdate(String resourceGroupName, Str return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1025,7 +1347,7 @@ private Mono> listSinglePageAsync() return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1055,7 +1377,7 @@ private Mono> listSinglePageAsync(Co return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkWatchersClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkWatchersClientImpl.java index bfb50a661f8d1..4ef58a343a260 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkWatchersClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkWatchersClientImpl.java @@ -321,7 +321,7 @@ public Mono> createOrUpdateWithResponseAsync(Strin } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -365,7 +365,7 @@ private Mono> createOrUpdateWithResponseAsync(Stri } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, networkWatcherName, apiVersion, @@ -455,7 +455,7 @@ public Mono> getByResourceGroupWithResponseAsync(S return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -494,7 +494,7 @@ private Mono> getByResourceGroupWithResponseAsync( return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, networkWatcherName, apiVersion, @@ -578,7 +578,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, networkWatcherName, @@ -616,7 +616,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, networkWatcherName, apiVersion, @@ -789,7 +789,7 @@ public Mono> updateTagsWithResponseAsync(String re } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, networkWatcherName, @@ -833,7 +833,7 @@ private Mono> updateTagsWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), resourceGroupName, networkWatcherName, apiVersion, @@ -916,7 +916,7 @@ private Mono> listByResourceGroupSinglePageAs return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -952,7 +952,7 @@ private Mono> listByResourceGroupSinglePageAs return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1038,7 +1038,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1068,7 +1068,7 @@ private Mono> listSinglePageAsync(Context con return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) @@ -1164,7 +1164,7 @@ public Mono> getTopologyWithResponseAsync(String resourc } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getTopology(this.client.getEndpoint(), resourceGroupName, @@ -1209,7 +1209,7 @@ private Mono> getTopologyWithResponseAsync(String resour } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getTopology(this.client.getEndpoint(), resourceGroupName, networkWatcherName, apiVersion, @@ -1305,7 +1305,7 @@ public Mono>> verifyIpFlowWithResponseAsync(String res } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.verifyIpFlow(this.client.getEndpoint(), resourceGroupName, @@ -1350,7 +1350,7 @@ private Mono>> verifyIpFlowWithResponseAsync(String re } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.verifyIpFlow(this.client.getEndpoint(), resourceGroupName, networkWatcherName, apiVersion, @@ -1543,7 +1543,7 @@ public Mono>> getNextHopWithResponseAsync(String resou } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getNextHop(this.client.getEndpoint(), resourceGroupName, networkWatcherName, @@ -1587,7 +1587,7 @@ private Mono>> getNextHopWithResponseAsync(String reso } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getNextHop(this.client.getEndpoint(), resourceGroupName, networkWatcherName, apiVersion, @@ -1779,7 +1779,7 @@ public Mono>> getVMSecurityRulesWithResponseAsync(Stri } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getVMSecurityRules(this.client.getEndpoint(), resourceGroupName, @@ -1824,7 +1824,7 @@ private Mono>> getVMSecurityRulesWithResponseAsync(Str } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getVMSecurityRules(this.client.getEndpoint(), resourceGroupName, networkWatcherName, apiVersion, @@ -2027,7 +2027,7 @@ public Mono>> getTroubleshootingWithResponseAsync(Stri } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getTroubleshooting(this.client.getEndpoint(), resourceGroupName, @@ -2072,7 +2072,7 @@ private Mono>> getTroubleshootingWithResponseAsync(Str } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getTroubleshooting(this.client.getEndpoint(), resourceGroupName, networkWatcherName, apiVersion, @@ -2266,7 +2266,7 @@ public Mono>> getTroubleshootingResultWithResponseAsyn } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getTroubleshootingResult(this.client.getEndpoint(), resourceGroupName, @@ -2311,7 +2311,7 @@ private Mono>> getTroubleshootingResultWithResponseAsy } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getTroubleshootingResult(this.client.getEndpoint(), resourceGroupName, networkWatcherName, @@ -2511,7 +2511,7 @@ public Mono>> setFlowLogConfigurationWithResponseAsync } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.setFlowLogConfiguration(this.client.getEndpoint(), resourceGroupName, @@ -2556,7 +2556,7 @@ private Mono>> setFlowLogConfigurationWithResponseAsyn } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.setFlowLogConfiguration(this.client.getEndpoint(), resourceGroupName, networkWatcherName, @@ -2757,7 +2757,7 @@ public Mono>> getFlowLogStatusWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getFlowLogStatus(this.client.getEndpoint(), resourceGroupName, @@ -2802,7 +2802,7 @@ private Mono>> getFlowLogStatusWithResponseAsync(Strin } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getFlowLogStatus(this.client.getEndpoint(), resourceGroupName, networkWatcherName, apiVersion, @@ -3003,7 +3003,7 @@ public Mono>> checkConnectivityWithResponseAsync(Strin } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.checkConnectivity(this.client.getEndpoint(), resourceGroupName, @@ -3049,7 +3049,7 @@ private Mono>> checkConnectivityWithResponseAsync(Stri } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.checkConnectivity(this.client.getEndpoint(), resourceGroupName, networkWatcherName, apiVersion, @@ -3254,7 +3254,7 @@ public Mono>> getAzureReachabilityReportWithResponseAs } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getAzureReachabilityReport(this.client.getEndpoint(), resourceGroupName, @@ -3299,7 +3299,7 @@ private Mono>> getAzureReachabilityReportWithResponseA } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getAzureReachabilityReport(this.client.getEndpoint(), resourceGroupName, networkWatcherName, @@ -3508,7 +3508,7 @@ public Mono>> listAvailableProvidersWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listAvailableProviders(this.client.getEndpoint(), resourceGroupName, @@ -3554,7 +3554,7 @@ private Mono>> listAvailableProvidersWithResponseAsync } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listAvailableProviders(this.client.getEndpoint(), resourceGroupName, networkWatcherName, @@ -3763,7 +3763,7 @@ public Mono>> getNetworkConfigurationDiagnosticWithRes } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -3813,7 +3813,7 @@ private Mono>> getNetworkConfigurationDiagnosticWithRe } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getNetworkConfigurationDiagnostic(this.client.getEndpoint(), resourceGroupName, @@ -3971,7 +3971,8 @@ private Mono getNetworkConfiguratio String resourceGroupName, String networkWatcherName, NetworkConfigurationDiagnosticParameters parameters, Context context) { return beginGetNetworkConfigurationDiagnosticAsync(resourceGroupName, networkWatcherName, parameters, context) - .last().flatMap(this.client::getLroFinalResultOrError); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/OperationsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/OperationsClientImpl.java index df1b9a309f6b5..473ddee31141e 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/OperationsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/OperationsClientImpl.java @@ -91,7 +91,7 @@ private Mono> listSinglePageAsync() { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil.withContext(context -> service.list(this.client.getEndpoint(), apiVersion, accept, context)) .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), @@ -115,7 +115,7 @@ private Mono> listSinglePageAsync(Context context) return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, accept, context) diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/P2SVpnGatewaysClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/P2SVpnGatewaysClientImpl.java index 00c4e536976a7..18c1232614c72 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/P2SVpnGatewaysClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/P2SVpnGatewaysClientImpl.java @@ -76,8 +76,8 @@ public final class P2SVpnGatewaysClientImpl implements InnerSupportsGet> getByResourceGroupWithResponseAsync(St if (gatewayName == null) { return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), @@ -271,7 +271,7 @@ private Mono> getByResourceGroupWithResponseAsync(S if (gatewayName == null) { return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -361,7 +361,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { p2SVpnGatewayParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -405,7 +405,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { p2SVpnGatewayParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -597,7 +597,7 @@ public Mono>> updateTagsWithResponseAsync(String resou } else { p2SVpnGatewayParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -641,7 +641,7 @@ private Mono>> updateTagsWithResponseAsync(String reso } else { p2SVpnGatewayParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -825,7 +825,7 @@ public Mono>> deleteWithResponseAsync(String resourceG if (gatewayName == null) { return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -862,7 +862,7 @@ private Mono>> deleteWithResponseAsync(String resource if (gatewayName == null) { return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -1023,7 +1023,7 @@ private Mono> listByResourceGroupSinglePageAsy return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), @@ -1059,7 +1059,7 @@ private Mono> listByResourceGroupSinglePageAsy return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1147,7 +1147,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, @@ -1177,7 +1177,7 @@ private Mono> listSinglePageAsync(Context cont return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, accept, context) @@ -1265,7 +1265,7 @@ public Mono>> resetWithResponseAsync(String resourceGr return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.reset(this.client.getEndpoint(), resourceGroupName, gatewayName, apiVersion, @@ -1302,7 +1302,7 @@ private Mono>> resetWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.reset(this.client.getEndpoint(), resourceGroupName, gatewayName, apiVersion, @@ -1478,7 +1478,7 @@ public Mono>> generateVpnProfileWithResponseAsync(Stri } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.generateVpnProfile(this.client.getEndpoint(), resourceGroupName, @@ -1522,7 +1522,7 @@ private Mono>> generateVpnProfileWithResponseAsync(Str } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.generateVpnProfile(this.client.getEndpoint(), resourceGroupName, gatewayName, apiVersion, @@ -1708,7 +1708,7 @@ public Mono>> getP2SVpnConnectionHealthWithResponseAsy return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getP2SVpnConnectionHealth(this.client.getEndpoint(), resourceGroupName, @@ -1746,7 +1746,7 @@ private Mono>> getP2SVpnConnectionHealthWithResponseAs return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getP2SVpnConnectionHealth(this.client.getEndpoint(), resourceGroupName, gatewayName, apiVersion, @@ -1933,7 +1933,7 @@ public Mono>> getP2SVpnConnectionHealthDetailedWithRes } else { request.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getP2SVpnConnectionHealthDetailed(this.client.getEndpoint(), @@ -1978,7 +1978,7 @@ private Mono>> getP2SVpnConnectionHealthDetailedWithRe } else { request.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getP2SVpnConnectionHealthDetailed(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -2193,7 +2193,7 @@ public Mono>> disconnectP2SVpnConnectionsWithResponseA } else { request.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.disconnectP2SVpnConnections(this.client.getEndpoint(), @@ -2238,7 +2238,7 @@ private Mono>> disconnectP2SVpnConnectionsWithResponse } else { request.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.disconnectP2SVpnConnections(this.client.getEndpoint(), this.client.getSubscriptionId(), diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PacketCapturesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PacketCapturesClientImpl.java index ee8da15268b10..337622cee6c03 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PacketCapturesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PacketCapturesClientImpl.java @@ -67,8 +67,8 @@ 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. + * The interface defining all the services for NetworkManagementClientPacketCaptures to be used by the proxy service + * to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "NetworkManagementCli") @@ -176,7 +176,7 @@ public Mono>> createWithResponseAsync(String resourceG } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.create(this.client.getEndpoint(), resourceGroupName, networkWatcherName, @@ -226,7 +226,7 @@ private Mono>> createWithResponseAsync(String resource } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.create(this.client.getEndpoint(), resourceGroupName, networkWatcherName, packetCaptureName, @@ -429,7 +429,7 @@ public Mono> getWithResponseAsync(String reso return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, networkWatcherName, @@ -472,7 +472,7 @@ private Mono> getWithResponseAsync(String res return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), resourceGroupName, networkWatcherName, packetCaptureName, @@ -565,7 +565,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, networkWatcherName, @@ -608,7 +608,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, networkWatcherName, packetCaptureName, @@ -793,7 +793,7 @@ public Mono>> stopWithResponseAsync(String resourceGro return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.stop(this.client.getEndpoint(), resourceGroupName, networkWatcherName, @@ -836,7 +836,7 @@ private Mono>> stopWithResponseAsync(String resourceGr return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.stop(this.client.getEndpoint(), resourceGroupName, networkWatcherName, packetCaptureName, @@ -1021,7 +1021,7 @@ public Mono>> getStatusWithResponseAsync(String resour return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getStatus(this.client.getEndpoint(), resourceGroupName, networkWatcherName, @@ -1064,7 +1064,7 @@ private Mono>> getStatusWithResponseAsync(String resou return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getStatus(this.client.getEndpoint(), resourceGroupName, networkWatcherName, packetCaptureName, @@ -1254,7 +1254,7 @@ private Mono> listSinglePageAsync(String return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, networkWatcherName, @@ -1295,7 +1295,7 @@ private Mono> listSinglePageAsync(String return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PeerExpressRouteCircuitConnectionsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PeerExpressRouteCircuitConnectionsClientImpl.java index b31820643dffa..b9023525810fb 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PeerExpressRouteCircuitConnectionsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PeerExpressRouteCircuitConnectionsClientImpl.java @@ -127,7 +127,7 @@ public Mono> getWithResponseAsy return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, circuitName, peeringName, @@ -173,7 +173,7 @@ private Mono> getWithResponseAs return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), resourceGroupName, circuitName, peeringName, connectionName, @@ -271,7 +271,7 @@ private Mono> listSinglePa return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, circuitName, peeringName, @@ -315,7 +315,7 @@ private Mono> listSinglePa return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PrivateDnsZoneGroupsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PrivateDnsZoneGroupsClientImpl.java index 7ceae75ccc0a7..b8ce4349e5360 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PrivateDnsZoneGroupsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PrivateDnsZoneGroupsClientImpl.java @@ -157,7 +157,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, privateEndpointName, @@ -200,7 +200,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, privateEndpointName, @@ -389,7 +389,7 @@ public Mono> getWithResponseAsync(String reso return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, privateEndpointName, @@ -433,7 +433,7 @@ private Mono> getWithResponseAsync(String res return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), resourceGroupName, privateEndpointName, privateDnsZoneGroupName, @@ -535,7 +535,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -586,7 +586,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, privateEndpointName, @@ -678,8 +678,10 @@ public SyncPoller, PrivateDnsZoneGroupInner public SyncPoller, PrivateDnsZoneGroupInner> beginCreateOrUpdate( String resourceGroupName, String privateEndpointName, String privateDnsZoneGroupName, PrivateDnsZoneGroupInner parameters, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, privateEndpointName, privateDnsZoneGroupName, - parameters, context).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, privateEndpointName, privateDnsZoneGroupName, parameters, + context) + .getSyncPoller(); } /** @@ -698,7 +700,8 @@ public SyncPoller, PrivateDnsZoneGroupInner public Mono createOrUpdateAsync(String resourceGroupName, String privateEndpointName, String privateDnsZoneGroupName, PrivateDnsZoneGroupInner parameters) { return beginCreateOrUpdateAsync(resourceGroupName, privateEndpointName, privateDnsZoneGroupName, parameters) - .last().flatMap(this.client::getLroFinalResultOrError); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -789,7 +792,7 @@ private Mono> listSinglePageAsync(String return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), privateEndpointName, resourceGroupName, @@ -830,7 +833,7 @@ private Mono> listSinglePageAsync(String return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PrivateEndpointsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PrivateEndpointsClientImpl.java index 4798319b075c7..ff6bcb1b89430 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PrivateEndpointsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PrivateEndpointsClientImpl.java @@ -166,7 +166,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, privateEndpointName, @@ -204,7 +204,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, privateEndpointName, apiVersion, @@ -374,7 +374,7 @@ public Mono> getByResourceGroupWithResponseAsync( return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -414,7 +414,7 @@ private Mono> getByResourceGroupWithResponseAsync return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, privateEndpointName, apiVersion, @@ -507,7 +507,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -551,7 +551,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, privateEndpointName, apiVersion, @@ -732,7 +732,7 @@ private Mono> listByResourceGroupSinglePageA return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -768,7 +768,7 @@ private Mono> listByResourceGroupSinglePageA return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -856,7 +856,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -886,7 +886,7 @@ private Mono> listSinglePageAsync(Context co return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PrivateLinkServicesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PrivateLinkServicesClientImpl.java index ad7580bd558d5..ba5ad33d45a64 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PrivateLinkServicesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PrivateLinkServicesClientImpl.java @@ -272,7 +272,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, serviceName, @@ -309,7 +309,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, serviceName, apiVersion, @@ -476,7 +476,7 @@ public Mono> getByResourceGroupWithResponseAsy return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -515,7 +515,7 @@ private Mono> getByResourceGroupWithResponseAs return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, serviceName, apiVersion, @@ -607,7 +607,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, serviceName, @@ -650,7 +650,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, serviceName, apiVersion, @@ -831,7 +831,7 @@ private Mono> listByResourceGroupSinglePa return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -867,7 +867,7 @@ private Mono> listByResourceGroupSinglePa return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -955,7 +955,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -985,7 +985,7 @@ private Mono> listSinglePageAsync(Context return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) @@ -1082,7 +1082,7 @@ public Mono> getPrivateEndpointConnecti return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getPrivateEndpointConnection(this.client.getEndpoint(), resourceGroupName, @@ -1126,7 +1126,7 @@ private Mono> getPrivateEndpointConnect return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getPrivateEndpointConnection(this.client.getEndpoint(), resourceGroupName, serviceName, @@ -1233,7 +1233,7 @@ public Mono> updatePrivateEndpointConne } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updatePrivateEndpointConnection(this.client.getEndpoint(), @@ -1283,7 +1283,7 @@ private Mono> updatePrivateEndpointConn } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updatePrivateEndpointConnection(this.client.getEndpoint(), resourceGroupName, serviceName, @@ -1382,7 +1382,7 @@ public Mono>> deletePrivateEndpointConnectionWithRespo return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1425,7 +1425,7 @@ private Mono>> deletePrivateEndpointConnectionWithResp return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.deletePrivateEndpointConnection(this.client.getEndpoint(), resourceGroupName, serviceName, @@ -1545,7 +1545,8 @@ public Mono deletePrivateEndpointConnectionAsync(String resourceGroupName, private Mono deletePrivateEndpointConnectionAsync(String resourceGroupName, String serviceName, String peConnectionName, Context context) { return beginDeletePrivateEndpointConnectionAsync(resourceGroupName, serviceName, peConnectionName, context) - .last().flatMap(this.client::getLroFinalResultOrError); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -1609,7 +1610,7 @@ public void deletePrivateEndpointConnection(String resourceGroupName, String ser return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listPrivateEndpointConnections(this.client.getEndpoint(), resourceGroupName, @@ -1649,7 +1650,7 @@ public void deletePrivateEndpointConnection(String resourceGroupName, String ser return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1762,7 +1763,7 @@ public Mono>> checkPrivateLinkServiceVisibilityWithRes } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.checkPrivateLinkServiceVisibility(this.client.getEndpoint(), location, @@ -1801,7 +1802,7 @@ private Mono>> checkPrivateLinkServiceVisibilityWithRe } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.checkPrivateLinkServiceVisibility(this.client.getEndpoint(), location, apiVersion, @@ -1995,7 +1996,7 @@ public Mono>> checkPrivateLinkServiceVisibilityByResou } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.checkPrivateLinkServiceVisibilityByResourceGroup(this.client.getEndpoint(), @@ -2040,7 +2041,7 @@ private Mono>> checkPrivateLinkServiceVisibilityByReso } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.checkPrivateLinkServiceVisibilityByResourceGroup(this.client.getEndpoint(), location, @@ -2132,8 +2133,10 @@ private Mono>> checkPrivateLinkServiceVisibilityByReso public SyncPoller, PrivateLinkServiceVisibilityInner> beginCheckPrivateLinkServiceVisibilityByResourceGroup(String location, String resourceGroupName, CheckPrivateLinkServiceVisibilityRequest parameters, Context context) { - return this.beginCheckPrivateLinkServiceVisibilityByResourceGroupAsync(location, resourceGroupName, parameters, - context).getSyncPoller(); + return this + .beginCheckPrivateLinkServiceVisibilityByResourceGroupAsync(location, resourceGroupName, parameters, + context) + .getSyncPoller(); } /** @@ -2152,7 +2155,8 @@ private Mono>> checkPrivateLinkServiceVisibilityByReso public Mono checkPrivateLinkServiceVisibilityByResourceGroupAsync( String location, String resourceGroupName, CheckPrivateLinkServiceVisibilityRequest parameters) { return beginCheckPrivateLinkServiceVisibilityByResourceGroupAsync(location, resourceGroupName, parameters) - .last().flatMap(this.client::getLroFinalResultOrError); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -2237,7 +2241,7 @@ public PrivateLinkServiceVisibilityInner checkPrivateLinkServiceVisibilityByReso return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listAutoApprovedPrivateLinkServices(this.client.getEndpoint(), location, @@ -2273,7 +2277,7 @@ public PrivateLinkServiceVisibilityInner checkPrivateLinkServiceVisibilityByReso return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -2383,7 +2387,7 @@ public PagedIterable listAutoApprovedPrivat return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -2426,7 +2430,7 @@ public PagedIterable listAutoApprovedPrivat return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PublicIpAddressesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PublicIpAddressesClientImpl.java index 09c04ac019d86..7cb59cd11f39c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PublicIpAddressesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PublicIpAddressesClientImpl.java @@ -293,7 +293,7 @@ Mono> listVirtualMachineScaleSetVMPublicIpAd return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listCloudServicePublicIpAddresses(this.client.getEndpoint(), @@ -334,7 +334,7 @@ private Mono> listCloudServicePublicIpAddres return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -465,7 +465,7 @@ private Mono> listCloudServiceRoleInstancePu return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listCloudServiceRoleInstancePublicIpAddresses(this.client.getEndpoint(), @@ -523,7 +523,7 @@ private Mono> listCloudServiceRoleInstancePu return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -678,7 +678,7 @@ public Mono> getCloudServicePublicIpAddressWithRe return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getCloudServicePublicIpAddress(this.client.getEndpoint(), resourceGroupName, @@ -740,7 +740,7 @@ private Mono> getCloudServicePublicIpAddressWithR return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getCloudServicePublicIpAddress(this.client.getEndpoint(), resourceGroupName, cloudServiceName, @@ -847,7 +847,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, publicIpAddressName, @@ -885,7 +885,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, publicIpAddressName, apiVersion, @@ -1055,7 +1055,7 @@ public Mono> getByResourceGroupWithResponseAsync( return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -1095,7 +1095,7 @@ private Mono> getByResourceGroupWithResponseAsync return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, publicIpAddressName, apiVersion, @@ -1188,7 +1188,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -1232,7 +1232,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, publicIpAddressName, apiVersion, @@ -1424,7 +1424,7 @@ public Mono> updateTagsWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, @@ -1468,7 +1468,7 @@ private Mono> updateTagsWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), resourceGroupName, publicIpAddressName, apiVersion, @@ -1546,7 +1546,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1576,7 +1576,7 @@ private Mono> listSinglePageAsync(Context co return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) @@ -1661,7 +1661,7 @@ private Mono> listByResourceGroupSinglePageA return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -1697,7 +1697,7 @@ private Mono> listByResourceGroupSinglePageA return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1797,7 +1797,7 @@ public Mono>> ddosProtectionStatusWithResponseAsync(St return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.ddosProtectionStatus(this.client.getEndpoint(), resourceGroupName, @@ -1836,7 +1836,7 @@ private Mono>> ddosProtectionStatusWithResponseAsync(S return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.ddosProtectionStatus(this.client.getEndpoint(), resourceGroupName, publicIpAddressName, diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PublicIpPrefixesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PublicIpPrefixesClientImpl.java index f3636dfb309c2..41b387b8ca163 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PublicIpPrefixesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PublicIpPrefixesClientImpl.java @@ -178,7 +178,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, publicIpPrefixName, @@ -216,7 +216,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, publicIpPrefixName, apiVersion, @@ -385,7 +385,7 @@ public Mono> getByResourceGroupWithResponseAsync(S return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -425,7 +425,7 @@ private Mono> getByResourceGroupWithResponseAsync( return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, publicIpPrefixName, apiVersion, @@ -518,7 +518,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -562,7 +562,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, publicIpPrefixName, apiVersion, @@ -754,7 +754,7 @@ public Mono> updateTagsWithResponseAsync(String re } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, publicIpPrefixName, @@ -798,7 +798,7 @@ private Mono> updateTagsWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), resourceGroupName, publicIpPrefixName, apiVersion, @@ -875,7 +875,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -905,7 +905,7 @@ private Mono> listSinglePageAsync(Context con return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) @@ -990,7 +990,7 @@ private Mono> listByResourceGroupSinglePageAs return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -1026,7 +1026,7 @@ private Mono> listByResourceGroupSinglePageAs return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ResourceNavigationLinksClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ResourceNavigationLinksClientImpl.java index 51b6e5327a2f2..0490b7d1a8d8d 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ResourceNavigationLinksClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ResourceNavigationLinksClientImpl.java @@ -102,7 +102,7 @@ public Mono> listWithResponseAs return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, @@ -145,7 +145,7 @@ private Mono> listWithResponseA return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, subnetName, apiVersion, diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RouteFilterRulesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RouteFilterRulesClientImpl.java index 9d8c71431afa1..2a18f1d068b30 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RouteFilterRulesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RouteFilterRulesClientImpl.java @@ -152,7 +152,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, routeFilterName, @@ -194,7 +194,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, routeFilterName, ruleName, apiVersion, @@ -377,7 +377,7 @@ public Mono> getWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, routeFilterName, ruleName, @@ -420,7 +420,7 @@ private Mono> getWithResponseAsync(String resourc return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), resourceGroupName, routeFilterName, ruleName, apiVersion, @@ -518,7 +518,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { routeFilterRuleParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -568,7 +568,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { routeFilterRuleParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, routeFilterName, ruleName, @@ -770,7 +770,7 @@ private Mono> listByRouteFilterSinglePageAsy return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByRouteFilter(this.client.getEndpoint(), resourceGroupName, @@ -811,7 +811,7 @@ private Mono> listByRouteFilterSinglePageAsy return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RouteFiltersClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RouteFiltersClientImpl.java index 009345564a2b7..820e624e6624f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RouteFiltersClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RouteFiltersClientImpl.java @@ -176,7 +176,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, routeFilterName, @@ -214,7 +214,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, routeFilterName, apiVersion, @@ -382,7 +382,7 @@ public Mono> getByResourceGroupWithResponseAsync(Stri return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -421,7 +421,7 @@ private Mono> getByResourceGroupWithResponseAsync(Str return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, routeFilterName, apiVersion, @@ -515,7 +515,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { routeFilterParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -560,7 +560,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { routeFilterParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, routeFilterName, apiVersion, @@ -752,7 +752,7 @@ public Mono> updateTagsWithResponseAsync(String resou } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, routeFilterName, @@ -796,7 +796,7 @@ private Mono> updateTagsWithResponseAsync(String reso } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), resourceGroupName, routeFilterName, apiVersion, @@ -879,7 +879,7 @@ private Mono> listByResourceGroupSinglePageAsync return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -915,7 +915,7 @@ private Mono> listByResourceGroupSinglePageAsync return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1003,7 +1003,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1033,7 +1033,7 @@ private Mono> listSinglePageAsync(Context contex return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RouteMapsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RouteMapsClientImpl.java index db1b00d7dbad1..f3b2ac4c87954 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RouteMapsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RouteMapsClientImpl.java @@ -153,7 +153,7 @@ public Mono> getWithResponseAsync(String resourceGroupNa if (routeMapName == null) { return Mono.error(new IllegalArgumentException("Parameter routeMapName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -195,7 +195,7 @@ private Mono> getWithResponseAsync(String resourceGroupN if (routeMapName == null) { return Mono.error(new IllegalArgumentException("Parameter routeMapName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -293,7 +293,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { routeMapParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -342,7 +342,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { routeMapParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -469,7 +469,8 @@ public Mono createOrUpdateAsync(String resourceGroupName, String private Mono createOrUpdateAsync(String resourceGroupName, String virtualHubName, String routeMapName, RouteMapInner routeMapParameters, Context context) { return beginCreateOrUpdateAsync(resourceGroupName, virtualHubName, routeMapName, routeMapParameters, context) - .last().flatMap(this.client::getLroFinalResultOrError); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -542,7 +543,7 @@ public Mono>> deleteWithResponseAsync(String resourceG if (routeMapName == null) { return Mono.error(new IllegalArgumentException("Parameter routeMapName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -583,7 +584,7 @@ private Mono>> deleteWithResponseAsync(String resource if (routeMapName == null) { return Mono.error(new IllegalArgumentException("Parameter routeMapName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -762,7 +763,7 @@ private Mono> listSinglePageAsync(String resourceGr if (virtualHubName == null) { return Mono.error(new IllegalArgumentException("Parameter virtualHubName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -802,7 +803,7 @@ private Mono> listSinglePageAsync(String resourceGr if (virtualHubName == null) { return Mono.error(new IllegalArgumentException("Parameter virtualHubName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RouteTablesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RouteTablesClientImpl.java index 879df8b1a3b02..b3cc0cc5b087f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RouteTablesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RouteTablesClientImpl.java @@ -70,8 +70,8 @@ public final class RouteTablesClientImpl implements InnerSupportsGet>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, routeTableName, @@ -211,7 +211,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, routeTableName, apiVersion, @@ -378,7 +378,7 @@ public Mono> getByResourceGroupWithResponseAsync(Strin return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -416,7 +416,7 @@ private Mono> getByResourceGroupWithResponseAsync(Stri return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, routeTableName, apiVersion, @@ -508,7 +508,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, routeTableName, @@ -551,7 +551,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, routeTableName, apiVersion, @@ -740,7 +740,7 @@ public Mono> updateTagsWithResponseAsync(String resour } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, routeTableName, @@ -783,7 +783,7 @@ private Mono> updateTagsWithResponseAsync(String resou } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), resourceGroupName, routeTableName, apiVersion, @@ -866,7 +866,7 @@ private Mono> listByResourceGroupSinglePageAsync( return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -902,7 +902,7 @@ private Mono> listByResourceGroupSinglePageAsync( return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -990,7 +990,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1020,7 +1020,7 @@ private Mono> listSinglePageAsync(Context context return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RoutesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RoutesClientImpl.java index edd17ee3987a9..cc1d6fc613ce5 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RoutesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RoutesClientImpl.java @@ -149,7 +149,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, routeTableName, @@ -190,7 +190,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, routeTableName, routeName, apiVersion, @@ -372,7 +372,7 @@ public Mono> getWithResponseAsync(String resourceGroupName, return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, routeTableName, routeName, @@ -414,7 +414,7 @@ private Mono> getWithResponseAsync(String resourceGroupName return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), resourceGroupName, routeTableName, routeName, apiVersion, @@ -511,7 +511,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { routeParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, routeTableName, @@ -559,7 +559,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { routeParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, routeTableName, routeName, @@ -752,7 +752,7 @@ private Mono> listSinglePageAsync(String resourceGroup return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, routeTableName, @@ -791,7 +791,7 @@ private Mono> listSinglePageAsync(String resourceGroup return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RoutingIntentsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RoutingIntentsClientImpl.java index 35509dbcdb3f8..7e286fdd01e9f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RoutingIntentsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RoutingIntentsClientImpl.java @@ -64,8 +64,8 @@ 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. + * The interface defining all the services for NetworkManagementClientRoutingIntents to be used by the proxy service + * to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "NetworkManagementCli") @@ -163,7 +163,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { routingIntentParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -214,7 +214,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { routingIntentParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -303,8 +303,10 @@ public SyncPoller, RoutingIntentInner> beginCreat @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, RoutingIntentInner> beginCreateOrUpdate(String resourceGroupName, String virtualHubName, String routingIntentName, RoutingIntentInner routingIntentParameters, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, virtualHubName, routingIntentName, - routingIntentParameters, context).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, virtualHubName, routingIntentName, routingIntentParameters, + context) + .getSyncPoller(); } /** @@ -323,7 +325,8 @@ public SyncPoller, RoutingIntentInner> beginCreat public Mono createOrUpdateAsync(String resourceGroupName, String virtualHubName, String routingIntentName, RoutingIntentInner routingIntentParameters) { return beginCreateOrUpdateAsync(resourceGroupName, virtualHubName, routingIntentName, routingIntentParameters) - .last().flatMap(this.client::getLroFinalResultOrError); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -419,7 +422,7 @@ public Mono> getWithResponseAsync(String resourceGr return Mono .error(new IllegalArgumentException("Parameter routingIntentName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -462,7 +465,7 @@ private Mono> getWithResponseAsync(String resourceG return Mono .error(new IllegalArgumentException("Parameter routingIntentName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -554,7 +557,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono .error(new IllegalArgumentException("Parameter routingIntentName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -596,7 +599,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter routingIntentName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -776,7 +779,7 @@ private Mono> listSinglePageAsync(String resou if (virtualHubName == null) { return Mono.error(new IllegalArgumentException("Parameter virtualHubName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -816,7 +819,7 @@ private Mono> listSinglePageAsync(String resou if (virtualHubName == null) { return Mono.error(new IllegalArgumentException("Parameter virtualHubName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ScopeConnectionsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ScopeConnectionsClientImpl.java index c74cd1ac6dfd2..317557c9ae806 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ScopeConnectionsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ScopeConnectionsClientImpl.java @@ -159,7 +159,7 @@ public Mono> createOrUpdateWithResponseAsync(Stri } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -208,7 +208,7 @@ private Mono> createOrUpdateWithResponseAsync(Str } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -308,7 +308,7 @@ public Mono> getWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter scopeConnectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -352,7 +352,7 @@ private Mono> getWithResponseAsync(String resourc return Mono .error(new IllegalArgumentException("Parameter scopeConnectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -445,7 +445,7 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St return Mono .error(new IllegalArgumentException("Parameter scopeConnectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -488,7 +488,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S return Mono .error(new IllegalArgumentException("Parameter scopeConnectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -579,7 +579,7 @@ private Mono> listSinglePageAsync(String res return Mono .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -624,7 +624,7 @@ private Mono> listSinglePageAsync(String res return Mono .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityAdminConfigurationsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityAdminConfigurationsClientImpl.java index cef970dd6f8be..e5637c741bbb3 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityAdminConfigurationsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityAdminConfigurationsClientImpl.java @@ -158,7 +158,7 @@ private Mono> listSinglePageAsync return Mono .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -204,7 +204,7 @@ private Mono> listSinglePageAsync return Mono .error(new IllegalArgumentException("Parameter networkManagerName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -352,7 +352,7 @@ public Mono> getWithResponseAsync(Stri return Mono .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -396,7 +396,7 @@ private Mono> getWithResponseAsync(Str return Mono .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, @@ -499,7 +499,7 @@ public Mono> createOrUpdateWithRespons } else { securityAdminConfiguration.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), apiVersion, @@ -552,7 +552,7 @@ private Mono> createOrUpdateWithRespon } else { securityAdminConfiguration.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -655,7 +655,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -701,7 +701,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), resourceGroupName, diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityPartnerProvidersClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityPartnerProvidersClientImpl.java index 13ddd1891bba6..9c4a40c893f6b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityPartnerProvidersClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityPartnerProvidersClientImpl.java @@ -180,7 +180,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, @@ -218,7 +218,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, securityPartnerProviderName, apiVersion, @@ -389,7 +389,7 @@ public Mono> getByResourceGroupWithRespon return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -428,7 +428,7 @@ private Mono> getByResourceGroupWithRespo return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, securityPartnerProviderName, @@ -520,7 +520,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -564,7 +564,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, securityPartnerProviderName, @@ -761,7 +761,7 @@ public Mono> updateTagsWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, @@ -805,7 +805,7 @@ private Mono> updateTagsWithResponseAsync } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), resourceGroupName, securityPartnerProviderName, apiVersion, @@ -891,7 +891,7 @@ public SecurityPartnerProviderInner updateTags(String resourceGroupName, String return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -927,7 +927,7 @@ public SecurityPartnerProviderInner updateTags(String resourceGroupName, String return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1018,7 +1018,7 @@ private Mono> listSinglePageAsync() return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -1048,7 +1048,7 @@ private Mono> listSinglePageAsync(Co return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityRulesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityRulesClientImpl.java index 40bfd0f9eddb9..7b56dd5e3780e 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityRulesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SecurityRulesClientImpl.java @@ -154,7 +154,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -198,7 +198,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, networkSecurityGroupName, securityRuleName, @@ -385,7 +385,7 @@ public Mono> getWithResponseAsync(String resourceGro return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, networkSecurityGroupName, @@ -428,7 +428,7 @@ private Mono> getWithResponseAsync(String resourceGr return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), resourceGroupName, networkSecurityGroupName, securityRuleName, @@ -528,7 +528,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { securityRuleParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -580,7 +580,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { securityRuleParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, networkSecurityGroupName, @@ -648,8 +648,10 @@ private PollerFlux, SecurityRuleInner> beginCreate @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, SecurityRuleInner> beginCreateOrUpdate(String resourceGroupName, String networkSecurityGroupName, String securityRuleName, SecurityRuleInner securityRuleParameters) { - return this.beginCreateOrUpdateAsync(resourceGroupName, networkSecurityGroupName, securityRuleName, - securityRuleParameters).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, networkSecurityGroupName, securityRuleName, + securityRuleParameters) + .getSyncPoller(); } /** @@ -669,8 +671,10 @@ public SyncPoller, SecurityRuleInner> beginCreateO public SyncPoller, SecurityRuleInner> beginCreateOrUpdate(String resourceGroupName, String networkSecurityGroupName, String securityRuleName, SecurityRuleInner securityRuleParameters, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, networkSecurityGroupName, securityRuleName, - securityRuleParameters, context).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, networkSecurityGroupName, securityRuleName, + securityRuleParameters, context) + .getSyncPoller(); } /** @@ -781,7 +785,7 @@ private Mono> listSinglePageAsync(String resour return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, networkSecurityGroupName, @@ -822,7 +826,7 @@ private Mono> listSinglePageAsync(String resour return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceAssociationLinksClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceAssociationLinksClientImpl.java index 38cc4c962f478..767182be60501 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceAssociationLinksClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceAssociationLinksClientImpl.java @@ -102,7 +102,7 @@ public Mono> listWithResponseAs return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, @@ -145,7 +145,7 @@ private Mono> listWithResponseA return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, subnetName, apiVersion, diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceEndpointPoliciesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceEndpointPoliciesClientImpl.java index 5563d2a5e5dce..2a9d9797cae32 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceEndpointPoliciesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceEndpointPoliciesClientImpl.java @@ -180,7 +180,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, @@ -218,7 +218,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, serviceEndpointPolicyName, apiVersion, @@ -389,7 +389,7 @@ public Mono> getByResourceGroupWithResponse return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -429,7 +429,7 @@ private Mono> getByResourceGroupWithRespons return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, serviceEndpointPolicyName, @@ -526,7 +526,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -570,7 +570,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, serviceEndpointPolicyName, @@ -765,7 +765,7 @@ public Mono> updateTagsWithResponseAsync(St } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, @@ -809,7 +809,7 @@ private Mono> updateTagsWithResponseAsync(S } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), resourceGroupName, serviceEndpointPolicyName, apiVersion, @@ -888,7 +888,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -918,7 +918,7 @@ private Mono> listSinglePageAsync(Cont return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) @@ -1004,7 +1004,7 @@ public PagedIterable list(Context context) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -1040,7 +1040,7 @@ private Mono> listByResourceGroupSingl return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceEndpointPolicyDefinitionsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceEndpointPolicyDefinitionsClientImpl.java index 73123df1dda43..b9ec770e81bfd 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceEndpointPolicyDefinitionsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceEndpointPolicyDefinitionsClientImpl.java @@ -64,8 +64,8 @@ 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. + * The interface defining all the services for NetworkManagementClientServiceEndpointPolicyDefinitions to be used by + * the proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "NetworkManagementCli") @@ -157,7 +157,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -201,7 +201,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, serviceEndpointPolicyName, @@ -283,8 +283,10 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, @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(); + return this + .beginDeleteAsync(resourceGroupName, serviceEndpointPolicyName, serviceEndpointPolicyDefinitionName, + context) + .getSyncPoller(); } /** @@ -302,7 +304,8 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, public Mono deleteAsync(String resourceGroupName, String serviceEndpointPolicyName, String serviceEndpointPolicyDefinitionName) { return beginDeleteAsync(resourceGroupName, serviceEndpointPolicyName, serviceEndpointPolicyDefinitionName) - .last().flatMap(this.client::getLroFinalResultOrError); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -392,7 +395,7 @@ public Mono> getWithResponseAsync return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, serviceEndpointPolicyName, @@ -436,7 +439,7 @@ private Mono> getWithResponseAsyn return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), resourceGroupName, serviceEndpointPolicyName, @@ -543,7 +546,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { serviceEndpointPolicyDefinitions.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -596,7 +599,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { serviceEndpointPolicyDefinitions.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, serviceEndpointPolicyName, @@ -674,8 +677,10 @@ private Mono>> createOrUpdateWithResponseAsync(String beginCreateOrUpdate(String resourceGroupName, String serviceEndpointPolicyName, String serviceEndpointPolicyDefinitionName, ServiceEndpointPolicyDefinitionInner serviceEndpointPolicyDefinitions) { - return this.beginCreateOrUpdateAsync(resourceGroupName, serviceEndpointPolicyName, - serviceEndpointPolicyDefinitionName, serviceEndpointPolicyDefinitions).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, serviceEndpointPolicyName, serviceEndpointPolicyDefinitionName, + serviceEndpointPolicyDefinitions) + .getSyncPoller(); } /** @@ -697,8 +702,10 @@ private Mono>> createOrUpdateWithResponseAsync(String beginCreateOrUpdate(String resourceGroupName, String serviceEndpointPolicyName, String serviceEndpointPolicyDefinitionName, ServiceEndpointPolicyDefinitionInner serviceEndpointPolicyDefinitions, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, serviceEndpointPolicyName, - serviceEndpointPolicyDefinitionName, serviceEndpointPolicyDefinitions, context).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, serviceEndpointPolicyName, serviceEndpointPolicyDefinitionName, + serviceEndpointPolicyDefinitions, context) + .getSyncPoller(); } /** @@ -819,7 +826,7 @@ public ServiceEndpointPolicyDefinitionInner createOrUpdate(String resourceGroupN return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -860,7 +867,7 @@ private Mono> listByResource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceTagInformationsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceTagInformationsClientImpl.java index 62c4e25b58aed..e1457bafd1071 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceTagInformationsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceTagInformationsClientImpl.java @@ -56,8 +56,8 @@ 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. + * The interface defining all the services for NetworkManagementClientServiceTagInformations to be used by the proxy + * service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "NetworkManagementCli") @@ -109,7 +109,7 @@ private Mono> listSinglePageAsync(Stri return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), location, apiVersion, @@ -148,7 +148,7 @@ private Mono> listSinglePageAsync(Stri return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceTagsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceTagsClientImpl.java index d7773f17572da..8ec7b5fb829eb 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceTagsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ServiceTagsClientImpl.java @@ -51,8 +51,8 @@ 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. + * The interface defining all the services for NetworkManagementClientServiceTags to be used by the proxy service to + * perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "NetworkManagementCli") @@ -91,7 +91,7 @@ public Mono> listWithResponseAsync(String l return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), location, apiVersion, @@ -125,7 +125,7 @@ private Mono> listWithResponseAsync(String return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), location, apiVersion, this.client.getSubscriptionId(), accept, diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/StaticMembersClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/StaticMembersClientImpl.java index 509872e613cbd..c507426ac00fb 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/StaticMembersClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/StaticMembersClientImpl.java @@ -161,7 +161,7 @@ public Mono> getWithResponseAsync(String resourceGro return Mono .error(new IllegalArgumentException("Parameter staticMemberName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -209,7 +209,7 @@ private Mono> getWithResponseAsync(String resourceGr return Mono .error(new IllegalArgumentException("Parameter staticMemberName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -319,7 +319,7 @@ public Mono> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -375,7 +375,7 @@ private Mono> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -482,7 +482,7 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St return Mono .error(new IllegalArgumentException("Parameter staticMemberName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -530,7 +530,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S return Mono .error(new IllegalArgumentException("Parameter staticMemberName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -633,7 +633,7 @@ private Mono> listSinglePageAsync(String resour return Mono .error(new IllegalArgumentException("Parameter networkGroupName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -684,7 +684,7 @@ private Mono> listSinglePageAsync(String resour return Mono .error(new IllegalArgumentException("Parameter networkGroupName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SubnetsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SubnetsClientImpl.java index bb41c3a6cd9c9..b129c71d6b719 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SubnetsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SubnetsClientImpl.java @@ -175,7 +175,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, @@ -217,7 +217,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, subnetName, apiVersion, @@ -403,7 +403,7 @@ public Mono> getWithResponseAsync(String resourceGroupName return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, @@ -447,7 +447,7 @@ private Mono> getWithResponseAsync(String resourceGroupNam return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, subnetName, apiVersion, @@ -549,7 +549,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { subnetParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -600,7 +600,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { subnetParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, subnetName, @@ -727,7 +727,8 @@ public Mono createOrUpdateAsync(String resourceGroupName, String vi 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); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -810,7 +811,7 @@ public Mono>> prepareNetworkPoliciesWithResponseAsync( } else { prepareNetworkPoliciesRequestParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.prepareNetworkPolicies(this.client.getEndpoint(), resourceGroupName, @@ -862,7 +863,7 @@ private Mono>> prepareNetworkPoliciesWithResponseAsync } else { prepareNetworkPoliciesRequestParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.prepareNetworkPolicies(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, @@ -935,8 +936,10 @@ private PollerFlux, Void> beginPrepareNetworkPoliciesAsync(Stri public SyncPoller, Void> beginPrepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, String subnetName, PrepareNetworkPoliciesRequest prepareNetworkPoliciesRequestParameters) { - return this.beginPrepareNetworkPoliciesAsync(resourceGroupName, virtualNetworkName, subnetName, - prepareNetworkPoliciesRequestParameters).getSyncPoller(); + return this + .beginPrepareNetworkPoliciesAsync(resourceGroupName, virtualNetworkName, subnetName, + prepareNetworkPoliciesRequestParameters) + .getSyncPoller(); } /** @@ -957,8 +960,10 @@ public SyncPoller, Void> beginPrepareNetworkPolicies(String res public SyncPoller, Void> beginPrepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, String subnetName, PrepareNetworkPoliciesRequest prepareNetworkPoliciesRequestParameters, Context context) { - return this.beginPrepareNetworkPoliciesAsync(resourceGroupName, virtualNetworkName, subnetName, - prepareNetworkPoliciesRequestParameters, context).getSyncPoller(); + return this + .beginPrepareNetworkPoliciesAsync(resourceGroupName, virtualNetworkName, subnetName, + prepareNetworkPoliciesRequestParameters, context) + .getSyncPoller(); } /** @@ -1083,7 +1088,7 @@ public Mono>> unprepareNetworkPoliciesWithResponseAsyn } else { unprepareNetworkPoliciesRequestParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.unprepareNetworkPolicies(this.client.getEndpoint(), resourceGroupName, @@ -1135,7 +1140,7 @@ private Mono>> unprepareNetworkPoliciesWithResponseAsy } else { unprepareNetworkPoliciesRequestParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.unprepareNetworkPolicies(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, @@ -1208,8 +1213,10 @@ private PollerFlux, Void> beginUnprepareNetworkPoliciesAsync(St public SyncPoller, Void> beginUnprepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, String subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters) { - return this.beginUnprepareNetworkPoliciesAsync(resourceGroupName, virtualNetworkName, subnetName, - unprepareNetworkPoliciesRequestParameters).getSyncPoller(); + return this + .beginUnprepareNetworkPoliciesAsync(resourceGroupName, virtualNetworkName, subnetName, + unprepareNetworkPoliciesRequestParameters) + .getSyncPoller(); } /** @@ -1230,8 +1237,10 @@ public SyncPoller, Void> beginUnprepareNetworkPolicies(String r public SyncPoller, Void> beginUnprepareNetworkPolicies(String resourceGroupName, String virtualNetworkName, String subnetName, UnprepareNetworkPoliciesRequest unprepareNetworkPoliciesRequestParameters, Context context) { - return this.beginUnprepareNetworkPoliciesAsync(resourceGroupName, virtualNetworkName, subnetName, - unprepareNetworkPoliciesRequestParameters, context).getSyncPoller(); + return this + .beginUnprepareNetworkPoliciesAsync(resourceGroupName, virtualNetworkName, subnetName, + unprepareNetworkPoliciesRequestParameters, context) + .getSyncPoller(); } /** @@ -1343,7 +1352,7 @@ private Mono> listSinglePageAsync(String resourceGrou return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, @@ -1384,7 +1393,7 @@ private Mono> listSinglePageAsync(String resourceGrou return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SubscriptionNetworkManagerConnectionsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SubscriptionNetworkManagerConnectionsClientImpl.java index a70c71af9cd2c..995c685712170 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SubscriptionNetworkManagerConnectionsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/SubscriptionNetworkManagerConnectionsClientImpl.java @@ -145,7 +145,7 @@ Mono> listNext( } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -185,7 +185,7 @@ private Mono> createOrUpdateWithResponse } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -266,7 +266,7 @@ public Mono> getWithResponseAsync(String return Mono.error( new IllegalArgumentException("Parameter networkManagerConnectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -300,7 +300,7 @@ private Mono> getWithResponseAsync(Strin return Mono.error( new IllegalArgumentException("Parameter networkManagerConnectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), networkManagerConnectionName, @@ -374,7 +374,7 @@ public Mono> deleteWithResponseAsync(String networkManagerConnect return Mono.error( new IllegalArgumentException("Parameter networkManagerConnectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -406,7 +406,7 @@ private Mono> deleteWithResponseAsync(String networkManagerConnec return Mono.error( new IllegalArgumentException("Parameter networkManagerConnectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), networkManagerConnectionName, @@ -479,7 +479,7 @@ private Mono> listSinglePageAsync(I return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, @@ -515,7 +515,7 @@ private Mono> listSinglePageAsync(I return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/UsagesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/UsagesClientImpl.java index 2bffa551737e4..dc87e8a5735ba 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/UsagesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/UsagesClientImpl.java @@ -100,7 +100,7 @@ private Mono> listSinglePageAsync(String location) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), location, apiVersion, @@ -134,7 +134,7 @@ private Mono> listSinglePageAsync(String location, Con return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VipSwapsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VipSwapsClientImpl.java index 07c34b6fce8d0..655688cb464ba 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VipSwapsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VipSwapsClientImpl.java @@ -123,7 +123,7 @@ public Mono> getWithResponseAsync(String groupName, "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String singletonResource = "swap"; - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), groupName, resourceName, singletonResource, @@ -162,7 +162,7 @@ private Mono> getWithResponseAsync(String groupName, "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } final String singletonResource = "swap"; - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), groupName, resourceName, singletonResource, apiVersion, @@ -255,7 +255,7 @@ public Mono>> createWithResponseAsync(String groupName parameters.validate(); } final String singletonResource = "swap"; - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.create(this.client.getEndpoint(), groupName, resourceName, @@ -299,7 +299,7 @@ private Mono>> createWithResponseAsync(String groupNam parameters.validate(); } final String singletonResource = "swap"; - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.create(this.client.getEndpoint(), groupName, resourceName, singletonResource, apiVersion, @@ -484,7 +484,7 @@ public Mono> listWithResponseAsync(String return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), groupName, resourceName, apiVersion, @@ -522,7 +522,7 @@ private Mono> listWithResponseAsync(String return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), groupName, resourceName, apiVersion, diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualApplianceSitesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualApplianceSitesClientImpl.java index f62b1b88cb2da..6620ab16bea27 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualApplianceSitesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualApplianceSitesClientImpl.java @@ -154,7 +154,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, @@ -196,7 +196,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, networkVirtualApplianceName, siteName, @@ -381,7 +381,7 @@ public Mono> getWithResponseAsync(String res return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, @@ -424,7 +424,7 @@ private Mono> getWithResponseAsync(String re return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), resourceGroupName, networkVirtualApplianceName, siteName, @@ -523,7 +523,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -572,7 +572,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, networkVirtualApplianceName, @@ -704,7 +704,8 @@ public Mono createOrUpdateAsync(String resourceGroupN private Mono createOrUpdateAsync(String resourceGroupName, String networkVirtualApplianceName, String siteName, VirtualApplianceSiteInner parameters, Context context) { return beginCreateOrUpdateAsync(resourceGroupName, networkVirtualApplianceName, siteName, parameters, context) - .last().flatMap(this.client::getLroFinalResultOrError); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -775,7 +776,7 @@ private Mono> listSinglePageAsync(Strin return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, @@ -816,7 +817,7 @@ private Mono> listSinglePageAsync(Strin return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualApplianceSkusClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualApplianceSkusClientImpl.java index 40fc7dba46481..cb4c43b8ceb4c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualApplianceSkusClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualApplianceSkusClientImpl.java @@ -105,7 +105,7 @@ private Mono> listSinglePageAsync return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, @@ -135,7 +135,7 @@ private Mono> listSinglePageAsync return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, accept, context) @@ -223,7 +223,7 @@ public Mono> getWithResponseAsync(Stri if (skuName == null) { return Mono.error(new IllegalArgumentException("Parameter skuName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, @@ -255,7 +255,7 @@ private Mono> getWithResponseAsync(Str if (skuName == null) { return Mono.error(new IllegalArgumentException("Parameter skuName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, skuName, accept, diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubBgpConnectionsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubBgpConnectionsClientImpl.java index 82213358a21a1..8be90c8a4101a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubBgpConnectionsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubBgpConnectionsClientImpl.java @@ -175,7 +175,7 @@ public Mono> getWithResponseAsync(String resourceGr if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -216,7 +216,7 @@ private Mono> getWithResponseAsync(String resourceG if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -312,7 +312,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -359,7 +359,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -558,7 +558,7 @@ public Mono>> deleteWithResponseAsync(String resourceG if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -599,7 +599,7 @@ private Mono>> deleteWithResponseAsync(String resource if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -778,7 +778,7 @@ private Mono> listSinglePageAsync(String resou if (virtualHubName == null) { return Mono.error(new IllegalArgumentException("Parameter virtualHubName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -817,7 +817,7 @@ private Mono> listSinglePageAsync(String resou if (virtualHubName == null) { return Mono.error(new IllegalArgumentException("Parameter virtualHubName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -924,7 +924,7 @@ public Mono>> listLearnedRoutesWithResponseAsync(Strin return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listLearnedRoutes(this.client.getEndpoint(), resourceGroupName, hubName, @@ -966,7 +966,7 @@ private Mono>> listLearnedRoutesWithResponseAsync(Stri return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listLearnedRoutes(this.client.getEndpoint(), resourceGroupName, hubName, connectionName, @@ -1159,7 +1159,7 @@ public Mono>> listAdvertisedRoutesWithResponseAsync(St return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listAdvertisedRoutes(this.client.getEndpoint(), resourceGroupName, hubName, @@ -1201,7 +1201,7 @@ private Mono>> listAdvertisedRoutesWithResponseAsync(S return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.listAdvertisedRoutes(this.client.getEndpoint(), resourceGroupName, hubName, connectionName, diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubIpConfigurationsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubIpConfigurationsClientImpl.java index d0e2555396d3b..f9e5e39f4128d 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubIpConfigurationsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubIpConfigurationsClientImpl.java @@ -153,7 +153,7 @@ public Mono> getWithResponseAsync(String resou if (ipConfigName == null) { return Mono.error(new IllegalArgumentException("Parameter ipConfigName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -194,7 +194,7 @@ private Mono> getWithResponseAsync(String reso if (ipConfigName == null) { return Mono.error(new IllegalArgumentException("Parameter ipConfigName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -292,7 +292,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -340,7 +340,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -549,7 +549,7 @@ public Mono>> deleteWithResponseAsync(String resourceG if (ipConfigName == null) { return Mono.error(new IllegalArgumentException("Parameter ipConfigName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -590,7 +590,7 @@ private Mono>> deleteWithResponseAsync(String resource if (ipConfigName == null) { return Mono.error(new IllegalArgumentException("Parameter ipConfigName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -770,7 +770,7 @@ private Mono> listSinglePageAsync(String if (virtualHubName == null) { return Mono.error(new IllegalArgumentException("Parameter virtualHubName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -810,7 +810,7 @@ private Mono> listSinglePageAsync(String if (virtualHubName == null) { return Mono.error(new IllegalArgumentException("Parameter virtualHubName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubRouteTableV2SClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubRouteTableV2SClientImpl.java index 996f7d98687b6..92e0b1b875268 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubRouteTableV2SClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubRouteTableV2SClientImpl.java @@ -154,7 +154,7 @@ public Mono> getWithResponseAsync(String r if (routeTableName == null) { return Mono.error(new IllegalArgumentException("Parameter routeTableName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -195,7 +195,7 @@ private Mono> getWithResponseAsync(String if (routeTableName == null) { return Mono.error(new IllegalArgumentException("Parameter routeTableName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -293,7 +293,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { virtualHubRouteTableV2Parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -343,7 +343,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { virtualHubRouteTableV2Parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -414,8 +414,10 @@ private PollerFlux, VirtualHubRouteTable public SyncPoller, VirtualHubRouteTableV2Inner> beginCreateOrUpdate( String resourceGroupName, String virtualHubName, String routeTableName, VirtualHubRouteTableV2Inner virtualHubRouteTableV2Parameters) { - return this.beginCreateOrUpdateAsync(resourceGroupName, virtualHubName, routeTableName, - virtualHubRouteTableV2Parameters).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, virtualHubName, routeTableName, + virtualHubRouteTableV2Parameters) + .getSyncPoller(); } /** @@ -435,8 +437,10 @@ public SyncPoller, VirtualHubRouteTableV public SyncPoller, VirtualHubRouteTableV2Inner> beginCreateOrUpdate( String resourceGroupName, String virtualHubName, String routeTableName, VirtualHubRouteTableV2Inner virtualHubRouteTableV2Parameters, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, virtualHubName, routeTableName, - virtualHubRouteTableV2Parameters, context).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, virtualHubName, routeTableName, + virtualHubRouteTableV2Parameters, context) + .getSyncPoller(); } /** @@ -549,7 +553,7 @@ public Mono>> deleteWithResponseAsync(String resourceG if (routeTableName == null) { return Mono.error(new IllegalArgumentException("Parameter routeTableName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -590,7 +594,7 @@ private Mono>> deleteWithResponseAsync(String resource if (routeTableName == null) { return Mono.error(new IllegalArgumentException("Parameter routeTableName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -770,7 +774,7 @@ private Mono> listSinglePageAsync(Str if (virtualHubName == null) { return Mono.error(new IllegalArgumentException("Parameter virtualHubName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -810,7 +814,7 @@ private Mono> listSinglePageAsync(Str if (virtualHubName == null) { return Mono.error(new IllegalArgumentException("Parameter virtualHubName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubsClientImpl.java index 814cf8fb49fcf..502dad902fa84 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualHubsClientImpl.java @@ -76,8 +76,8 @@ public final class VirtualHubsClientImpl implements InnerSupportsGet> getByResourceGroupWithResponseAsync(Strin if (virtualHubName == null) { return Mono.error(new IllegalArgumentException("Parameter virtualHubName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), @@ -255,7 +255,7 @@ private Mono> getByResourceGroupWithResponseAsync(Stri if (virtualHubName == null) { return Mono.error(new IllegalArgumentException("Parameter virtualHubName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -345,7 +345,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { virtualHubParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -389,7 +389,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { virtualHubParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -581,7 +581,7 @@ public Mono> updateTagsWithResponseAsync(String resour } else { virtualHubParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -625,7 +625,7 @@ private Mono> updateTagsWithResponseAsync(String resou } else { virtualHubParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -712,7 +712,7 @@ public Mono>> deleteWithResponseAsync(String resourceG if (virtualHubName == null) { return Mono.error(new IllegalArgumentException("Parameter virtualHubName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -749,7 +749,7 @@ private Mono>> deleteWithResponseAsync(String resource if (virtualHubName == null) { return Mono.error(new IllegalArgumentException("Parameter virtualHubName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -911,7 +911,7 @@ private Mono> listByResourceGroupSinglePageAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), @@ -947,7 +947,7 @@ private Mono> listByResourceGroupSinglePageAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1035,7 +1035,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, @@ -1065,7 +1065,7 @@ private Mono> listSinglePageAsync(Context context return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, accept, context) @@ -1159,7 +1159,7 @@ public Mono>> getEffectiveVirtualHubRoutesWithResponse if (effectiveRoutesParameters != null) { effectiveRoutesParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getEffectiveVirtualHubRoutes(this.client.getEndpoint(), @@ -1202,7 +1202,7 @@ private Mono>> getEffectiveVirtualHubRoutesWithRespons if (effectiveRoutesParameters != null) { effectiveRoutesParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getEffectiveVirtualHubRoutes(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -1315,8 +1315,10 @@ private Mono>> getEffectiveVirtualHubRoutesWithRespons public SyncPoller, VirtualHubEffectiveRouteListInner> beginGetEffectiveVirtualHubRoutes(String resourceGroupName, String virtualHubName, EffectiveRoutesParameters effectiveRoutesParameters, Context context) { - return this.beginGetEffectiveVirtualHubRoutesAsync(resourceGroupName, virtualHubName, effectiveRoutesParameters, - context).getSyncPoller(); + return this + .beginGetEffectiveVirtualHubRoutesAsync(resourceGroupName, virtualHubName, effectiveRoutesParameters, + context) + .getSyncPoller(); } /** @@ -1335,7 +1337,8 @@ private Mono>> getEffectiveVirtualHubRoutesWithRespons public Mono getEffectiveVirtualHubRoutesAsync(String resourceGroupName, String virtualHubName, EffectiveRoutesParameters effectiveRoutesParameters) { return beginGetEffectiveVirtualHubRoutesAsync(resourceGroupName, virtualHubName, effectiveRoutesParameters) - .last().flatMap(this.client::getLroFinalResultOrError); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -1354,7 +1357,8 @@ public Mono getEffectiveVirtualHubRoutesAsync String virtualHubName) { final EffectiveRoutesParameters effectiveRoutesParameters = null; return beginGetEffectiveVirtualHubRoutesAsync(resourceGroupName, virtualHubName, effectiveRoutesParameters) - .last().flatMap(this.client::getLroFinalResultOrError); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -1449,7 +1453,7 @@ public Mono>> getInboundRoutesWithResponseAsync(String } else { getInboundRoutesParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getInboundRoutes(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -1494,7 +1498,7 @@ private Mono>> getInboundRoutesWithResponseAsync(Strin } else { getInboundRoutesParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getInboundRoutes(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -1700,7 +1704,7 @@ public Mono>> getOutboundRoutesWithResponseAsync(Strin } else { getOutboundRoutesParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1746,7 +1750,7 @@ private Mono>> getOutboundRoutesWithResponseAsync(Stri } else { getOutboundRoutesParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getOutboundRoutes(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -1878,7 +1882,8 @@ public Mono getOutboundRoutesAsync(String resou private Mono getOutboundRoutesAsync(String resourceGroupName, String virtualHubName, GetOutboundRoutesParameters getOutboundRoutesParameters, Context context) { return beginGetOutboundRoutesAsync(resourceGroupName, virtualHubName, getOutboundRoutesParameters, context) - .last().flatMap(this.client::getLroFinalResultOrError); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkGatewayConnectionsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkGatewayConnectionsClientImpl.java index 2e8b8392ddd87..a430b0eb9a121 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkGatewayConnectionsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkGatewayConnectionsClientImpl.java @@ -76,8 +76,8 @@ public final class VirtualNetworkGatewayConnectionsClientImpl } /** - * The interface defining all the services for NetworkManagementClientVirtualNetworkGatewayConnections to be used - * by the proxy service to perform REST calls. + * The interface defining all the services for NetworkManagementClientVirtualNetworkGatewayConnections to be used by + * the proxy service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "NetworkManagementCli") @@ -252,7 +252,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -298,7 +298,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayConnectionName, @@ -425,7 +425,8 @@ public Mono createOrUpdateAsync(String res private Mono createOrUpdateAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, VirtualNetworkGatewayConnectionInner parameters, Context context) { return beginCreateOrUpdateAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters, context) - .last().flatMap(this.client::getLroFinalResultOrError); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -493,7 +494,7 @@ public VirtualNetworkGatewayConnectionInner createOrUpdate(String resourceGroupN return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -532,7 +533,7 @@ private Mono> getByResourceGroupW return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -621,7 +622,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, @@ -659,7 +660,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayConnectionName, @@ -838,7 +839,7 @@ public Mono>> updateTagsWithResponseAsync(String resou } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, @@ -884,7 +885,7 @@ private Mono>> updateTagsWithResponseAsync(String reso } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayConnectionName, @@ -1085,7 +1086,7 @@ public Mono>> setSharedKeyWithResponseAsync(String res } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.setSharedKey(this.client.getEndpoint(), resourceGroupName, @@ -1133,7 +1134,7 @@ private Mono>> setSharedKeyWithResponseAsync(String re } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.setSharedKey(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayConnectionName, @@ -1268,7 +1269,8 @@ public Mono setSharedKeyAsync(String resourceGroupName private Mono setSharedKeyAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, ConnectionSharedKeyInner parameters, Context context) { return beginSetSharedKeyAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters, context) - .last().flatMap(this.client::getLroFinalResultOrError); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -1341,7 +1343,7 @@ public Mono> getSharedKeyWithResponseAsync(St return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getSharedKey(this.client.getEndpoint(), resourceGroupName, @@ -1381,7 +1383,7 @@ private Mono> getSharedKeyWithResponseAsync(S return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getSharedKey(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayConnectionName, @@ -1467,7 +1469,7 @@ public ConnectionSharedKeyInner getSharedKey(String resourceGroupName, String vi return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -1504,7 +1506,7 @@ public ConnectionSharedKeyInner getSharedKey(String resourceGroupName, String vi return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1623,7 +1625,7 @@ public Mono>> resetSharedKeyWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.resetSharedKey(this.client.getEndpoint(), resourceGroupName, @@ -1672,7 +1674,7 @@ private Mono>> resetSharedKeyWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.resetSharedKey(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayConnectionName, @@ -1817,7 +1819,8 @@ public Mono resetSharedKeyAsync(String resourceGr private Mono resetSharedKeyAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, ConnectionResetSharedKeyInner parameters, Context context) { return beginResetSharedKeyAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters, context) - .last().flatMap(this.client::getLroFinalResultOrError); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -1895,7 +1898,7 @@ public Mono>> startPacketCaptureWithResponseAsync(Stri if (parameters != null) { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.startPacketCapture(this.client.getEndpoint(), resourceGroupName, @@ -1939,7 +1942,7 @@ private Mono>> startPacketCaptureWithResponseAsync(Str if (parameters != null) { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.startPacketCapture(this.client.getEndpoint(), resourceGroupName, @@ -2103,7 +2106,8 @@ public Mono startPacketCaptureAsync(String resourceGroupName, String vir private Mono startPacketCaptureAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, VpnPacketCaptureStartParameters parameters, Context context) { return beginStartPacketCaptureAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters, context) - .last().flatMap(this.client::getLroFinalResultOrError); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -2178,7 +2182,7 @@ public Mono>> stopPacketCaptureWithResponseAsync(Strin } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.stopPacketCapture(this.client.getEndpoint(), resourceGroupName, @@ -2224,7 +2228,7 @@ private Mono>> stopPacketCaptureWithResponseAsync(Stri } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.stopPacketCapture(this.client.getEndpoint(), resourceGroupName, @@ -2352,7 +2356,8 @@ public Mono stopPacketCaptureAsync(String resourceGroupName, String virt private Mono stopPacketCaptureAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, VpnPacketCaptureStopParameters parameters, Context context) { return beginStopPacketCaptureAsync(resourceGroupName, virtualNetworkGatewayConnectionName, parameters, context) - .last().flatMap(this.client::getLroFinalResultOrError); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -2422,7 +2427,7 @@ public Mono>> getIkeSasWithResponseAsync(String resour return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getIkeSas(this.client.getEndpoint(), resourceGroupName, @@ -2460,7 +2465,7 @@ private Mono>> getIkeSasWithResponseAsync(String resou return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getIkeSas(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayConnectionName, @@ -2635,7 +2640,7 @@ public Mono>> resetConnectionWithResponseAsync(String return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.resetConnection(this.client.getEndpoint(), resourceGroupName, @@ -2673,7 +2678,7 @@ private Mono>> resetConnectionWithResponseAsync(String return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.resetConnection(this.client.getEndpoint(), resourceGroupName, diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkGatewayNatRulesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkGatewayNatRulesClientImpl.java index c53a3a3b3f381..6bba1a5a72f98 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkGatewayNatRulesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkGatewayNatRulesClientImpl.java @@ -157,7 +157,7 @@ public Mono> getWithResponseAsync(St if (natRuleName == null) { return Mono.error(new IllegalArgumentException("Parameter natRuleName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -200,7 +200,7 @@ private Mono> getWithResponseAsync(S if (natRuleName == null) { return Mono.error(new IllegalArgumentException("Parameter natRuleName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -301,7 +301,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { natRuleParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -353,7 +353,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { natRuleParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -446,8 +446,10 @@ private Mono>> createOrUpdateWithResponseAsync(String public SyncPoller, VirtualNetworkGatewayNatRuleInner> beginCreateOrUpdate(String resourceGroupName, String virtualNetworkGatewayName, String natRuleName, VirtualNetworkGatewayNatRuleInner natRuleParameters, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, virtualNetworkGatewayName, natRuleName, - natRuleParameters, context).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, virtualNetworkGatewayName, natRuleName, natRuleParameters, + context) + .getSyncPoller(); } /** @@ -466,7 +468,8 @@ private Mono>> createOrUpdateWithResponseAsync(String public Mono createOrUpdateAsync(String resourceGroupName, String virtualNetworkGatewayName, String natRuleName, VirtualNetworkGatewayNatRuleInner natRuleParameters) { return beginCreateOrUpdateAsync(resourceGroupName, virtualNetworkGatewayName, natRuleName, natRuleParameters) - .last().flatMap(this.client::getLroFinalResultOrError); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -562,7 +565,7 @@ public Mono>> deleteWithResponseAsync(String resourceG if (natRuleName == null) { return Mono.error(new IllegalArgumentException("Parameter natRuleName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -604,7 +607,7 @@ private Mono>> deleteWithResponseAsync(String resource if (natRuleName == null) { return Mono.error(new IllegalArgumentException("Parameter natRuleName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -787,7 +790,7 @@ public void delete(String resourceGroupName, String virtualNetworkGatewayName, S return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil.withContext(context -> service.listByVirtualNetworkGateway(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, virtualNetworkGatewayName, apiVersion, accept, context)) @@ -827,7 +830,7 @@ private Mono> listByVirtualNetw return Mono.error( new IllegalArgumentException("Parameter virtualNetworkGatewayName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkGatewaysClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkGatewaysClientImpl.java index cab1aa3001342..b998db72bdda1 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkGatewaysClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkGatewaysClientImpl.java @@ -82,8 +82,8 @@ public final class VirtualNetworkGatewaysClientImpl } /** - * The interface defining all the services for NetworkManagementClientVirtualNetworkGateways to be used by the - * proxy service to perform REST calls. + * The interface defining all the services for NetworkManagementClientVirtualNetworkGateways to be used by the proxy + * service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "NetworkManagementCli") @@ -369,7 +369,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -414,7 +414,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayName, @@ -604,7 +604,7 @@ public Mono> getByResourceGroupWithResponse return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -643,7 +643,7 @@ private Mono> getByResourceGroupWithRespons return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayName, @@ -728,7 +728,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, @@ -766,7 +766,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayName, apiVersion, @@ -942,7 +942,7 @@ public Mono>> updateTagsWithResponseAsync(String resou } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, @@ -987,7 +987,7 @@ private Mono>> updateTagsWithResponseAsync(String reso } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayName, apiVersion, @@ -1170,7 +1170,7 @@ public VirtualNetworkGatewayInner updateTags(String resourceGroupName, String vi return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -1206,7 +1206,7 @@ private Mono> listByResourceGroupSingl return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1306,7 +1306,7 @@ public PagedIterable listByResourceGroup(String reso return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listConnections(this.client.getEndpoint(), resourceGroupName, @@ -1348,7 +1348,7 @@ public PagedIterable listByResourceGroup(String reso return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1459,7 +1459,7 @@ public Mono>> resetWithResponseAsync(String resourceGr return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.reset(this.client.getEndpoint(), resourceGroupName, @@ -1500,7 +1500,7 @@ private Mono>> resetWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.reset(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayName, gatewayVip, @@ -1729,7 +1729,7 @@ public Mono>> resetVpnClientSharedKeyWithResponseAsync return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.resetVpnClientSharedKey(this.client.getEndpoint(), resourceGroupName, @@ -1767,7 +1767,7 @@ private Mono>> resetVpnClientSharedKeyWithResponseAsyn return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.resetVpnClientSharedKey(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayName, @@ -1946,7 +1946,7 @@ public Mono>> generatevpnclientpackageWithResponseAsyn } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.generatevpnclientpackage(this.client.getEndpoint(), resourceGroupName, @@ -1990,7 +1990,7 @@ private Mono>> generatevpnclientpackageWithResponseAsy } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.generatevpnclientpackage(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayName, @@ -2111,7 +2111,8 @@ public Mono generatevpnclientpackageAsync(String resourceGroupName, Stri private Mono generatevpnclientpackageAsync(String resourceGroupName, String virtualNetworkGatewayName, VpnClientParameters parameters, Context context) { return beginGeneratevpnclientpackageAsync(resourceGroupName, virtualNetworkGatewayName, parameters, context) - .last().flatMap(this.client::getLroFinalResultOrError); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -2185,7 +2186,7 @@ public Mono>> generateVpnProfileWithResponseAsync(Stri } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.generateVpnProfile(this.client.getEndpoint(), resourceGroupName, @@ -2230,7 +2231,7 @@ private Mono>> generateVpnProfileWithResponseAsync(Str } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.generateVpnProfile(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayName, @@ -2427,7 +2428,7 @@ public Mono>> getVpnProfilePackageUrlWithResponseAsync return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getVpnProfilePackageUrl(this.client.getEndpoint(), resourceGroupName, @@ -2467,7 +2468,7 @@ private Mono>> getVpnProfilePackageUrlWithResponseAsyn return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getVpnProfilePackageUrl(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayName, @@ -2658,7 +2659,7 @@ public Mono>> getBgpPeerStatusWithResponseAsync(String return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getBgpPeerStatus(this.client.getEndpoint(), resourceGroupName, @@ -2698,7 +2699,7 @@ private Mono>> getBgpPeerStatusWithResponseAsync(Strin return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getBgpPeerStatus(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayName, peer, @@ -2926,7 +2927,7 @@ public Mono> supportedVpnDevicesWithResponseAsync(String resour return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.supportedVpnDevices(this.client.getEndpoint(), resourceGroupName, @@ -2965,7 +2966,7 @@ private Mono> supportedVpnDevicesWithResponseAsync(String resou return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.supportedVpnDevices(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayName, @@ -3051,7 +3052,7 @@ public Mono>> getLearnedRoutesWithResponseAsync(String return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getLearnedRoutes(this.client.getEndpoint(), resourceGroupName, @@ -3091,7 +3092,7 @@ private Mono>> getLearnedRoutesWithResponseAsync(Strin return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getLearnedRoutes(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayName, @@ -3282,7 +3283,7 @@ public Mono>> getAdvertisedRoutesWithResponseAsync(Str return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getAdvertisedRoutes(this.client.getEndpoint(), resourceGroupName, @@ -3325,7 +3326,7 @@ private Mono>> getAdvertisedRoutesWithResponseAsync(St return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getAdvertisedRoutes(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayName, @@ -3524,7 +3525,7 @@ public Mono>> setVpnclientIpsecParametersWithResponseA } else { vpnclientIpsecParams.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.setVpnclientIpsecParameters(this.client.getEndpoint(), resourceGroupName, @@ -3573,7 +3574,7 @@ private Mono>> setVpnclientIpsecParametersWithResponse } else { vpnclientIpsecParams.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.setVpnclientIpsecParameters(this.client.getEndpoint(), resourceGroupName, @@ -3671,8 +3672,10 @@ private Mono>> setVpnclientIpsecParametersWithResponse public SyncPoller, VpnClientIPsecParametersInner> beginSetVpnclientIpsecParameters(String resourceGroupName, String virtualNetworkGatewayName, VpnClientIPsecParametersInner vpnclientIpsecParams, Context context) { - return this.beginSetVpnclientIpsecParametersAsync(resourceGroupName, virtualNetworkGatewayName, - vpnclientIpsecParams, context).getSyncPoller(); + return this + .beginSetVpnclientIpsecParametersAsync(resourceGroupName, virtualNetworkGatewayName, vpnclientIpsecParams, + context) + .getSyncPoller(); } /** @@ -3693,7 +3696,8 @@ private Mono>> setVpnclientIpsecParametersWithResponse public Mono setVpnclientIpsecParametersAsync(String resourceGroupName, String virtualNetworkGatewayName, VpnClientIPsecParametersInner vpnclientIpsecParams) { return beginSetVpnclientIpsecParametersAsync(resourceGroupName, virtualNetworkGatewayName, vpnclientIpsecParams) - .last().flatMap(this.client::getLroFinalResultOrError); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -3790,7 +3794,7 @@ public Mono>> getVpnclientIpsecParametersWithResponseA return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getVpnclientIpsecParameters(this.client.getEndpoint(), resourceGroupName, @@ -3830,7 +3834,7 @@ private Mono>> getVpnclientIpsecParametersWithResponse return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getVpnclientIpsecParameters(this.client.getEndpoint(), resourceGroupName, @@ -4029,7 +4033,7 @@ public Mono> vpnDeviceConfigurationScriptWithResponseAsync(Stri } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.vpnDeviceConfigurationScript(this.client.getEndpoint(), resourceGroupName, @@ -4076,7 +4080,7 @@ private Mono> vpnDeviceConfigurationScriptWithResponseAsync(Str } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.vpnDeviceConfigurationScript(this.client.getEndpoint(), resourceGroupName, @@ -4175,7 +4179,7 @@ public Mono>> startPacketCaptureWithResponseAsync(Stri if (parameters != null) { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.startPacketCapture(this.client.getEndpoint(), resourceGroupName, @@ -4217,7 +4221,7 @@ private Mono>> startPacketCaptureWithResponseAsync(Str if (parameters != null) { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.startPacketCapture(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayName, @@ -4446,7 +4450,7 @@ public Mono>> stopPacketCaptureWithResponseAsync(Strin } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.stopPacketCapture(this.client.getEndpoint(), resourceGroupName, @@ -4490,7 +4494,7 @@ private Mono>> stopPacketCaptureWithResponseAsync(Stri } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.stopPacketCapture(this.client.getEndpoint(), resourceGroupName, virtualNetworkGatewayName, @@ -4679,7 +4683,7 @@ public Mono>> getVpnclientConnectionHealthWithResponse return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getVpnclientConnectionHealth(this.client.getEndpoint(), resourceGroupName, @@ -4719,7 +4723,7 @@ private Mono>> getVpnclientConnectionHealthWithRespons return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getVpnclientConnectionHealth(this.client.getEndpoint(), resourceGroupName, @@ -4929,7 +4933,7 @@ public Mono>> disconnectVirtualNetworkGatewayVpnConnec } else { request.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.disconnectVirtualNetworkGatewayVpnConnections(this.client.getEndpoint(), @@ -4974,7 +4978,7 @@ private Mono>> disconnectVirtualNetworkGatewayVpnConne } else { request.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.disconnectVirtualNetworkGatewayVpnConnections(this.client.getEndpoint(), @@ -5038,8 +5042,10 @@ private PollerFlux, Void> beginDisconnectVirtualNetworkGatewayV @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDisconnectVirtualNetworkGatewayVpnConnections( String resourceGroupName, String virtualNetworkGatewayName, P2SVpnConnectionRequest request) { - return this.beginDisconnectVirtualNetworkGatewayVpnConnectionsAsync(resourceGroupName, - virtualNetworkGatewayName, request).getSyncPoller(); + return this + .beginDisconnectVirtualNetworkGatewayVpnConnectionsAsync(resourceGroupName, virtualNetworkGatewayName, + request) + .getSyncPoller(); } /** @@ -5057,8 +5063,10 @@ public SyncPoller, Void> beginDisconnectVirtualNetworkGatewayVp @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDisconnectVirtualNetworkGatewayVpnConnections( String resourceGroupName, String virtualNetworkGatewayName, P2SVpnConnectionRequest request, Context context) { - return this.beginDisconnectVirtualNetworkGatewayVpnConnectionsAsync(resourceGroupName, - virtualNetworkGatewayName, request, context).getSyncPoller(); + return this + .beginDisconnectVirtualNetworkGatewayVpnConnectionsAsync(resourceGroupName, virtualNetworkGatewayName, + request, context) + .getSyncPoller(); } /** diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkPeeringsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkPeeringsClientImpl.java index bc4db184cf4d7..b99bd8b04e3de 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkPeeringsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkPeeringsClientImpl.java @@ -65,8 +65,8 @@ 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. + * The interface defining all the services for NetworkManagementClientVirtualNetworkPeerings to be used by the proxy + * service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "NetworkManagementCli") @@ -158,7 +158,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, @@ -201,7 +201,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, @@ -390,7 +390,7 @@ public Mono> getWithResponseAsync(String re return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, @@ -434,7 +434,7 @@ private Mono> getWithResponseAsync(String r return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, virtualNetworkPeeringName, @@ -541,7 +541,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { virtualNetworkPeeringParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -598,7 +598,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { virtualNetworkPeeringParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, @@ -703,8 +703,10 @@ public SyncPoller, VirtualNetworkPeeringI String resourceGroupName, String virtualNetworkName, String virtualNetworkPeeringName, VirtualNetworkPeeringInner virtualNetworkPeeringParameters) { final SyncRemoteAddressSpace syncRemoteAddressSpace = null; - return this.beginCreateOrUpdateAsync(resourceGroupName, virtualNetworkName, virtualNetworkPeeringName, - virtualNetworkPeeringParameters, syncRemoteAddressSpace).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, virtualNetworkName, virtualNetworkPeeringName, + virtualNetworkPeeringParameters, syncRemoteAddressSpace) + .getSyncPoller(); } /** @@ -728,8 +730,10 @@ public SyncPoller, VirtualNetworkPeeringI String resourceGroupName, String virtualNetworkName, String virtualNetworkPeeringName, VirtualNetworkPeeringInner virtualNetworkPeeringParameters, SyncRemoteAddressSpace syncRemoteAddressSpace, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, virtualNetworkName, virtualNetworkPeeringName, - virtualNetworkPeeringParameters, syncRemoteAddressSpace, context).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, virtualNetworkName, virtualNetworkPeeringName, + virtualNetworkPeeringParameters, syncRemoteAddressSpace, context) + .getSyncPoller(); } /** @@ -878,7 +882,7 @@ private Mono> listSinglePageAsync(Stri return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, @@ -919,7 +923,7 @@ private Mono> listSinglePageAsync(Stri return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkTapsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkTapsClientImpl.java index c2f0117f8f299..384358ab339f6 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkTapsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworkTapsClientImpl.java @@ -174,7 +174,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, tapName, apiVersion, @@ -211,7 +211,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, tapName, apiVersion, @@ -376,7 +376,7 @@ public Mono> getByResourceGroupWithResponseAsyn return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, tapName, @@ -414,7 +414,7 @@ private Mono> getByResourceGroupWithResponseAsy return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, tapName, apiVersion, @@ -503,7 +503,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, tapName, @@ -546,7 +546,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, tapName, apiVersion, @@ -736,7 +736,7 @@ public Mono> updateTagsWithResponseAsync(String } else { tapParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, tapName, @@ -779,7 +779,7 @@ private Mono> updateTagsWithResponseAsync(Strin } else { tapParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), resourceGroupName, tapName, apiVersion, @@ -856,7 +856,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -886,7 +886,7 @@ private Mono> listSinglePageAsync(Context return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) @@ -971,7 +971,7 @@ private Mono> listByResourceGroupSinglePag return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -1007,7 +1007,7 @@ private Mono> listByResourceGroupSinglePag return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworksClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworksClientImpl.java index 7057c57971e13..dfb95501886cc 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworksClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualNetworksClientImpl.java @@ -229,7 +229,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, @@ -267,7 +267,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, apiVersion, @@ -436,7 +436,7 @@ public Mono> getByResourceGroupWithResponseAsync(S return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -476,7 +476,7 @@ private Mono> getByResourceGroupWithResponseAsync( return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, apiVersion, @@ -569,7 +569,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -613,7 +613,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, apiVersion, @@ -805,7 +805,7 @@ public Mono> updateTagsWithResponseAsync(String re } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, @@ -849,7 +849,7 @@ private Mono> updateTagsWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, apiVersion, @@ -926,7 +926,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -956,7 +956,7 @@ private Mono> listSinglePageAsync(Context con return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) @@ -1041,7 +1041,7 @@ private Mono> listByResourceGroupSinglePageAs return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -1077,7 +1077,7 @@ private Mono> listByResourceGroupSinglePageAs return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1181,7 +1181,7 @@ public Mono> checkIpAddressAvailabili return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.checkIpAddressAvailability(this.client.getEndpoint(), resourceGroupName, @@ -1224,7 +1224,7 @@ private Mono> checkIpAddressAvailabil return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.checkIpAddressAvailability(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, @@ -1316,7 +1316,7 @@ private Mono> listUsageSinglePageAsync(S return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listUsage(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, @@ -1357,7 +1357,7 @@ private Mono> listUsageSinglePageAsync(S return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1467,21 +1467,24 @@ private Mono> listDdosPro return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-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).cache(); + Mono>> mono = service + .listDdosProtectionStatus(this.client.getEndpoint(), resourceGroupName, virtualNetworkName, top, + skipToken, apiVersion, this.client.getSubscriptionId(), accept, context) + .cache(); return Mono.zip(mono, this.client .getLroResult( mono, this.client.getHttpPipeline(), VirtualNetworkDdosProtectionStatusResult.class, VirtualNetworkDdosProtectionStatusResult.class, this.client.getContext()) - .last().flatMap(this.client::getLroFinalResultOrError)); - }).>map( - res -> new PagedResponseBase<>(res.getT1().getRequest(), res.getT1().getStatusCode(), - res.getT1().getHeaders(), res.getT2().value(), res.getT2().nextLink(), null)) + .last() + .flatMap(this.client::getLroFinalResultOrError)); + }) + .>map( + res -> new PagedResponseBase<>(res.getT1().getRequest(), res.getT1().getStatusCode(), + res.getT1().getHeaders(), res.getT2().value(), res.getT2().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1518,19 +1521,21 @@ private Mono> listDdosPro return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-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(), resourceGroupName, virtualNetworkName, top, skipToken, + apiVersion, this.client.getSubscriptionId(), accept, context) + .cache(); return Mono .zip(mono, this.client .getLroResult( mono, this.client.getHttpPipeline(), VirtualNetworkDdosProtectionStatusResult.class, VirtualNetworkDdosProtectionStatusResult.class, context) - .last().flatMap(this.client::getLroFinalResultOrError)) + .last() + .flatMap(this.client::getLroFinalResultOrError)) .map(res -> new PagedResponseBase<>(res.getT1().getRequest(), res.getT1().getStatusCode(), res.getT1().getHeaders(), res.getT2().value(), res.getT2().nextLink(), null)); } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualRouterPeeringsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualRouterPeeringsClientImpl.java index cf24be0bce872..e25990973322c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualRouterPeeringsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualRouterPeeringsClientImpl.java @@ -152,7 +152,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, virtualRouterName, @@ -194,7 +194,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, virtualRouterName, peeringName, apiVersion, @@ -379,7 +379,7 @@ public Mono> getWithResponseAsync(String res return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), resourceGroupName, virtualRouterName, @@ -422,7 +422,7 @@ private Mono> getWithResponseAsync(String re return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), resourceGroupName, virtualRouterName, peeringName, apiVersion, @@ -520,7 +520,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -569,7 +569,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, virtualRouterName, peeringName, @@ -768,7 +768,7 @@ private Mono> listSinglePageAsync(Strin return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), resourceGroupName, virtualRouterName, @@ -809,7 +809,7 @@ private Mono> listSinglePageAsync(Strin return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualRoutersClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualRoutersClientImpl.java index 43319841709ef..192730c2161f2 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualRoutersClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualRoutersClientImpl.java @@ -68,8 +68,8 @@ public final class VirtualRoutersClientImpl implements InnerSupportsGet>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, virtualRouterName, @@ -203,7 +203,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, virtualRouterName, apiVersion, @@ -371,7 +371,7 @@ public Mono> getByResourceGroupWithResponseAsync(St return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -410,7 +410,7 @@ private Mono> getByResourceGroupWithResponseAsync(S return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, virtualRouterName, apiVersion, @@ -503,7 +503,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, @@ -547,7 +547,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, virtualRouterName, apiVersion, @@ -727,7 +727,7 @@ private Mono> listByResourceGroupSinglePageAsy return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -763,7 +763,7 @@ private Mono> listByResourceGroupSinglePageAsy return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -851,7 +851,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -881,7 +881,7 @@ private Mono> listSinglePageAsync(Context cont return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualWansClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualWansClientImpl.java index 186774e07452a..8e69ac3cdb70e 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualWansClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VirtualWansClientImpl.java @@ -70,8 +70,8 @@ public final class VirtualWansClientImpl implements InnerSupportsGet> getByResourceGroupWithResponseAsync(Strin return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -215,7 +215,7 @@ private Mono> getByResourceGroupWithResponseAsync(Stri return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, virtualWanName, apiVersion, @@ -304,7 +304,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { wanParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -347,7 +347,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { wanParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -537,7 +537,7 @@ public Mono> updateTagsWithResponseAsync(String resour } else { wanParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -580,7 +580,7 @@ private Mono> updateTagsWithResponseAsync(String resou } else { wanParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -666,7 +666,7 @@ public Mono>> deleteWithResponseAsync(String resourceG if (virtualWanName == null) { return Mono.error(new IllegalArgumentException("Parameter virtualWanName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -703,7 +703,7 @@ private Mono>> deleteWithResponseAsync(String resource if (virtualWanName == null) { return Mono.error(new IllegalArgumentException("Parameter virtualWanName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -865,7 +865,7 @@ private Mono> listByResourceGroupSinglePageAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), @@ -901,7 +901,7 @@ private Mono> listByResourceGroupSinglePageAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -989,7 +989,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, @@ -1019,7 +1019,7 @@ private Mono> listSinglePageAsync(Context context return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, accept, context) diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnConnectionsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnConnectionsClientImpl.java index 1072a7980ac7d..48c62b98b5c35 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnConnectionsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnConnectionsClientImpl.java @@ -67,8 +67,8 @@ 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. + * The interface defining all the services for NetworkManagementClientVpnConnections to be used by the proxy service + * to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "NetworkManagementCli") @@ -176,7 +176,7 @@ public Mono> getWithResponseAsync(String resourceGr if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -217,7 +217,7 @@ private Mono> getWithResponseAsync(String resourceG if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, gatewayName, @@ -314,7 +314,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { vpnConnectionParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -362,7 +362,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { vpnConnectionParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -564,7 +564,7 @@ public Mono>> deleteWithResponseAsync(String resourceG if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -605,7 +605,7 @@ private Mono>> deleteWithResponseAsync(String resource if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -793,7 +793,7 @@ public Mono>> startPacketCaptureWithResponseAsync(Stri if (parameters != null) { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -842,7 +842,7 @@ private Mono>> startPacketCaptureWithResponseAsync(Str if (parameters != null) { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.startPacketCapture(this.client.getEndpoint(), resourceGroupName, gatewayName, vpnConnectionName, @@ -1014,7 +1014,8 @@ public Mono startPacketCaptureAsync(String resourceGroupName, String gat private Mono startPacketCaptureAsync(String resourceGroupName, String gatewayName, String vpnConnectionName, VpnConnectionPacketCaptureStartParameters parameters, Context context) { return beginStartPacketCaptureAsync(resourceGroupName, gatewayName, vpnConnectionName, parameters, context) - .last().flatMap(this.client::getLroFinalResultOrError); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -1091,7 +1092,7 @@ public Mono>> stopPacketCaptureWithResponseAsync(Strin if (parameters != null) { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.stopPacketCapture(this.client.getEndpoint(), resourceGroupName, gatewayName, @@ -1138,7 +1139,7 @@ private Mono>> stopPacketCaptureWithResponseAsync(Stri if (parameters != null) { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.stopPacketCapture(this.client.getEndpoint(), resourceGroupName, gatewayName, vpnConnectionName, @@ -1304,7 +1305,8 @@ public Mono stopPacketCaptureAsync(String resourceGroupName, String gate private Mono stopPacketCaptureAsync(String resourceGroupName, String gatewayName, String vpnConnectionName, VpnConnectionPacketCaptureStopParameters parameters, Context context) { return beginStopPacketCaptureAsync(resourceGroupName, gatewayName, vpnConnectionName, parameters, context) - .last().flatMap(this.client::getLroFinalResultOrError); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -1372,7 +1374,7 @@ private Mono> listByVpnGatewaySinglePageAsync( if (gatewayName == null) { return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByVpnGateway(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -1412,7 +1414,7 @@ private Mono> listByVpnGatewaySinglePageAsync( if (gatewayName == null) { return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnGatewaysClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnGatewaysClientImpl.java index 2e5a25c447d77..e63ac6c683a1f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnGatewaysClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnGatewaysClientImpl.java @@ -73,8 +73,8 @@ public final class VpnGatewaysClientImpl implements InnerSupportsGet> getByResourceGroupWithResponseAsync(Strin if (gatewayName == null) { return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), @@ -246,7 +246,7 @@ private Mono> getByResourceGroupWithResponseAsync(Stri if (gatewayName == null) { return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -336,7 +336,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { vpnGatewayParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -380,7 +380,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { vpnGatewayParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -572,7 +572,7 @@ public Mono>> updateTagsWithResponseAsync(String resou } else { vpnGatewayParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -616,7 +616,7 @@ private Mono>> updateTagsWithResponseAsync(String reso } else { vpnGatewayParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -798,7 +798,7 @@ public Mono>> deleteWithResponseAsync(String resourceG if (gatewayName == null) { return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -835,7 +835,7 @@ private Mono>> deleteWithResponseAsync(String resource if (gatewayName == null) { return Mono.error(new IllegalArgumentException("Parameter gatewayName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -1001,7 +1001,7 @@ public Mono>> resetWithResponseAsync(String resourceGr return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.reset(this.client.getEndpoint(), resourceGroupName, gatewayName, @@ -1039,7 +1039,7 @@ private Mono>> resetWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.reset(this.client.getEndpoint(), resourceGroupName, gatewayName, ipConfigurationId, apiVersion, @@ -1262,7 +1262,7 @@ public Mono>> startPacketCaptureWithResponseAsync(Stri if (parameters != null) { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.startPacketCapture(this.client.getEndpoint(), resourceGroupName, @@ -1303,7 +1303,7 @@ private Mono>> startPacketCaptureWithResponseAsync(Str if (parameters != null) { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.startPacketCapture(this.client.getEndpoint(), resourceGroupName, gatewayName, apiVersion, @@ -1527,7 +1527,7 @@ public Mono>> stopPacketCaptureWithResponseAsync(Strin if (parameters != null) { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.stopPacketCapture(this.client.getEndpoint(), resourceGroupName, gatewayName, @@ -1568,7 +1568,7 @@ private Mono>> stopPacketCaptureWithResponseAsync(Stri if (parameters != null) { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.stopPacketCapture(this.client.getEndpoint(), resourceGroupName, gatewayName, apiVersion, @@ -1783,7 +1783,7 @@ private Mono> listByResourceGroupSinglePageAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), @@ -1819,7 +1819,7 @@ private Mono> listByResourceGroupSinglePageAsync( return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1907,7 +1907,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, @@ -1937,7 +1937,7 @@ private Mono> listSinglePageAsync(Context context return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, accept, context) diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnLinkConnectionsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnLinkConnectionsClientImpl.java index 2fc35e427fa9b..d7e7b26196439 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnLinkConnectionsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnLinkConnectionsClientImpl.java @@ -146,7 +146,7 @@ public Mono>> resetConnectionWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter linkConnectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.resetConnection(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -192,7 +192,7 @@ private Mono>> resetConnectionWithResponseAsync(String return Mono .error(new IllegalArgumentException("Parameter linkConnectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.resetConnection(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -319,7 +319,8 @@ public Mono resetConnectionAsync(String resourceGroupName, String gatewayN 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); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -394,7 +395,7 @@ public Mono>> getIkeSasWithResponseAsync(String resour return Mono .error(new IllegalArgumentException("Parameter linkConnectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getIkeSas(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -440,7 +441,7 @@ private Mono>> getIkeSasWithResponseAsync(String resou return Mono .error(new IllegalArgumentException("Parameter linkConnectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getIkeSas(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -639,7 +640,7 @@ private Mono> listByVpnConnectionSingl if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -684,7 +685,7 @@ private Mono> listByVpnConnectionSingl if (connectionName == null) { return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnServerConfigurationsAssociatedWithVirtualWansClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnServerConfigurationsAssociatedWithVirtualWansClientImpl.java index 26f6c67ebc3e7..11bde0a7edc21 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnServerConfigurationsAssociatedWithVirtualWansClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnServerConfigurationsAssociatedWithVirtualWansClientImpl.java @@ -104,7 +104,7 @@ public Mono>> listWithResponseAsync(String resourceGro if (virtualWanName == null) { return Mono.error(new IllegalArgumentException("Parameter virtualWanName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -142,7 +142,7 @@ private Mono>> listWithResponseAsync(String resourceGr if (virtualWanName == null) { return Mono.error(new IllegalArgumentException("Parameter virtualWanName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnServerConfigurationsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnServerConfigurationsClientImpl.java index 57ed562c2f526..fe325b7bb9169 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnServerConfigurationsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnServerConfigurationsClientImpl.java @@ -183,7 +183,7 @@ public Mono> getByResourceGroupWithRespons return Mono.error( new IllegalArgumentException("Parameter vpnServerConfigurationName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -222,7 +222,7 @@ private Mono> getByResourceGroupWithRespon return Mono.error( new IllegalArgumentException("Parameter vpnServerConfigurationName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -314,7 +314,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { vpnServerConfigurationParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -361,7 +361,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { vpnServerConfigurationParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -450,8 +450,10 @@ public SyncPoller, VpnServerConfiguratio public SyncPoller, VpnServerConfigurationInner> beginCreateOrUpdate( String resourceGroupName, String vpnServerConfigurationName, VpnServerConfigurationInner vpnServerConfigurationParameters, Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, vpnServerConfigurationName, - vpnServerConfigurationParameters, context).getSyncPoller(); + return this + .beginCreateOrUpdateAsync(resourceGroupName, vpnServerConfigurationName, vpnServerConfigurationParameters, + context) + .getSyncPoller(); } /** @@ -469,7 +471,8 @@ public SyncPoller, VpnServerConfiguratio public Mono createOrUpdateAsync(String resourceGroupName, String vpnServerConfigurationName, VpnServerConfigurationInner vpnServerConfigurationParameters) { return beginCreateOrUpdateAsync(resourceGroupName, vpnServerConfigurationName, vpnServerConfigurationParameters) - .last().flatMap(this.client::getLroFinalResultOrError); + .last() + .flatMap(this.client::getLroFinalResultOrError); } /** @@ -565,7 +568,7 @@ public Mono> updateTagsWithResponseAsync(S } else { vpnServerConfigurationParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -611,7 +614,7 @@ private Mono> updateTagsWithResponseAsync( } else { vpnServerConfigurationParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -702,7 +705,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error( new IllegalArgumentException("Parameter vpnServerConfigurationName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -740,7 +743,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error( new IllegalArgumentException("Parameter vpnServerConfigurationName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -905,7 +908,7 @@ public void delete(String resourceGroupName, String vpnServerConfigurationName, return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), @@ -941,7 +944,7 @@ public void delete(String resourceGroupName, String vpnServerConfigurationName, return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1031,7 +1034,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, @@ -1061,7 +1064,7 @@ private Mono> listSinglePageAsync(Con return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, accept, context) diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnSiteLinkConnectionsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnSiteLinkConnectionsClientImpl.java index 94bd309f3db7a..0b2fdff0f6b44 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnSiteLinkConnectionsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnSiteLinkConnectionsClientImpl.java @@ -51,8 +51,8 @@ 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. + * The interface defining all the services for NetworkManagementClientVpnSiteLinkConnections to be used by the proxy + * service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "NetworkManagementCli") @@ -106,7 +106,7 @@ public Mono> getWithResponseAsync(String re return Mono .error(new IllegalArgumentException("Parameter linkConnectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -152,7 +152,7 @@ private Mono> getWithResponseAsync(String r return Mono .error(new IllegalArgumentException("Parameter linkConnectionName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, gatewayName, diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnSiteLinksClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnSiteLinksClientImpl.java index ffeb147651848..9eb27ea6c09b8 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnSiteLinksClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnSiteLinksClientImpl.java @@ -123,7 +123,7 @@ public Mono> getWithResponseAsync(String resourceGrou return Mono .error(new IllegalArgumentException("Parameter vpnSiteLinkName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -165,7 +165,7 @@ private Mono> getWithResponseAsync(String resourceGro return Mono .error(new IllegalArgumentException("Parameter vpnSiteLinkName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, vpnSiteName, @@ -252,7 +252,7 @@ private Mono> listByVpnSiteSinglePageAsync(Strin if (vpnSiteName == null) { return Mono.error(new IllegalArgumentException("Parameter vpnSiteName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByVpnSite(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -292,7 +292,7 @@ private Mono> listByVpnSiteSinglePageAsync(Strin if (vpnSiteName == null) { return Mono.error(new IllegalArgumentException("Parameter vpnSiteName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnSitesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnSitesClientImpl.java index b8e4e291dc10f..6b0a15479869a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnSitesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnSitesClientImpl.java @@ -174,7 +174,7 @@ public Mono> getByResourceGroupWithResponseAsync(String r if (vpnSiteName == null) { return Mono.error(new IllegalArgumentException("Parameter vpnSiteName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), @@ -211,7 +211,7 @@ private Mono> getByResourceGroupWithResponseAsync(String if (vpnSiteName == null) { return Mono.error(new IllegalArgumentException("Parameter vpnSiteName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -301,7 +301,7 @@ public Mono>> createOrUpdateWithResponseAsync(String r } else { vpnSiteParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -345,7 +345,7 @@ private Mono>> createOrUpdateWithResponseAsync(String } else { vpnSiteParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -536,7 +536,7 @@ public Mono> updateTagsWithResponseAsync(String resourceG } else { vpnSiteParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -580,7 +580,7 @@ private Mono> updateTagsWithResponseAsync(String resource } else { vpnSiteParameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.updateTags(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -666,7 +666,7 @@ public Mono>> deleteWithResponseAsync(String resourceG if (vpnSiteName == null) { return Mono.error(new IllegalArgumentException("Parameter vpnSiteName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -703,7 +703,7 @@ private Mono>> deleteWithResponseAsync(String resource if (vpnSiteName == null) { return Mono.error(new IllegalArgumentException("Parameter vpnSiteName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, @@ -864,7 +864,7 @@ private Mono> listByResourceGroupSinglePageAsync(Str return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), @@ -900,7 +900,7 @@ private Mono> listByResourceGroupSinglePageAsync(Str return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -988,7 +988,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, @@ -1018,7 +1018,7 @@ private Mono> listSinglePageAsync(Context context) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, accept, context) diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnSitesConfigurationsClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnSitesConfigurationsClientImpl.java index 25a6d2c624e40..540b0b9d08dd4 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnSitesConfigurationsClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnSitesConfigurationsClientImpl.java @@ -57,8 +57,8 @@ 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. + * The interface defining all the services for NetworkManagementClientVpnSitesConfigurations to be used by the proxy + * service to perform REST calls. */ @Host("{$host}") @ServiceInterface(name = "NetworkManagementCli") @@ -109,7 +109,7 @@ public Mono>> downloadWithResponseAsync(String resourc } else { request.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.download(this.client.getEndpoint(), this.client.getSubscriptionId(), @@ -152,7 +152,7 @@ private Mono>> downloadWithResponseAsync(String resour } else { request.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.download(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/WebApplicationFirewallPoliciesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/WebApplicationFirewallPoliciesClientImpl.java index e2f3c13acc45f..c570cb186f166 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/WebApplicationFirewallPoliciesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/WebApplicationFirewallPoliciesClientImpl.java @@ -162,7 +162,7 @@ Mono> listAllNext( return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), resourceGroupName, @@ -198,7 +198,7 @@ Mono> listAllNext( return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -292,7 +292,7 @@ private Mono> listSinglePageAsy return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, @@ -322,7 +322,7 @@ private Mono> listSinglePageAsy return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, accept, context) @@ -412,7 +412,7 @@ public PagedIterable list(Context context) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, policyName, @@ -450,7 +450,7 @@ public PagedIterable list(Context context) { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.getByResourceGroup(this.client.getEndpoint(), resourceGroupName, policyName, @@ -541,7 +541,7 @@ public Mono> createOrUpdateWithRespo } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, policyName, @@ -585,7 +585,7 @@ private Mono> createOrUpdateWithResp } else { parameters.validate(); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.createOrUpdate(this.client.getEndpoint(), resourceGroupName, policyName, @@ -672,7 +672,7 @@ public Mono>> deleteWithResponseAsync(String resourceG return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), resourceGroupName, policyName, @@ -709,7 +709,7 @@ private Mono>> deleteWithResponseAsync(String resource return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), resourceGroupName, policyName, this.client.getSubscriptionId(), diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/WebCategoriesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/WebCategoriesClientImpl.java index 444a82b619432..f67a39feeb4d8 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/WebCategoriesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/WebCategoriesClientImpl.java @@ -110,7 +110,7 @@ public Mono> getWithResponseAsync(String name, S return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), name, apiVersion, @@ -142,7 +142,7 @@ private Mono> getWithResponseAsync(String name, return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.get(this.client.getEndpoint(), name, apiVersion, this.client.getSubscriptionId(), expand, accept, @@ -213,7 +213,7 @@ private Mono> listSinglePageAsync() { return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), @@ -243,7 +243,7 @@ private Mono> listSinglePageAsync(Context c return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - final String apiVersion = "2023-09-01"; + final String apiVersion = "2023-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service.list(this.client.getEndpoint(), apiVersion, this.client.getSubscriptionId(), accept, context) diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Action.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Action.java index 1c6e6c5d4ec80..53d9310df5939 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Action.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/Action.java @@ -6,6 +6,7 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -20,8 +21,7 @@ public final class Action { private RouteMapActionType type; /* - * List of parameters relevant to the action.For instance if type is drop then parameters has list of prefixes to - * be dropped.If type is add, parameters would have list of ASN numbers to be added + * List of parameters relevant to the action.For instance if type is drop then parameters has list of prefixes to be dropped.If type is add, parameters would have list of ASN numbers to be added */ @JsonProperty(value = "parameters") private List parameters; @@ -34,7 +34,7 @@ public Action() { /** * Get the type property: Type of action to be taken. Supported types are 'Remove', 'Add', 'Replace', and 'Drop.'. - * + * * @return the type value. */ public RouteMapActionType type() { @@ -43,7 +43,7 @@ public RouteMapActionType type() { /** * Set the type property: Type of action to be taken. Supported types are 'Remove', 'Add', 'Replace', and 'Drop.'. - * + * * @param type the type value to set. * @return the Action object itself. */ @@ -56,7 +56,7 @@ public Action withType(RouteMapActionType type) { * Get the parameters property: List of parameters relevant to the action.For instance if type is drop then * parameters has list of prefixes to be dropped.If type is add, parameters would have list of ASN numbers to be * added. - * + * * @return the parameters value. */ public List parameters() { @@ -67,7 +67,7 @@ public List parameters() { * Set the parameters property: List of parameters relevant to the action.For instance if type is drop then * parameters has list of prefixes to be dropped.If type is add, parameters would have list of ASN numbers to be * added. - * + * * @param parameters the parameters value to set. * @return the Action object itself. */ @@ -78,7 +78,7 @@ public Action withParameters(List parameters) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveBaseSecurityAdminRule.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveBaseSecurityAdminRule.java index bad66ded98679..884296300f326 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveBaseSecurityAdminRule.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveBaseSecurityAdminRule.java @@ -7,8 +7,10 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeId; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; + import java.time.OffsetDateTime; import java.util.List; @@ -17,15 +19,22 @@ */ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, property = "kind", - defaultImpl = ActiveBaseSecurityAdminRule.class) + defaultImpl = ActiveBaseSecurityAdminRule.class, + visible = true) @JsonTypeName("ActiveBaseSecurityAdminRule") @JsonSubTypes({ @JsonSubTypes.Type(name = "Custom", value = ActiveSecurityAdminRule.class), @JsonSubTypes.Type(name = "Default", value = ActiveDefaultSecurityAdminRule.class) }) @Fluent public class ActiveBaseSecurityAdminRule { + /* + * Whether the rule is custom or default. + */ + @JsonTypeId + @JsonProperty(value = "kind", required = true) + private EffectiveAdminRuleKind kind; + /* * Resource ID. */ @@ -72,11 +81,21 @@ public class ActiveBaseSecurityAdminRule { * Creates an instance of ActiveBaseSecurityAdminRule class. */ public ActiveBaseSecurityAdminRule() { + this.kind = EffectiveAdminRuleKind.fromString("ActiveBaseSecurityAdminRule"); + } + + /** + * Get the kind property: Whether the rule is custom or default. + * + * @return the kind value. + */ + public EffectiveAdminRuleKind kind() { + return this.kind; } /** * Get the id property: Resource ID. - * + * * @return the id value. */ public String id() { @@ -85,7 +104,7 @@ public String id() { /** * Set the id property: Resource ID. - * + * * @param id the id value to set. * @return the ActiveBaseSecurityAdminRule object itself. */ @@ -96,7 +115,7 @@ public ActiveBaseSecurityAdminRule withId(String id) { /** * Get the commitTime property: Deployment time string. - * + * * @return the commitTime value. */ public OffsetDateTime commitTime() { @@ -105,7 +124,7 @@ public OffsetDateTime commitTime() { /** * Set the commitTime property: Deployment time string. - * + * * @param commitTime the commitTime value to set. * @return the ActiveBaseSecurityAdminRule object itself. */ @@ -116,7 +135,7 @@ public ActiveBaseSecurityAdminRule withCommitTime(OffsetDateTime commitTime) { /** * Get the region property: Deployment region. - * + * * @return the region value. */ public String region() { @@ -125,7 +144,7 @@ public String region() { /** * Set the region property: Deployment region. - * + * * @param region the region value to set. * @return the ActiveBaseSecurityAdminRule object itself. */ @@ -136,7 +155,7 @@ public ActiveBaseSecurityAdminRule withRegion(String region) { /** * Get the configurationDescription property: A description of the security admin configuration. - * + * * @return the configurationDescription value. */ public String configurationDescription() { @@ -145,7 +164,7 @@ public String configurationDescription() { /** * Set the configurationDescription property: A description of the security admin configuration. - * + * * @param configurationDescription the configurationDescription value to set. * @return the ActiveBaseSecurityAdminRule object itself. */ @@ -156,7 +175,7 @@ public ActiveBaseSecurityAdminRule withConfigurationDescription(String configura /** * Get the ruleCollectionDescription property: A description of the rule collection. - * + * * @return the ruleCollectionDescription value. */ public String ruleCollectionDescription() { @@ -165,7 +184,7 @@ public String ruleCollectionDescription() { /** * Set the ruleCollectionDescription property: A description of the rule collection. - * + * * @param ruleCollectionDescription the ruleCollectionDescription value to set. * @return the ActiveBaseSecurityAdminRule object itself. */ @@ -176,7 +195,7 @@ public ActiveBaseSecurityAdminRule withRuleCollectionDescription(String ruleColl /** * Get the ruleCollectionAppliesToGroups property: Groups for rule collection. - * + * * @return the ruleCollectionAppliesToGroups value. */ public List ruleCollectionAppliesToGroups() { @@ -185,7 +204,7 @@ public List ruleCollectionAppliesToGroups() { /** * Set the ruleCollectionAppliesToGroups property: Groups for rule collection. - * + * * @param ruleCollectionAppliesToGroups the ruleCollectionAppliesToGroups value to set. * @return the ActiveBaseSecurityAdminRule object itself. */ @@ -197,7 +216,7 @@ public List ruleCollectionAppliesToGroups() { /** * Get the ruleGroups property: Effective configuration groups. - * + * * @return the ruleGroups value. */ public List ruleGroups() { @@ -206,7 +225,7 @@ public List ruleGroups() { /** * Set the ruleGroups property: Effective configuration groups. - * + * * @param ruleGroups the ruleGroups value to set. * @return the ActiveBaseSecurityAdminRule object itself. */ @@ -217,7 +236,7 @@ public ActiveBaseSecurityAdminRule withRuleGroups(List ruleG /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveConfigurationParameter.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveConfigurationParameter.java index 5312b861c3ff4..6ce455f0dbef6 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveConfigurationParameter.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveConfigurationParameter.java @@ -6,6 +6,7 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -20,8 +21,7 @@ public final class ActiveConfigurationParameter { private List regions; /* - * 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. + * 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. */ @JsonProperty(value = "skipToken") private String skipToken; @@ -34,7 +34,7 @@ public ActiveConfigurationParameter() { /** * Get the regions property: List of regions. - * + * * @return the regions value. */ public List regions() { @@ -43,7 +43,7 @@ public List regions() { /** * Set the regions property: List of regions. - * + * * @param regions the regions value to set. * @return the ActiveConfigurationParameter object itself. */ @@ -55,7 +55,7 @@ public ActiveConfigurationParameter withRegions(List regions) { /** * 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. - * + * * @return the skipToken value. */ public String skipToken() { @@ -65,7 +65,7 @@ public String 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 ActiveConfigurationParameter object itself. */ @@ -76,7 +76,7 @@ public ActiveConfigurationParameter withSkipToken(String skipToken) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveDefaultSecurityAdminRule.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveDefaultSecurityAdminRule.java index 3dddce6bdb06a..cf2cd23214930 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveDefaultSecurityAdminRule.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveDefaultSecurityAdminRule.java @@ -7,18 +7,31 @@ import com.azure.core.annotation.Fluent; import com.azure.resourcemanager.network.fluent.models.DefaultAdminPropertiesFormat; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeId; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; + import java.time.OffsetDateTime; import java.util.List; /** * Network default admin rule. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind") +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + property = "kind", + defaultImpl = ActiveDefaultSecurityAdminRule.class, + visible = true) @JsonTypeName("Default") @Fluent public final class ActiveDefaultSecurityAdminRule extends ActiveBaseSecurityAdminRule { + /* + * Whether the rule is custom or default. + */ + @JsonTypeId + @JsonProperty(value = "kind", required = true) + private EffectiveAdminRuleKind kind = EffectiveAdminRuleKind.DEFAULT; + /* * Indicates the properties of the default security admin rule */ @@ -31,9 +44,19 @@ public final class ActiveDefaultSecurityAdminRule extends ActiveBaseSecurityAdmi public ActiveDefaultSecurityAdminRule() { } + /** + * Get the kind property: Whether the rule is custom or default. + * + * @return the kind value. + */ + @Override + public EffectiveAdminRuleKind kind() { + return this.kind; + } + /** * Get the innerProperties property: Indicates the properties of the default security admin rule. - * + * * @return the innerProperties value. */ private DefaultAdminPropertiesFormat innerProperties() { @@ -106,7 +129,7 @@ public ActiveDefaultSecurityAdminRule withRuleGroups(List ru /** * Get the description property: A description for this rule. Restricted to 140 chars. - * + * * @return the description value. */ public String description() { @@ -115,7 +138,7 @@ public String description() { /** * Get the flag property: Default rule flag. - * + * * @return the flag value. */ public String flag() { @@ -124,7 +147,7 @@ public String flag() { /** * Set the flag property: Default rule flag. - * + * * @param flag the flag value to set. * @return the ActiveDefaultSecurityAdminRule object itself. */ @@ -138,7 +161,7 @@ public ActiveDefaultSecurityAdminRule withFlag(String flag) { /** * Get the protocol property: Network protocol this rule applies to. - * + * * @return the protocol value. */ public SecurityConfigurationRuleProtocol protocol() { @@ -147,7 +170,7 @@ public SecurityConfigurationRuleProtocol protocol() { /** * Get the sources property: The CIDR or source IP ranges. - * + * * @return the sources value. */ public List sources() { @@ -156,7 +179,7 @@ public List sources() { /** * Get the destinations property: The destination address prefixes. CIDR or destination IP ranges. - * + * * @return the destinations value. */ public List destinations() { @@ -165,7 +188,7 @@ public List destinations() { /** * Get the sourcePortRanges property: The source port ranges. - * + * * @return the sourcePortRanges value. */ public List sourcePortRanges() { @@ -174,7 +197,7 @@ public List sourcePortRanges() { /** * Get the destinationPortRanges property: The destination port ranges. - * + * * @return the destinationPortRanges value. */ public List destinationPortRanges() { @@ -183,7 +206,7 @@ public List destinationPortRanges() { /** * Get the access property: Indicates the access allowed for this particular rule. - * + * * @return the access value. */ public SecurityConfigurationRuleAccess access() { @@ -194,7 +217,7 @@ public SecurityConfigurationRuleAccess access() { * 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 * rule. - * + * * @return the priority value. */ public Integer priority() { @@ -203,7 +226,7 @@ public Integer priority() { /** * Get the direction property: Indicates if the traffic matched against the rule in inbound or outbound. - * + * * @return the direction value. */ public SecurityConfigurationRuleDirection direction() { @@ -212,7 +235,7 @@ public SecurityConfigurationRuleDirection direction() { /** * Get the provisioningState property: The provisioning state of the resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -221,7 +244,7 @@ public ProvisioningState provisioningState() { /** * Get the resourceGuid property: Unique identifier for this resource. - * + * * @return the resourceGuid value. */ public String resourceGuid() { @@ -230,7 +253,7 @@ public String resourceGuid() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveSecurityAdminRule.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveSecurityAdminRule.java index a7a11386f167c..d9f367d21e4d3 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveSecurityAdminRule.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ActiveSecurityAdminRule.java @@ -7,18 +7,31 @@ import com.azure.core.annotation.Fluent; import com.azure.resourcemanager.network.fluent.models.AdminPropertiesFormat; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeId; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; + import java.time.OffsetDateTime; import java.util.List; /** * Network admin rule. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind") +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + property = "kind", + defaultImpl = ActiveSecurityAdminRule.class, + visible = true) @JsonTypeName("Custom") @Fluent public final class ActiveSecurityAdminRule extends ActiveBaseSecurityAdminRule { + /* + * Whether the rule is custom or default. + */ + @JsonTypeId + @JsonProperty(value = "kind", required = true) + private EffectiveAdminRuleKind kind = EffectiveAdminRuleKind.CUSTOM; + /* * Indicates the properties of the security admin rule */ @@ -31,9 +44,19 @@ public final class ActiveSecurityAdminRule extends ActiveBaseSecurityAdminRule { public ActiveSecurityAdminRule() { } + /** + * Get the kind property: Whether the rule is custom or default. + * + * @return the kind value. + */ + @Override + public EffectiveAdminRuleKind kind() { + return this.kind; + } + /** * Get the innerProperties property: Indicates the properties of the security admin rule. - * + * * @return the innerProperties value. */ private AdminPropertiesFormat innerProperties() { @@ -106,7 +129,7 @@ public ActiveSecurityAdminRule withRuleGroups(List ruleGroup /** * Get the description property: A description for this rule. Restricted to 140 chars. - * + * * @return the description value. */ public String description() { @@ -115,7 +138,7 @@ public String 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. */ @@ -129,7 +152,7 @@ public ActiveSecurityAdminRule withDescription(String description) { /** * Get the protocol property: Network protocol this rule applies to. - * + * * @return the protocol value. */ public SecurityConfigurationRuleProtocol protocol() { @@ -138,7 +161,7 @@ public SecurityConfigurationRuleProtocol protocol() { /** * Set the protocol property: Network protocol this rule applies to. - * + * * @param protocol the protocol value to set. * @return the ActiveSecurityAdminRule object itself. */ @@ -152,7 +175,7 @@ public ActiveSecurityAdminRule withProtocol(SecurityConfigurationRuleProtocol pr /** * Get the sources property: The CIDR or source IP ranges. - * + * * @return the sources value. */ public List sources() { @@ -161,7 +184,7 @@ public List sources() { /** * Set the sources property: The CIDR or source IP ranges. - * + * * @param sources the sources value to set. * @return the ActiveSecurityAdminRule object itself. */ @@ -175,7 +198,7 @@ public ActiveSecurityAdminRule withSources(List sources) { /** * Get the destinations property: The destination address prefixes. CIDR or destination IP ranges. - * + * * @return the destinations value. */ public List destinations() { @@ -184,7 +207,7 @@ public List 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. */ @@ -198,7 +221,7 @@ public ActiveSecurityAdminRule withDestinations(List destinat /** * Get the sourcePortRanges property: The source port ranges. - * + * * @return the sourcePortRanges value. */ public List sourcePortRanges() { @@ -207,7 +230,7 @@ public List sourcePortRanges() { /** * Set the sourcePortRanges property: The source port ranges. - * + * * @param sourcePortRanges the sourcePortRanges value to set. * @return the ActiveSecurityAdminRule object itself. */ @@ -221,7 +244,7 @@ public ActiveSecurityAdminRule withSourcePortRanges(List sourcePortRange /** * Get the destinationPortRanges property: The destination port ranges. - * + * * @return the destinationPortRanges value. */ public List destinationPortRanges() { @@ -230,7 +253,7 @@ public List destinationPortRanges() { /** * Set the destinationPortRanges property: The destination port ranges. - * + * * @param destinationPortRanges the destinationPortRanges value to set. * @return the ActiveSecurityAdminRule object itself. */ @@ -244,7 +267,7 @@ public ActiveSecurityAdminRule withDestinationPortRanges(List destinatio /** * Get the access property: Indicates the access allowed for this particular rule. - * + * * @return the access value. */ public SecurityConfigurationRuleAccess access() { @@ -253,7 +276,7 @@ public SecurityConfigurationRuleAccess 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. */ @@ -269,7 +292,7 @@ public ActiveSecurityAdminRule withAccess(SecurityConfigurationRuleAccess access * 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 * rule. - * + * * @return the priority value. */ public Integer priority() { @@ -280,7 +303,7 @@ public Integer 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. */ @@ -294,7 +317,7 @@ public ActiveSecurityAdminRule withPriority(Integer priority) { /** * Get the direction property: Indicates if the traffic matched against the rule in inbound or outbound. - * + * * @return the direction value. */ public SecurityConfigurationRuleDirection direction() { @@ -303,7 +326,7 @@ public SecurityConfigurationRuleDirection 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. */ @@ -317,7 +340,7 @@ public ActiveSecurityAdminRule withDirection(SecurityConfigurationRuleDirection /** * Get the provisioningState property: The provisioning state of the resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -326,7 +349,7 @@ public ProvisioningState provisioningState() { /** * Get the resourceGuid property: Unique identifier for this resource. - * + * * @return the resourceGuid value. */ public String resourceGuid() { @@ -335,7 +358,7 @@ public String resourceGuid() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AdminRule.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AdminRule.java index 2d2db80137686..88c11aa74c0ab 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AdminRule.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AdminRule.java @@ -8,17 +8,26 @@ import com.azure.resourcemanager.network.fluent.models.AdminPropertiesFormat; import com.azure.resourcemanager.network.fluent.models.BaseAdminRuleInner; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeId; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; + import java.util.List; /** * Network admin rule. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "kind", defaultImpl = AdminRule.class, visible = true) @JsonTypeName("Custom") @Fluent public final class AdminRule extends BaseAdminRuleInner { + /* + * Whether the rule is custom or default. + */ + @JsonTypeId + @JsonProperty(value = "kind", required = true) + private AdminRuleKind kind = AdminRuleKind.CUSTOM; + /* * Indicates the properties of the security admin rule */ @@ -31,9 +40,19 @@ public final class AdminRule extends BaseAdminRuleInner { public AdminRule() { } + /** + * Get the kind property: Whether the rule is custom or default. + * + * @return the kind value. + */ + @Override + public AdminRuleKind kind() { + return this.kind; + } + /** * Get the innerProperties property: Indicates the properties of the security admin rule. - * + * * @return the innerProperties value. */ private AdminPropertiesFormat innerProperties() { @@ -42,7 +61,7 @@ private AdminPropertiesFormat innerProperties() { /** * Get the description property: A description for this rule. Restricted to 140 chars. - * + * * @return the description value. */ public String description() { @@ -51,7 +70,7 @@ public String description() { /** * Set the description property: A description for this rule. Restricted to 140 chars. - * + * * @param description the description value to set. * @return the AdminRule object itself. */ @@ -65,7 +84,7 @@ public AdminRule withDescription(String description) { /** * Get the protocol property: Network protocol this rule applies to. - * + * * @return the protocol value. */ public SecurityConfigurationRuleProtocol protocol() { @@ -74,7 +93,7 @@ public SecurityConfigurationRuleProtocol protocol() { /** * Set the protocol property: Network protocol this rule applies to. - * + * * @param protocol the protocol value to set. * @return the AdminRule object itself. */ @@ -88,7 +107,7 @@ public AdminRule withProtocol(SecurityConfigurationRuleProtocol protocol) { /** * Get the sources property: The CIDR or source IP ranges. - * + * * @return the sources value. */ public List sources() { @@ -97,7 +116,7 @@ public List sources() { /** * Set the sources property: The CIDR or source IP ranges. - * + * * @param sources the sources value to set. * @return the AdminRule object itself. */ @@ -111,7 +130,7 @@ public AdminRule withSources(List sources) { /** * Get the destinations property: The destination address prefixes. CIDR or destination IP ranges. - * + * * @return the destinations value. */ public List destinations() { @@ -120,7 +139,7 @@ public List destinations() { /** * Set the destinations property: The destination address prefixes. CIDR or destination IP ranges. - * + * * @param destinations the destinations value to set. * @return the AdminRule object itself. */ @@ -134,7 +153,7 @@ public AdminRule withDestinations(List destinations) { /** * Get the sourcePortRanges property: The source port ranges. - * + * * @return the sourcePortRanges value. */ public List sourcePortRanges() { @@ -143,7 +162,7 @@ public List sourcePortRanges() { /** * Set the sourcePortRanges property: The source port ranges. - * + * * @param sourcePortRanges the sourcePortRanges value to set. * @return the AdminRule object itself. */ @@ -157,7 +176,7 @@ public AdminRule withSourcePortRanges(List sourcePortRanges) { /** * Get the destinationPortRanges property: The destination port ranges. - * + * * @return the destinationPortRanges value. */ public List destinationPortRanges() { @@ -166,7 +185,7 @@ public List destinationPortRanges() { /** * Set the destinationPortRanges property: The destination port ranges. - * + * * @param destinationPortRanges the destinationPortRanges value to set. * @return the AdminRule object itself. */ @@ -180,7 +199,7 @@ public AdminRule withDestinationPortRanges(List destinationPortRanges) { /** * Get the access property: Indicates the access allowed for this particular rule. - * + * * @return the access value. */ public SecurityConfigurationRuleAccess access() { @@ -189,7 +208,7 @@ public SecurityConfigurationRuleAccess access() { /** * Set the access property: Indicates the access allowed for this particular rule. - * + * * @param access the access value to set. * @return the AdminRule object itself. */ @@ -205,7 +224,7 @@ public AdminRule withAccess(SecurityConfigurationRuleAccess access) { * 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 * rule. - * + * * @return the priority value. */ public Integer priority() { @@ -216,7 +235,7 @@ public Integer 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 AdminRule object itself. */ @@ -230,7 +249,7 @@ public AdminRule withPriority(Integer priority) { /** * Get the direction property: Indicates if the traffic matched against the rule in inbound or outbound. - * + * * @return the direction value. */ public SecurityConfigurationRuleDirection direction() { @@ -239,7 +258,7 @@ public SecurityConfigurationRuleDirection 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 AdminRule object itself. */ @@ -253,7 +272,7 @@ public AdminRule withDirection(SecurityConfigurationRuleDirection direction) { /** * Get the provisioningState property: The provisioning state of the resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -262,7 +281,7 @@ public ProvisioningState provisioningState() { /** * Get the resourceGuid property: Unique identifier for this resource. - * + * * @return the resourceGuid value. */ public String resourceGuid() { @@ -271,7 +290,7 @@ public String resourceGuid() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendSettings.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendSettings.java index 41ec3b5a9c92e..86a473252e923 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendSettings.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayBackendSettings.java @@ -8,6 +8,7 @@ import com.azure.core.management.SubResource; import com.azure.resourcemanager.network.fluent.models.ApplicationGatewayBackendSettingsPropertiesFormat; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -47,7 +48,7 @@ public ApplicationGatewayBackendSettings() { /** * Get the innerProperties property: Properties of the application gateway backend settings. - * + * * @return the innerProperties value. */ private ApplicationGatewayBackendSettingsPropertiesFormat innerProperties() { @@ -56,7 +57,7 @@ private ApplicationGatewayBackendSettingsPropertiesFormat innerProperties() { /** * Get the name property: Name of the backend settings that is unique within an Application Gateway. - * + * * @return the name value. */ public String name() { @@ -65,7 +66,7 @@ public String name() { /** * Set the name property: Name of the backend settings that is unique within an Application Gateway. - * + * * @param name the name value to set. * @return the ApplicationGatewayBackendSettings object itself. */ @@ -76,7 +77,7 @@ public ApplicationGatewayBackendSettings withName(String name) { /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. - * + * * @return the etag value. */ public String etag() { @@ -85,7 +86,7 @@ public String etag() { /** * Get the type property: Type of the resource. - * + * * @return the type value. */ public String type() { @@ -103,7 +104,7 @@ public ApplicationGatewayBackendSettings withId(String id) { /** * Get the port property: The destination port on the backend. - * + * * @return the port value. */ public Integer port() { @@ -112,7 +113,7 @@ public Integer port() { /** * Set the port property: The destination port on the backend. - * + * * @param port the port value to set. * @return the ApplicationGatewayBackendSettings object itself. */ @@ -126,7 +127,7 @@ public ApplicationGatewayBackendSettings withPort(Integer port) { /** * Get the protocol property: The protocol used to communicate with the backend. - * + * * @return the protocol value. */ public ApplicationGatewayProtocol protocol() { @@ -135,7 +136,7 @@ public ApplicationGatewayProtocol protocol() { /** * Set the protocol property: The protocol used to communicate with the backend. - * + * * @param protocol the protocol value to set. * @return the ApplicationGatewayBackendSettings object itself. */ @@ -148,9 +149,9 @@ public ApplicationGatewayBackendSettings withProtocol(ApplicationGatewayProtocol } /** - * Get the timeout property: Connection timeout in seconds. Application Gateway will fail the request if response - * is not received within ConnectionTimeout. Acceptable values are from 1 second to 86400 seconds. - * + * Get the timeout property: Connection timeout in seconds. Application Gateway will fail the request if response is + * not received within ConnectionTimeout. Acceptable values are from 1 second to 86400 seconds. + * * @return the timeout value. */ public Integer timeout() { @@ -158,9 +159,9 @@ public Integer timeout() { } /** - * Set the timeout property: Connection timeout in seconds. Application Gateway will fail the request if response - * is not received within ConnectionTimeout. Acceptable values are from 1 second to 86400 seconds. - * + * Set the timeout property: Connection timeout in seconds. Application Gateway will fail the request if response is + * not received within ConnectionTimeout. Acceptable values are from 1 second to 86400 seconds. + * * @param timeout the timeout value to set. * @return the ApplicationGatewayBackendSettings object itself. */ @@ -174,7 +175,7 @@ public ApplicationGatewayBackendSettings withTimeout(Integer timeout) { /** * Get the probe property: Probe resource of an application gateway. - * + * * @return the probe value. */ public SubResource probe() { @@ -183,7 +184,7 @@ public SubResource probe() { /** * Set the probe property: Probe resource of an application gateway. - * + * * @param probe the probe value to set. * @return the ApplicationGatewayBackendSettings object itself. */ @@ -197,7 +198,7 @@ public ApplicationGatewayBackendSettings withProbe(SubResource probe) { /** * Get the trustedRootCertificates property: Array of references to application gateway trusted root certificates. - * + * * @return the trustedRootCertificates value. */ public List trustedRootCertificates() { @@ -206,7 +207,7 @@ public List trustedRootCertificates() { /** * Set the trustedRootCertificates property: Array of references to application gateway trusted root certificates. - * + * * @param trustedRootCertificates the trustedRootCertificates value to set. * @return the ApplicationGatewayBackendSettings object itself. */ @@ -220,7 +221,7 @@ public ApplicationGatewayBackendSettings withTrustedRootCertificates(List rules() { @@ -65,7 +66,7 @@ public List rules() { /** * Set the rules property: The list of rules that will be disabled. If null, all rules of the rule group will be * disabled. - * + * * @param rules the rules value to set. * @return the ApplicationGatewayFirewallDisabledRuleGroup object itself. */ @@ -76,13 +77,14 @@ public ApplicationGatewayFirewallDisabledRuleGroup withRules(List rules /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (ruleGroupName() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property ruleGroupName in model ApplicationGatewayFirewallDisabledRuleGroup")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property ruleGroupName in model ApplicationGatewayFirewallDisabledRuleGroup")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallExclusion.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallExclusion.java index 8e1c3704a1ccd..3f03b9eb952e4 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallExclusion.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallExclusion.java @@ -20,15 +20,13 @@ public final class ApplicationGatewayFirewallExclusion { private String matchVariable; /* - * When matchVariable is a collection, operate on the selector to specify which elements in the collection this - * exclusion applies to. + * When matchVariable is a collection, operate on the selector to specify which elements in the collection this exclusion applies to. */ @JsonProperty(value = "selectorMatchOperator") private String selectorMatchOperator; /* - * When matchVariable is a collection, operator used to specify which elements in the collection this exclusion - * applies to. + * When matchVariable is a collection, operator used to specify which elements in the collection this exclusion applies to. */ @JsonProperty(value = "selector") private String selector; @@ -110,8 +108,9 @@ public ApplicationGatewayFirewallExclusion withSelector(String selector) { */ public void validate() { if (matchVariable() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property matchVariable in model ApplicationGatewayFirewallExclusion")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property matchVariable in model ApplicationGatewayFirewallExclusion")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallManifestRuleSet.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallManifestRuleSet.java index ee82798a867fd..fc0528d8074ff 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallManifestRuleSet.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallManifestRuleSet.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -52,7 +53,7 @@ public ApplicationGatewayFirewallManifestRuleSet() { /** * Get the ruleSetType property: The type of the web application firewall rule set. - * + * * @return the ruleSetType value. */ public String ruleSetType() { @@ -61,7 +62,7 @@ public String 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. */ @@ -72,7 +73,7 @@ public ApplicationGatewayFirewallManifestRuleSet withRuleSetType(String ruleSetT /** * Get the ruleSetVersion property: The version of the web application firewall rule set type. - * + * * @return the ruleSetVersion value. */ public String ruleSetVersion() { @@ -81,7 +82,7 @@ public String 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. */ @@ -92,7 +93,7 @@ public ApplicationGatewayFirewallManifestRuleSet withRuleSetVersion(String ruleS /** * Get the status property: The rule set status. - * + * * @return the status value. */ public ApplicationGatewayRuleSetStatusOptions status() { @@ -101,7 +102,7 @@ public ApplicationGatewayRuleSetStatusOptions status() { /** * Set the status property: The rule set status. - * + * * @param status the status value to set. * @return the ApplicationGatewayFirewallManifestRuleSet object itself. */ @@ -112,7 +113,7 @@ public ApplicationGatewayFirewallManifestRuleSet withStatus(ApplicationGatewayRu /** * Get the tiers property: Tier of an application gateway that support the rule set. - * + * * @return the tiers value. */ public List tiers() { @@ -121,7 +122,7 @@ public List 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. */ @@ -132,7 +133,7 @@ public ApplicationGatewayFirewallManifestRuleSet withTiers(List ruleGroups() { @@ -141,7 +142,7 @@ public List 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. */ @@ -153,21 +154,24 @@ public List ruleGroups() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (ruleSetType() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property ruleSetType in model ApplicationGatewayFirewallManifestRuleSet")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property ruleSetType in model ApplicationGatewayFirewallManifestRuleSet")); } if (ruleSetVersion() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property ruleSetVersion in model ApplicationGatewayFirewallManifestRuleSet")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property ruleSetVersion in model ApplicationGatewayFirewallManifestRuleSet")); } if (ruleGroups() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property ruleGroups in model ApplicationGatewayFirewallManifestRuleSet")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property ruleGroups in model ApplicationGatewayFirewallManifestRuleSet")); } else { ruleGroups().forEach(e -> e.validate()); } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallRuleGroup.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallRuleGroup.java index 5344103e8b0cf..b206c251d6e89 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallRuleGroup.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayFirewallRuleGroup.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -40,7 +41,7 @@ public ApplicationGatewayFirewallRuleGroup() { /** * Get the ruleGroupName property: The name of the web application firewall rule group. - * + * * @return the ruleGroupName value. */ public String ruleGroupName() { @@ -49,7 +50,7 @@ public String 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. */ @@ -60,7 +61,7 @@ public ApplicationGatewayFirewallRuleGroup withRuleGroupName(String ruleGroupNam /** * Get the description property: The description of the web application firewall rule group. - * + * * @return the description value. */ public String description() { @@ -69,7 +70,7 @@ public String 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. */ @@ -80,7 +81,7 @@ public ApplicationGatewayFirewallRuleGroup withDescription(String description) { /** * Get the rules property: The rules of the web application firewall rule group. - * + * * @return the rules value. */ public List rules() { @@ -89,7 +90,7 @@ public List 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. */ @@ -100,17 +101,19 @@ public ApplicationGatewayFirewallRuleGroup withRules(List e.validate()); } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayHeaderConfiguration.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayHeaderConfiguration.java index 09d75302b3287..0958b87f6c1d2 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayHeaderConfiguration.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayHeaderConfiguration.java @@ -18,6 +18,12 @@ public final class ApplicationGatewayHeaderConfiguration { @JsonProperty(value = "headerName") private String headerName; + /* + * An optional field under "Rewrite Action". It lets you capture and modify the value(s) of a specific header when multiple headers with the same name exist. Currently supported for Set-Cookie Response header only. For more details, visit https://aka.ms/appgwheadercrud + */ + @JsonProperty(value = "headerValueMatcher") + private HeaderValueMatcher headerValueMatcher; + /* * Header value of the header configuration. */ @@ -50,6 +56,30 @@ public ApplicationGatewayHeaderConfiguration withHeaderName(String headerName) { return this; } + /** + * Get the headerValueMatcher property: An optional field under "Rewrite Action". It lets you capture and modify the + * value(s) of a specific header when multiple headers with the same name exist. Currently supported for Set-Cookie + * Response header only. For more details, visit https://aka.ms/appgwheadercrud. + * + * @return the headerValueMatcher value. + */ + public HeaderValueMatcher headerValueMatcher() { + return this.headerValueMatcher; + } + + /** + * Set the headerValueMatcher property: An optional field under "Rewrite Action". It lets you capture and modify the + * value(s) of a specific header when multiple headers with the same name exist. Currently supported for Set-Cookie + * Response header only. For more details, visit https://aka.ms/appgwheadercrud. + * + * @param headerValueMatcher the headerValueMatcher value to set. + * @return the ApplicationGatewayHeaderConfiguration object itself. + */ + public ApplicationGatewayHeaderConfiguration withHeaderValueMatcher(HeaderValueMatcher headerValueMatcher) { + this.headerValueMatcher = headerValueMatcher; + return this; + } + /** * Get the headerValue property: Header value of the header configuration. * @@ -76,5 +106,8 @@ public ApplicationGatewayHeaderConfiguration withHeaderValue(String headerValue) * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (headerValueMatcher() != null) { + headerValueMatcher().validate(); + } } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayHttpListener.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayHttpListener.java index e09eb95e99753..bdf09db69d5e8 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayHttpListener.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayHttpListener.java @@ -8,6 +8,7 @@ import com.azure.core.management.SubResource; import com.azure.resourcemanager.network.fluent.models.ApplicationGatewayHttpListenerPropertiesFormat; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -47,7 +48,7 @@ public ApplicationGatewayHttpListener() { /** * Get the innerProperties property: Properties of the application gateway HTTP listener. - * + * * @return the innerProperties value. */ private ApplicationGatewayHttpListenerPropertiesFormat innerProperties() { @@ -56,7 +57,7 @@ private ApplicationGatewayHttpListenerPropertiesFormat innerProperties() { /** * Get the name property: Name of the HTTP listener that is unique within an Application Gateway. - * + * * @return the name value. */ public String name() { @@ -65,7 +66,7 @@ public String name() { /** * Set the name property: Name of the HTTP listener that is unique within an Application Gateway. - * + * * @param name the name value to set. * @return the ApplicationGatewayHttpListener object itself. */ @@ -76,7 +77,7 @@ public ApplicationGatewayHttpListener withName(String name) { /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. - * + * * @return the etag value. */ public String etag() { @@ -85,7 +86,7 @@ public String etag() { /** * Get the type property: Type of the resource. - * + * * @return the type value. */ public String type() { @@ -103,7 +104,7 @@ public ApplicationGatewayHttpListener withId(String id) { /** * Get the frontendIpConfiguration property: Frontend IP configuration resource of an application gateway. - * + * * @return the frontendIpConfiguration value. */ public SubResource frontendIpConfiguration() { @@ -112,7 +113,7 @@ public SubResource frontendIpConfiguration() { /** * Set the frontendIpConfiguration property: Frontend IP configuration resource of an application gateway. - * + * * @param frontendIpConfiguration the frontendIpConfiguration value to set. * @return the ApplicationGatewayHttpListener object itself. */ @@ -126,7 +127,7 @@ public ApplicationGatewayHttpListener withFrontendIpConfiguration(SubResource fr /** * Get the frontendPort property: Frontend port resource of an application gateway. - * + * * @return the frontendPort value. */ public SubResource frontendPort() { @@ -135,7 +136,7 @@ public SubResource frontendPort() { /** * Set the frontendPort property: Frontend port resource of an application gateway. - * + * * @param frontendPort the frontendPort value to set. * @return the ApplicationGatewayHttpListener object itself. */ @@ -149,7 +150,7 @@ public ApplicationGatewayHttpListener withFrontendPort(SubResource frontendPort) /** * Get the protocol property: Protocol of the HTTP listener. - * + * * @return the protocol value. */ public ApplicationGatewayProtocol protocol() { @@ -158,7 +159,7 @@ public ApplicationGatewayProtocol protocol() { /** * Set the protocol property: Protocol of the HTTP listener. - * + * * @param protocol the protocol value to set. * @return the ApplicationGatewayHttpListener object itself. */ @@ -172,7 +173,7 @@ public ApplicationGatewayHttpListener withProtocol(ApplicationGatewayProtocol pr /** * Get the hostname property: Host name of HTTP listener. - * + * * @return the hostname value. */ public String hostname() { @@ -181,7 +182,7 @@ public String hostname() { /** * Set the hostname property: Host name of HTTP listener. - * + * * @param hostname the hostname value to set. * @return the ApplicationGatewayHttpListener object itself. */ @@ -195,7 +196,7 @@ public ApplicationGatewayHttpListener withHostname(String hostname) { /** * Get the sslCertificate property: SSL certificate resource of an application gateway. - * + * * @return the sslCertificate value. */ public SubResource sslCertificate() { @@ -204,7 +205,7 @@ public SubResource sslCertificate() { /** * Set the sslCertificate property: SSL certificate resource of an application gateway. - * + * * @param sslCertificate the sslCertificate value to set. * @return the ApplicationGatewayHttpListener object itself. */ @@ -218,7 +219,7 @@ public ApplicationGatewayHttpListener withSslCertificate(SubResource sslCertific /** * Get the sslProfile property: SSL profile resource of the application gateway. - * + * * @return the sslProfile value. */ public SubResource sslProfile() { @@ -227,7 +228,7 @@ public SubResource sslProfile() { /** * Set the sslProfile property: SSL profile resource of the application gateway. - * + * * @param sslProfile the sslProfile value to set. * @return the ApplicationGatewayHttpListener object itself. */ @@ -242,7 +243,7 @@ public ApplicationGatewayHttpListener withSslProfile(SubResource sslProfile) { /** * Get the requireServerNameIndication property: Applicable only if protocol is https. Enables SNI for * multi-hosting. - * + * * @return the requireServerNameIndication value. */ public Boolean requireServerNameIndication() { @@ -252,7 +253,7 @@ public Boolean requireServerNameIndication() { /** * Set the requireServerNameIndication property: Applicable only if protocol is https. Enables SNI for * multi-hosting. - * + * * @param requireServerNameIndication the requireServerNameIndication value to set. * @return the ApplicationGatewayHttpListener object itself. */ @@ -266,7 +267,7 @@ public ApplicationGatewayHttpListener withRequireServerNameIndication(Boolean re /** * Get the provisioningState property: The provisioning state of the HTTP listener resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -275,7 +276,7 @@ public ProvisioningState provisioningState() { /** * Get the customErrorConfigurations property: Custom error configurations of the HTTP listener. - * + * * @return the customErrorConfigurations value. */ public List customErrorConfigurations() { @@ -284,7 +285,7 @@ public List customErrorConfigurations() { /** * Set the customErrorConfigurations property: Custom error configurations of the HTTP listener. - * + * * @param customErrorConfigurations the customErrorConfigurations value to set. * @return the ApplicationGatewayHttpListener object itself. */ @@ -299,7 +300,7 @@ public List customErrorConfigurations() { /** * Get the firewallPolicy property: Reference to the FirewallPolicy resource. - * + * * @return the firewallPolicy value. */ public SubResource firewallPolicy() { @@ -308,7 +309,7 @@ public SubResource firewallPolicy() { /** * Set the firewallPolicy property: Reference to the FirewallPolicy resource. - * + * * @param firewallPolicy the firewallPolicy value to set. * @return the ApplicationGatewayHttpListener object itself. */ @@ -321,9 +322,8 @@ public ApplicationGatewayHttpListener withFirewallPolicy(SubResource firewallPol } /** - * Get the hostNames property: List of Host names for HTTP Listener that allows special wildcard characters as - * well. - * + * Get the hostNames property: List of Host names for HTTP Listener that allows special wildcard characters as well. + * * @return the hostNames value. */ public List hostNames() { @@ -331,9 +331,8 @@ public List hostNames() { } /** - * Set the hostNames property: List of Host names for HTTP Listener that allows special wildcard characters as - * well. - * + * Set the hostNames property: List of Host names for HTTP Listener that allows special wildcard characters as well. + * * @param hostNames the hostNames value to set. * @return the ApplicationGatewayHttpListener object itself. */ @@ -347,7 +346,7 @@ public ApplicationGatewayHttpListener withHostNames(List hostNames) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayOnDemandProbe.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayOnDemandProbe.java index f3dde4cf77429..4d4c81d9487bc 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayOnDemandProbe.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayOnDemandProbe.java @@ -32,8 +32,7 @@ public final class ApplicationGatewayOnDemandProbe { private String path; /* - * The probe timeout in seconds. Probe marked as failed if valid response is not received with this timeout period. - * Acceptable values are from 1 second to 86400 seconds. + * The probe timeout in seconds. Probe marked as failed if valid response is not received with this timeout period. Acceptable values are from 1 second to 86400 seconds. */ @JsonProperty(value = "timeout") private Integer timeout; @@ -196,8 +195,8 @@ public ApplicationGatewayOnDemandProbe withMatch(ApplicationGatewayProbeHealthRe } /** - * Get the backendAddressPool property: Reference to backend pool of application gateway to which probe request - * will be sent. + * Get the backendAddressPool property: Reference to backend pool of application gateway to which probe request will + * be sent. * * @return the backendAddressPool value. */ @@ -206,8 +205,8 @@ public SubResource backendAddressPool() { } /** - * Set the backendAddressPool property: Reference to backend pool of application gateway to which probe request - * will be sent. + * Set the backendAddressPool property: Reference to backend pool of application gateway to which probe request will + * be sent. * * @param backendAddressPool the backendAddressPool value to set. * @return the ApplicationGatewayOnDemandProbe object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayPrivateLinkConfiguration.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayPrivateLinkConfiguration.java index 300a580f42f2c..eb139f61852c5 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayPrivateLinkConfiguration.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayPrivateLinkConfiguration.java @@ -8,6 +8,7 @@ import com.azure.core.management.SubResource; import com.azure.resourcemanager.network.fluent.models.ApplicationGatewayPrivateLinkConfigurationProperties; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -47,7 +48,7 @@ public ApplicationGatewayPrivateLinkConfiguration() { /** * Get the innerProperties property: Properties of the application gateway private link configuration. - * + * * @return the innerProperties value. */ private ApplicationGatewayPrivateLinkConfigurationProperties innerProperties() { @@ -56,7 +57,7 @@ private ApplicationGatewayPrivateLinkConfigurationProperties innerProperties() { /** * Get the name property: Name of the private link configuration that is unique within an Application Gateway. - * + * * @return the name value. */ public String name() { @@ -65,7 +66,7 @@ public String name() { /** * Set the name property: Name of the private link configuration that is unique within an Application Gateway. - * + * * @param name the name value to set. * @return the ApplicationGatewayPrivateLinkConfiguration object itself. */ @@ -76,7 +77,7 @@ public ApplicationGatewayPrivateLinkConfiguration withName(String name) { /** * Get the etag property: A unique read-only string that changes whenever the resource is updated. - * + * * @return the etag value. */ public String etag() { @@ -85,7 +86,7 @@ public String etag() { /** * Get the type property: Type of the resource. - * + * * @return the type value. */ public String type() { @@ -103,7 +104,7 @@ public ApplicationGatewayPrivateLinkConfiguration withId(String id) { /** * Get the ipConfigurations property: An array of application gateway private link ip configurations. - * + * * @return the ipConfigurations value. */ public List ipConfigurations() { @@ -112,7 +113,7 @@ public List ipConfigurations() { /** * Set the ipConfigurations property: An array of application gateway private link ip configurations. - * + * * @param ipConfigurations the ipConfigurations value to set. * @return the ApplicationGatewayPrivateLinkConfiguration object itself. */ @@ -126,9 +127,8 @@ public List ipConfigurations() { } /** - * Get the provisioningState property: The provisioning state of the application gateway private link - * configuration. - * + * Get the provisioningState property: The provisioning state of the application gateway private link configuration. + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -137,7 +137,7 @@ public ProvisioningState provisioningState() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRewriteRule.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRewriteRule.java index 99e6e26bc5b3c..9d960f72ad8a7 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRewriteRule.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayRewriteRule.java @@ -6,6 +6,7 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -20,8 +21,7 @@ public final class ApplicationGatewayRewriteRule { private String name; /* - * Rule Sequence of the rewrite rule that determines the order of execution of a particular rule in a - * RewriteRuleSet. + * Rule Sequence of the rewrite rule that determines the order of execution of a particular rule in a RewriteRuleSet. */ @JsonProperty(value = "ruleSequence") private Integer ruleSequence; @@ -46,7 +46,7 @@ public ApplicationGatewayRewriteRule() { /** * Get the name property: Name of the rewrite rule that is unique within an Application Gateway. - * + * * @return the name value. */ public String name() { @@ -55,7 +55,7 @@ public String name() { /** * Set the name property: Name of the rewrite rule that is unique within an Application Gateway. - * + * * @param name the name value to set. * @return the ApplicationGatewayRewriteRule object itself. */ @@ -67,7 +67,7 @@ public ApplicationGatewayRewriteRule withName(String name) { /** * Get the ruleSequence property: Rule Sequence of the rewrite rule that determines the order of execution of a * particular rule in a RewriteRuleSet. - * + * * @return the ruleSequence value. */ public Integer ruleSequence() { @@ -77,7 +77,7 @@ public Integer ruleSequence() { /** * Set the ruleSequence property: Rule Sequence of the rewrite rule that determines the order of execution of a * particular rule in a RewriteRuleSet. - * + * * @param ruleSequence the ruleSequence value to set. * @return the ApplicationGatewayRewriteRule object itself. */ @@ -88,7 +88,7 @@ public ApplicationGatewayRewriteRule withRuleSequence(Integer ruleSequence) { /** * Get the conditions property: Conditions based on which the action set execution will be evaluated. - * + * * @return the conditions value. */ public List conditions() { @@ -97,7 +97,7 @@ public List conditions() { /** * Set the conditions property: Conditions based on which the action set execution will be evaluated. - * + * * @param conditions the conditions value to set. * @return the ApplicationGatewayRewriteRule object itself. */ @@ -108,7 +108,7 @@ public ApplicationGatewayRewriteRule withConditions(List { + /** + * Static value Generation_1 for ApplicationGatewaySkuFamily. + */ + public static final ApplicationGatewaySkuFamily GENERATION_1 = fromString("Generation_1"); + + /** + * Static value Generation_2 for ApplicationGatewaySkuFamily. + */ + public static final ApplicationGatewaySkuFamily GENERATION_2 = fromString("Generation_2"); + + /** + * Creates a new instance of ApplicationGatewaySkuFamily value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ApplicationGatewaySkuFamily() { + } + + /** + * Creates or finds a ApplicationGatewaySkuFamily from its string representation. + * + * @param name a name to look for. + * @return the corresponding ApplicationGatewaySkuFamily. + */ + @JsonCreator + public static ApplicationGatewaySkuFamily fromString(String name) { + return fromString(name, ApplicationGatewaySkuFamily.class); + } + + /** + * Gets known ApplicationGatewaySkuFamily values. + * + * @return known ApplicationGatewaySkuFamily values. + */ + public static Collection values() { + return values(ApplicationGatewaySkuFamily.class); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayUrlConfiguration.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayUrlConfiguration.java index 98bcdb7fa14ef..7b96835f36ec1 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayUrlConfiguration.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayUrlConfiguration.java @@ -19,15 +19,13 @@ public final class ApplicationGatewayUrlConfiguration { private String modifiedPath; /* - * Query string which user has provided for url rewrite. Null means no query string will be updated. Default value - * is null. + * Query string which user has provided for url rewrite. Null means no query string will be updated. Default value is null. */ @JsonProperty(value = "modifiedQueryString") private String modifiedQueryString; /* - * If set as true, it will re-evaluate the url path map provided in path based request routing rules using modified - * path. Default value is false. + * If set as true, it will re-evaluate the url path map provided in path based request routing rules using modified path. Default value is false. */ @JsonProperty(value = "reroute") private Boolean reroute; diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayWebApplicationFirewallConfiguration.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayWebApplicationFirewallConfiguration.java index 440989b744ded..add989a264b36 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayWebApplicationFirewallConfiguration.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationGatewayWebApplicationFirewallConfiguration.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -82,7 +83,7 @@ public ApplicationGatewayWebApplicationFirewallConfiguration() { /** * Get the enabled property: Whether the web application firewall is enabled or not. - * + * * @return the enabled value. */ public boolean enabled() { @@ -91,7 +92,7 @@ public boolean enabled() { /** * Set the enabled property: Whether the web application firewall is enabled or not. - * + * * @param enabled the enabled value to set. * @return the ApplicationGatewayWebApplicationFirewallConfiguration object itself. */ @@ -102,7 +103,7 @@ public ApplicationGatewayWebApplicationFirewallConfiguration withEnabled(boolean /** * Get the firewallMode property: Web application firewall mode. - * + * * @return the firewallMode value. */ public ApplicationGatewayFirewallMode firewallMode() { @@ -111,7 +112,7 @@ public ApplicationGatewayFirewallMode firewallMode() { /** * Set the firewallMode property: Web application firewall mode. - * + * * @param firewallMode the firewallMode value to set. * @return the ApplicationGatewayWebApplicationFirewallConfiguration object itself. */ @@ -123,7 +124,7 @@ public ApplicationGatewayFirewallMode firewallMode() { /** * Get the ruleSetType property: The type of the web application firewall rule set. Possible values are: 'OWASP'. - * + * * @return the ruleSetType value. */ public String ruleSetType() { @@ -132,7 +133,7 @@ public String ruleSetType() { /** * Set the ruleSetType property: The type of the web application firewall rule set. Possible values are: 'OWASP'. - * + * * @param ruleSetType the ruleSetType value to set. * @return the ApplicationGatewayWebApplicationFirewallConfiguration object itself. */ @@ -143,7 +144,7 @@ public ApplicationGatewayWebApplicationFirewallConfiguration withRuleSetType(Str /** * Get the ruleSetVersion property: The version of the rule set type. - * + * * @return the ruleSetVersion value. */ public String ruleSetVersion() { @@ -152,7 +153,7 @@ public String ruleSetVersion() { /** * Set the ruleSetVersion property: The version of the rule set type. - * + * * @param ruleSetVersion the ruleSetVersion value to set. * @return the ApplicationGatewayWebApplicationFirewallConfiguration object itself. */ @@ -163,7 +164,7 @@ public ApplicationGatewayWebApplicationFirewallConfiguration withRuleSetVersion( /** * Get the disabledRuleGroups property: The disabled rule groups. - * + * * @return the disabledRuleGroups value. */ public List disabledRuleGroups() { @@ -172,7 +173,7 @@ public List disabledRuleGroups() { /** * Set the disabledRuleGroups property: The disabled rule groups. - * + * * @param disabledRuleGroups the disabledRuleGroups value to set. * @return the ApplicationGatewayWebApplicationFirewallConfiguration object itself. */ @@ -184,7 +185,7 @@ public List disabledRuleGroups() { /** * Get the requestBodyCheck property: Whether allow WAF to check request Body. - * + * * @return the requestBodyCheck value. */ public Boolean requestBodyCheck() { @@ -193,7 +194,7 @@ public Boolean requestBodyCheck() { /** * Set the requestBodyCheck property: Whether allow WAF to check request Body. - * + * * @param requestBodyCheck the requestBodyCheck value to set. * @return the ApplicationGatewayWebApplicationFirewallConfiguration object itself. */ @@ -204,7 +205,7 @@ public ApplicationGatewayWebApplicationFirewallConfiguration withRequestBodyChec /** * Get the maxRequestBodySize property: Maximum request body size for WAF. - * + * * @return the maxRequestBodySize value. */ public Integer maxRequestBodySize() { @@ -213,7 +214,7 @@ public Integer maxRequestBodySize() { /** * Set the maxRequestBodySize property: Maximum request body size for WAF. - * + * * @param maxRequestBodySize the maxRequestBodySize value to set. * @return the ApplicationGatewayWebApplicationFirewallConfiguration object itself. */ @@ -224,7 +225,7 @@ public ApplicationGatewayWebApplicationFirewallConfiguration withMaxRequestBodyS /** * Get the maxRequestBodySizeInKb property: Maximum request body size in Kb for WAF. - * + * * @return the maxRequestBodySizeInKb value. */ public Integer maxRequestBodySizeInKb() { @@ -233,7 +234,7 @@ public Integer maxRequestBodySizeInKb() { /** * Set the maxRequestBodySizeInKb property: Maximum request body size in Kb for WAF. - * + * * @param maxRequestBodySizeInKb the maxRequestBodySizeInKb value to set. * @return the ApplicationGatewayWebApplicationFirewallConfiguration object itself. */ @@ -245,7 +246,7 @@ public Integer maxRequestBodySizeInKb() { /** * Get the fileUploadLimitInMb property: Maximum file upload size in Mb for WAF. - * + * * @return the fileUploadLimitInMb value. */ public Integer fileUploadLimitInMb() { @@ -254,7 +255,7 @@ public Integer fileUploadLimitInMb() { /** * Set the fileUploadLimitInMb property: Maximum file upload size in Mb for WAF. - * + * * @param fileUploadLimitInMb the fileUploadLimitInMb value to set. * @return the ApplicationGatewayWebApplicationFirewallConfiguration object itself. */ @@ -265,7 +266,7 @@ public ApplicationGatewayWebApplicationFirewallConfiguration withFileUploadLimit /** * Get the exclusions property: The exclusion list. - * + * * @return the exclusions value. */ public List exclusions() { @@ -274,7 +275,7 @@ public List exclusions() { /** * Set the exclusions property: The exclusion list. - * + * * @param exclusions the exclusions value to set. * @return the ApplicationGatewayWebApplicationFirewallConfiguration object itself. */ @@ -286,21 +287,24 @@ public List exclusions() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (firewallMode() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property firewallMode in model ApplicationGatewayWebApplicationFirewallConfiguration")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property firewallMode in model ApplicationGatewayWebApplicationFirewallConfiguration")); } if (ruleSetType() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property ruleSetType in model ApplicationGatewayWebApplicationFirewallConfiguration")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property ruleSetType in model ApplicationGatewayWebApplicationFirewallConfiguration")); } if (ruleSetVersion() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property ruleSetVersion in model ApplicationGatewayWebApplicationFirewallConfiguration")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property ruleSetVersion in model ApplicationGatewayWebApplicationFirewallConfiguration")); } if (disabledRuleGroups() != null) { disabledRuleGroups().forEach(e -> e.validate()); diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationRule.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationRule.java index 678d270bd73b6..77afd7efe9c75 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationRule.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ApplicationRule.java @@ -6,17 +6,26 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeId; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; + import java.util.List; /** * Rule of type application. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "ruleType") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "ruleType", defaultImpl = ApplicationRule.class, visible = true) @JsonTypeName("ApplicationRule") @Fluent public final class ApplicationRule extends FirewallPolicyRule { + /* + * Rule Type. + */ + @JsonTypeId + @JsonProperty(value = "ruleType", required = true) + private FirewallPolicyRuleType ruleType = FirewallPolicyRuleType.APPLICATION_RULE; + /* * List of source IP addresses for this rule. */ @@ -83,9 +92,19 @@ public final class ApplicationRule extends FirewallPolicyRule { public ApplicationRule() { } + /** + * Get the ruleType property: Rule Type. + * + * @return the ruleType value. + */ + @Override + public FirewallPolicyRuleType ruleType() { + return this.ruleType; + } + /** * Get the sourceAddresses property: List of source IP addresses for this rule. - * + * * @return the sourceAddresses value. */ public List sourceAddresses() { @@ -94,7 +113,7 @@ public List sourceAddresses() { /** * Set the sourceAddresses property: List of source IP addresses for this rule. - * + * * @param sourceAddresses the sourceAddresses value to set. * @return the ApplicationRule object itself. */ @@ -105,7 +124,7 @@ public ApplicationRule withSourceAddresses(List sourceAddresses) { /** * Get the destinationAddresses property: List of destination IP addresses or Service Tags. - * + * * @return the destinationAddresses value. */ public List destinationAddresses() { @@ -114,7 +133,7 @@ public List destinationAddresses() { /** * Set the destinationAddresses property: List of destination IP addresses or Service Tags. - * + * * @param destinationAddresses the destinationAddresses value to set. * @return the ApplicationRule object itself. */ @@ -125,7 +144,7 @@ public ApplicationRule withDestinationAddresses(List destinationAddresse /** * Get the protocols property: Array of Application Protocols. - * + * * @return the protocols value. */ public List protocols() { @@ -134,7 +153,7 @@ public List protocols() { /** * Set the protocols property: Array of Application Protocols. - * + * * @param protocols the protocols value to set. * @return the ApplicationRule object itself. */ @@ -145,7 +164,7 @@ public ApplicationRule withProtocols(List /** * Get the targetFqdns property: List of FQDNs for this rule. - * + * * @return the targetFqdns value. */ public List targetFqdns() { @@ -154,7 +173,7 @@ public List targetFqdns() { /** * Set the targetFqdns property: List of FQDNs for this rule. - * + * * @param targetFqdns the targetFqdns value to set. * @return the ApplicationRule object itself. */ @@ -165,7 +184,7 @@ public ApplicationRule withTargetFqdns(List targetFqdns) { /** * Get the targetUrls property: List of Urls for this rule condition. - * + * * @return the targetUrls value. */ public List targetUrls() { @@ -174,7 +193,7 @@ public List targetUrls() { /** * Set the targetUrls property: List of Urls for this rule condition. - * + * * @param targetUrls the targetUrls value to set. * @return the ApplicationRule object itself. */ @@ -185,7 +204,7 @@ public ApplicationRule withTargetUrls(List targetUrls) { /** * Get the fqdnTags property: List of FQDN Tags for this rule. - * + * * @return the fqdnTags value. */ public List fqdnTags() { @@ -194,7 +213,7 @@ public List fqdnTags() { /** * Set the fqdnTags property: List of FQDN Tags for this rule. - * + * * @param fqdnTags the fqdnTags value to set. * @return the ApplicationRule object itself. */ @@ -205,7 +224,7 @@ public ApplicationRule withFqdnTags(List fqdnTags) { /** * Get the sourceIpGroups property: List of source IpGroups for this rule. - * + * * @return the sourceIpGroups value. */ public List sourceIpGroups() { @@ -214,7 +233,7 @@ public List sourceIpGroups() { /** * Set the sourceIpGroups property: List of source IpGroups for this rule. - * + * * @param sourceIpGroups the sourceIpGroups value to set. * @return the ApplicationRule object itself. */ @@ -225,7 +244,7 @@ public ApplicationRule withSourceIpGroups(List sourceIpGroups) { /** * Get the terminateTls property: Terminate TLS connections for this rule. - * + * * @return the terminateTls value. */ public Boolean terminateTls() { @@ -234,7 +253,7 @@ public Boolean terminateTls() { /** * Set the terminateTls property: Terminate TLS connections for this rule. - * + * * @param terminateTls the terminateTls value to set. * @return the ApplicationRule object itself. */ @@ -245,7 +264,7 @@ public ApplicationRule withTerminateTls(Boolean terminateTls) { /** * Get the webCategories property: List of destination azure web categories. - * + * * @return the webCategories value. */ public List webCategories() { @@ -254,7 +273,7 @@ public List webCategories() { /** * Set the webCategories property: List of destination azure web categories. - * + * * @param webCategories the webCategories value to set. * @return the ApplicationRule object itself. */ @@ -265,7 +284,7 @@ public ApplicationRule withWebCategories(List webCategories) { /** * Get the httpHeadersToInsert property: List of HTTP/S headers to insert. - * + * * @return the httpHeadersToInsert value. */ public List httpHeadersToInsert() { @@ -274,7 +293,7 @@ public List httpHeadersToInsert() { /** * Set the httpHeadersToInsert property: List of HTTP/S headers to insert. - * + * * @param httpHeadersToInsert the httpHeadersToInsert value to set. * @return the ApplicationRule object itself. */ @@ -303,7 +322,7 @@ public ApplicationRule withDescription(String description) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AuthorizationListResult.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AuthorizationListResult.java index e1e546fc5b49a..1fa07fbdc4d7d 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AuthorizationListResult.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/AuthorizationListResult.java @@ -7,11 +7,11 @@ import com.azure.core.annotation.Fluent; import com.azure.resourcemanager.network.fluent.models.ExpressRouteCircuitAuthorizationInner; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** - * Response for ListAuthorizations API service call retrieves all authorizations that belongs to an - * ExpressRouteCircuit. + * Response for ListAuthorizations API service call retrieves all authorizations that belongs to an ExpressRouteCircuit. */ @Fluent public final class AuthorizationListResult { @@ -35,7 +35,7 @@ public AuthorizationListResult() { /** * Get the value property: The authorizations in an ExpressRoute Circuit. - * + * * @return the value value. */ public List value() { @@ -44,7 +44,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. */ @@ -55,7 +55,7 @@ public AuthorizationListResult withValue(List providers() { @@ -82,7 +83,7 @@ public List providers() { /** * Set the providers property: List of Internet service providers. - * + * * @param providers the providers value to set. * @return the AzureReachabilityReportParameters object itself. */ @@ -93,7 +94,7 @@ public AzureReachabilityReportParameters withProviders(List providers) { /** * Get the azureLocations property: Optional Azure regions to scope the query to. - * + * * @return the azureLocations value. */ public List azureLocations() { @@ -102,7 +103,7 @@ public List azureLocations() { /** * Set the azureLocations property: Optional Azure regions to scope the query to. - * + * * @param azureLocations the azureLocations value to set. * @return the AzureReachabilityReportParameters object itself. */ @@ -113,7 +114,7 @@ public AzureReachabilityReportParameters withAzureLocations(List azureLo /** * Get the startTime property: The start time for the Azure reachability report. - * + * * @return the startTime value. */ public OffsetDateTime startTime() { @@ -122,7 +123,7 @@ public OffsetDateTime startTime() { /** * Set the startTime property: The start time for the Azure reachability report. - * + * * @param startTime the startTime value to set. * @return the AzureReachabilityReportParameters object itself. */ @@ -133,7 +134,7 @@ public AzureReachabilityReportParameters withStartTime(OffsetDateTime startTime) /** * Get the endTime property: The end time for the Azure reachability report. - * + * * @return the endTime value. */ public OffsetDateTime endTime() { @@ -142,7 +143,7 @@ public OffsetDateTime endTime() { /** * Set the endTime property: The end time for the Azure reachability report. - * + * * @param endTime the endTime value to set. * @return the AzureReachabilityReportParameters object itself. */ @@ -153,23 +154,26 @@ public AzureReachabilityReportParameters withEndTime(OffsetDateTime endTime) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (providerLocation() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property providerLocation in model AzureReachabilityReportParameters")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property providerLocation in model AzureReachabilityReportParameters")); } else { providerLocation().validate(); } if (startTime() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property startTime in model AzureReachabilityReportParameters")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property startTime in model AzureReachabilityReportParameters")); } if (endTime() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property endTime in model AzureReachabilityReportParameters")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property endTime in model AzureReachabilityReportParameters")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BgpCommunity.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BgpCommunity.java index fbfbe5439e18b..bdb6e4dce4dfb 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BgpCommunity.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/BgpCommunity.java @@ -6,6 +6,7 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -26,8 +27,7 @@ public final class BgpCommunity { private String communityName; /* - * The value of the bgp community. For more information: - * https://docs.microsoft.com/en-us/azure/expressroute/expressroute-routing. + * The value of the bgp community. For more information: https://docs.microsoft.com/en-us/azure/expressroute/expressroute-routing. */ @JsonProperty(value = "communityValue") private String communityValue; @@ -58,7 +58,7 @@ public BgpCommunity() { /** * Get the serviceSupportedRegion property: The region which the service support. e.g. For O365, region is Global. - * + * * @return the serviceSupportedRegion value. */ public String serviceSupportedRegion() { @@ -67,7 +67,7 @@ public String 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. */ @@ -78,7 +78,7 @@ public BgpCommunity withServiceSupportedRegion(String serviceSupportedRegion) { /** * Get the communityName property: The name of the bgp community. e.g. Skype. - * + * * @return the communityName value. */ public String communityName() { @@ -87,7 +87,7 @@ public String 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. */ @@ -99,7 +99,7 @@ public BgpCommunity withCommunityName(String communityName) { /** * Get the communityValue property: The value of the bgp community. For more information: * https://docs.microsoft.com/en-us/azure/expressroute/expressroute-routing. - * + * * @return the communityValue value. */ public String communityValue() { @@ -109,7 +109,7 @@ public String 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. */ @@ -120,7 +120,7 @@ public BgpCommunity withCommunityValue(String communityValue) { /** * Get the communityPrefixes property: The prefixes that the bgp community contains. - * + * * @return the communityPrefixes value. */ public List communityPrefixes() { @@ -129,7 +129,7 @@ public List communityPrefixes() { /** * Set the communityPrefixes property: The prefixes that the bgp community contains. - * + * * @param communityPrefixes the communityPrefixes value to set. * @return the BgpCommunity object itself. */ @@ -140,7 +140,7 @@ public BgpCommunity withCommunityPrefixes(List communityPrefixes) { /** * Get the isAuthorizedToUse property: Customer is authorized to use bgp community or not. - * + * * @return the isAuthorizedToUse value. */ public Boolean isAuthorizedToUse() { @@ -149,7 +149,7 @@ public Boolean 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. */ @@ -160,7 +160,7 @@ public BgpCommunity withIsAuthorizedToUse(Boolean isAuthorizedToUse) { /** * Get the serviceGroup property: The service group of the bgp community contains. - * + * * @return the serviceGroup value. */ public String serviceGroup() { @@ -169,7 +169,7 @@ public String 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. */ @@ -180,7 +180,7 @@ public BgpCommunity withServiceGroup(String serviceGroup) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpoint.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpoint.java index 6ea6e81603255..c668fab259dcb 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpoint.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpoint.java @@ -26,25 +26,25 @@ public final class ConnectionMonitorEndpoint { private EndpointType type; /* - * Resource ID of the connection monitor endpoint. + * Resource ID of the connection monitor endpoint are supported for AzureVM, AzureVMSS, AzureVNet, AzureSubnet, MMAWorkspaceMachine, MMAWorkspaceNetwork, AzureArcVM endpoint type. */ @JsonProperty(value = "resourceId") private String resourceId; /* - * Address of the connection monitor endpoint (IP or domain name). + * Address of the connection monitor endpoint. Supported for AzureVM, ExternalAddress, ArcMachine, MMAWorkspaceMachine endpoint type. */ @JsonProperty(value = "address") private String address; /* - * Filter for sub-items within the endpoint. + * Filter field is getting deprecated and should not be used. Instead use Include/Exclude scope fields for it. */ @JsonProperty(value = "filter") private ConnectionMonitorEndpointFilter filter; /* - * Endpoint scope. + * Endpoint scope defines which target resource to monitor in case of compound resource endpoints like VMSS, AzureSubnet, AzureVNet, MMAWorkspaceNetwork, AzureArcNetwork. */ @JsonProperty(value = "scope") private ConnectionMonitorEndpointScope scope; @@ -55,6 +55,18 @@ public final class ConnectionMonitorEndpoint { @JsonProperty(value = "coverageLevel") private CoverageLevel coverageLevel; + /* + * Location details is optional and only being used for 'AzureArcNetwork' type endpoints, which contains region details. + */ + @JsonProperty(value = "locationDetails") + private ConnectionMonitorEndpointLocationDetails locationDetails; + + /* + * Subscription ID for connection monitor endpoint. It's an optional parameter which is being used for 'AzureArcNetwork' type endpoint. + */ + @JsonProperty(value = "subscriptionId") + private String subscriptionId; + /** * Creates an instance of ConnectionMonitorEndpoint class. */ @@ -102,7 +114,8 @@ public ConnectionMonitorEndpoint withType(EndpointType type) { } /** - * Get the resourceId property: Resource ID of the connection monitor endpoint. + * Get the resourceId property: Resource ID of the connection monitor endpoint are supported for AzureVM, AzureVMSS, + * AzureVNet, AzureSubnet, MMAWorkspaceMachine, MMAWorkspaceNetwork, AzureArcVM endpoint type. * * @return the resourceId value. */ @@ -111,7 +124,8 @@ public String resourceId() { } /** - * Set the resourceId property: Resource ID of the connection monitor endpoint. + * Set the resourceId property: Resource ID of the connection monitor endpoint are supported for AzureVM, AzureVMSS, + * AzureVNet, AzureSubnet, MMAWorkspaceMachine, MMAWorkspaceNetwork, AzureArcVM endpoint type. * * @param resourceId the resourceId value to set. * @return the ConnectionMonitorEndpoint object itself. @@ -122,7 +136,8 @@ public ConnectionMonitorEndpoint withResourceId(String resourceId) { } /** - * Get the address property: Address of the connection monitor endpoint (IP or domain name). + * Get the address property: Address of the connection monitor endpoint. Supported for AzureVM, ExternalAddress, + * ArcMachine, MMAWorkspaceMachine endpoint type. * * @return the address value. */ @@ -131,7 +146,8 @@ public String address() { } /** - * Set the address property: Address of the connection monitor endpoint (IP or domain name). + * Set the address property: Address of the connection monitor endpoint. Supported for AzureVM, ExternalAddress, + * ArcMachine, MMAWorkspaceMachine endpoint type. * * @param address the address value to set. * @return the ConnectionMonitorEndpoint object itself. @@ -142,7 +158,8 @@ public ConnectionMonitorEndpoint withAddress(String address) { } /** - * Get the filter property: Filter for sub-items within the endpoint. + * Get the filter property: Filter field is getting deprecated and should not be used. Instead use Include/Exclude + * scope fields for it. * * @return the filter value. */ @@ -151,7 +168,8 @@ public ConnectionMonitorEndpointFilter filter() { } /** - * Set the filter property: Filter for sub-items within the endpoint. + * Set the filter property: Filter field is getting deprecated and should not be used. Instead use Include/Exclude + * scope fields for it. * * @param filter the filter value to set. * @return the ConnectionMonitorEndpoint object itself. @@ -162,7 +180,8 @@ public ConnectionMonitorEndpoint withFilter(ConnectionMonitorEndpointFilter filt } /** - * Get the scope property: Endpoint scope. + * Get the scope property: Endpoint scope defines which target resource to monitor in case of compound resource + * endpoints like VMSS, AzureSubnet, AzureVNet, MMAWorkspaceNetwork, AzureArcNetwork. * * @return the scope value. */ @@ -171,7 +190,8 @@ public ConnectionMonitorEndpointScope scope() { } /** - * Set the scope property: Endpoint scope. + * Set the scope property: Endpoint scope defines which target resource to monitor in case of compound resource + * endpoints like VMSS, AzureSubnet, AzureVNet, MMAWorkspaceNetwork, AzureArcNetwork. * * @param scope the scope value to set. * @return the ConnectionMonitorEndpoint object itself. @@ -201,6 +221,50 @@ public ConnectionMonitorEndpoint withCoverageLevel(CoverageLevel coverageLevel) return this; } + /** + * Get the locationDetails property: Location details is optional and only being used for 'AzureArcNetwork' type + * endpoints, which contains region details. + * + * @return the locationDetails value. + */ + public ConnectionMonitorEndpointLocationDetails locationDetails() { + return this.locationDetails; + } + + /** + * Set the locationDetails property: Location details is optional and only being used for 'AzureArcNetwork' type + * endpoints, which contains region details. + * + * @param locationDetails the locationDetails value to set. + * @return the ConnectionMonitorEndpoint object itself. + */ + public ConnectionMonitorEndpoint withLocationDetails(ConnectionMonitorEndpointLocationDetails locationDetails) { + this.locationDetails = locationDetails; + return this; + } + + /** + * Get the subscriptionId property: Subscription ID for connection monitor endpoint. It's an optional parameter + * which is being used for 'AzureArcNetwork' type endpoint. + * + * @return the subscriptionId value. + */ + public String subscriptionId() { + return this.subscriptionId; + } + + /** + * Set the subscriptionId property: Subscription ID for connection monitor endpoint. It's an optional parameter + * which is being used for 'AzureArcNetwork' type endpoint. + * + * @param subscriptionId the subscriptionId value to set. + * @return the ConnectionMonitorEndpoint object itself. + */ + public ConnectionMonitorEndpoint withSubscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + return this; + } + /** * Validates the instance. * @@ -208,8 +272,8 @@ public ConnectionMonitorEndpoint withCoverageLevel(CoverageLevel coverageLevel) */ public void validate() { if (name() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property name in model ConnectionMonitorEndpoint")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property name in model ConnectionMonitorEndpoint")); } if (filter() != null) { filter().validate(); @@ -217,6 +281,9 @@ public void validate() { if (scope() != null) { scope().validate(); } + if (locationDetails() != null) { + locationDetails().validate(); + } } private static final ClientLogger LOGGER = new ClientLogger(ConnectionMonitorEndpoint.class); diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointLocationDetails.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointLocationDetails.java new file mode 100644 index 0000000000000..a3d6b1b0dc91e --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorEndpointLocationDetails.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.network.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Connection monitor endpoint location details only being used for 'AzureArcNetwork' type endpoints, which contains the + * region details. + */ +@Fluent +public final class ConnectionMonitorEndpointLocationDetails { + /* + * Region for connection monitor endpoint. + */ + @JsonProperty(value = "region") + private String region; + + /** + * Creates an instance of ConnectionMonitorEndpointLocationDetails class. + */ + public ConnectionMonitorEndpointLocationDetails() { + } + + /** + * Get the region property: Region for connection monitor endpoint. + * + * @return the region value. + */ + public String region() { + return this.region; + } + + /** + * Set the region property: Region for connection monitor endpoint. + * + * @param region the region value to set. + * @return the ConnectionMonitorEndpointLocationDetails object itself. + */ + public ConnectionMonitorEndpointLocationDetails withRegion(String region) { + this.region = region; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorIcmpConfiguration.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorIcmpConfiguration.java index d7f5aef676dab..790b34fe934d9 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorIcmpConfiguration.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorIcmpConfiguration.java @@ -25,8 +25,7 @@ public ConnectionMonitorIcmpConfiguration() { } /** - * Get the disableTraceRoute property: Value indicating whether path evaluation with trace route should be - * disabled. + * Get the disableTraceRoute property: Value indicating whether path evaluation with trace route should be disabled. * * @return the disableTraceRoute value. */ @@ -35,8 +34,7 @@ public Boolean disableTraceRoute() { } /** - * Set the disableTraceRoute property: Value indicating whether path evaluation with trace route should be - * disabled. + * Set the disableTraceRoute property: Value indicating whether path evaluation with trace route should be disabled. * * @param disableTraceRoute the disableTraceRoute value to set. * @return the ConnectionMonitorIcmpConfiguration object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorSource.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorSource.java index 47a31c787a7a1..66cea9e76bbdf 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorSource.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorSource.java @@ -78,8 +78,9 @@ public ConnectionMonitorSource withPort(Integer port) { */ public void validate() { if (resourceId() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property resourceId in model ConnectionMonitorSource")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property resourceId in model ConnectionMonitorSource")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorSuccessThreshold.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorSuccessThreshold.java index 4909986d379db..3fa911b678590 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorSuccessThreshold.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorSuccessThreshold.java @@ -31,8 +31,8 @@ public ConnectionMonitorSuccessThreshold() { } /** - * Get the checksFailedPercent property: The maximum percentage of failed checks permitted for a test to evaluate - * as successful. + * Get the checksFailedPercent property: The maximum percentage of failed checks permitted for a test to evaluate as + * successful. * * @return the checksFailedPercent value. */ @@ -41,8 +41,8 @@ public Integer checksFailedPercent() { } /** - * Set the checksFailedPercent property: The maximum percentage of failed checks permitted for a test to evaluate - * as successful. + * Set the checksFailedPercent property: The maximum percentage of failed checks permitted for a test to evaluate as + * successful. * * @param checksFailedPercent the checksFailedPercent value to set. * @return the ConnectionMonitorSuccessThreshold object itself. @@ -53,8 +53,8 @@ public ConnectionMonitorSuccessThreshold withChecksFailedPercent(Integer checksF } /** - * Get the roundTripTimeMs property: The maximum round-trip time in milliseconds permitted for a test to evaluate - * as successful. + * Get the roundTripTimeMs property: The maximum round-trip time in milliseconds permitted for a test to evaluate as + * successful. * * @return the roundTripTimeMs value. */ @@ -63,8 +63,8 @@ public Float roundTripTimeMs() { } /** - * Set the roundTripTimeMs property: The maximum round-trip time in milliseconds permitted for a test to evaluate - * as successful. + * Set the roundTripTimeMs property: The maximum round-trip time in milliseconds permitted for a test to evaluate as + * successful. * * @param roundTripTimeMs the roundTripTimeMs value to set. * @return the ConnectionMonitorSuccessThreshold object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorTcpConfiguration.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorTcpConfiguration.java index d137d9454efda..49ce50d077eea 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorTcpConfiguration.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorTcpConfiguration.java @@ -57,8 +57,7 @@ public ConnectionMonitorTcpConfiguration withPort(Integer port) { } /** - * Get the disableTraceRoute property: Value indicating whether path evaluation with trace route should be - * disabled. + * Get the disableTraceRoute property: Value indicating whether path evaluation with trace route should be disabled. * * @return the disableTraceRoute value. */ @@ -67,8 +66,7 @@ public Boolean disableTraceRoute() { } /** - * Set the disableTraceRoute property: Value indicating whether path evaluation with trace route should be - * disabled. + * Set the disableTraceRoute property: Value indicating whether path evaluation with trace route should be disabled. * * @param disableTraceRoute the disableTraceRoute value to set. * @return the ConnectionMonitorTcpConfiguration object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorTestConfiguration.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorTestConfiguration.java index 2351105a3e5cd..b96523605570b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorTestConfiguration.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorTestConfiguration.java @@ -32,8 +32,7 @@ public final class ConnectionMonitorTestConfiguration { private ConnectionMonitorTestConfigurationProtocol protocol; /* - * The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version - * depending on other parameters. + * The preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters. */ @JsonProperty(value = "preferredIPVersion") private PreferredIpVersion preferredIpVersion; @@ -239,12 +238,14 @@ public ConnectionMonitorTestConfiguration withSuccessThreshold(ConnectionMonitor */ public void validate() { if (name() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property name in model ConnectionMonitorTestConfiguration")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property name in model ConnectionMonitorTestConfiguration")); } if (protocol() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property protocol in model ConnectionMonitorTestConfiguration")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property protocol in model ConnectionMonitorTestConfiguration")); } if (httpConfiguration() != null) { httpConfiguration().validate(); diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorTestGroup.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorTestGroup.java index ddc9d88998afa..5a2395795cd57 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorTestGroup.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectionMonitorTestGroup.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -52,7 +53,7 @@ public ConnectionMonitorTestGroup() { /** * Get the name property: The name of the connection monitor test group. - * + * * @return the name value. */ public String name() { @@ -61,7 +62,7 @@ public String name() { /** * Set the name property: The name of the connection monitor test group. - * + * * @param name the name value to set. * @return the ConnectionMonitorTestGroup object itself. */ @@ -72,7 +73,7 @@ public ConnectionMonitorTestGroup withName(String name) { /** * Get the disable property: Value indicating whether test group is disabled. - * + * * @return the disable value. */ public Boolean disable() { @@ -81,7 +82,7 @@ public Boolean disable() { /** * Set the disable property: Value indicating whether test group is disabled. - * + * * @param disable the disable value to set. * @return the ConnectionMonitorTestGroup object itself. */ @@ -92,7 +93,7 @@ public ConnectionMonitorTestGroup withDisable(Boolean disable) { /** * Get the testConfigurations property: List of test configuration names. - * + * * @return the testConfigurations value. */ public List testConfigurations() { @@ -101,7 +102,7 @@ public List testConfigurations() { /** * Set the testConfigurations property: List of test configuration names. - * + * * @param testConfigurations the testConfigurations value to set. * @return the ConnectionMonitorTestGroup object itself. */ @@ -112,7 +113,7 @@ public ConnectionMonitorTestGroup withTestConfigurations(List testConfig /** * Get the sources property: List of source endpoint names. - * + * * @return the sources value. */ public List sources() { @@ -121,7 +122,7 @@ public List sources() { /** * Set the sources property: List of source endpoint names. - * + * * @param sources the sources value to set. * @return the ConnectionMonitorTestGroup object itself. */ @@ -132,7 +133,7 @@ public ConnectionMonitorTestGroup withSources(List sources) { /** * Get the destinations property: List of destination endpoint names. - * + * * @return the destinations value. */ public List destinations() { @@ -141,7 +142,7 @@ public List destinations() { /** * Set the destinations property: List of destination endpoint names. - * + * * @param destinations the destinations value to set. * @return the ConnectionMonitorTestGroup object itself. */ @@ -152,25 +153,29 @@ public ConnectionMonitorTestGroup withDestinations(List destinations) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (name() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property name in model ConnectionMonitorTestGroup")); + throw LOGGER.atError() + .log( + new IllegalArgumentException("Missing required property name in model ConnectionMonitorTestGroup")); } if (testConfigurations() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property testConfigurations in model ConnectionMonitorTestGroup")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property testConfigurations in model ConnectionMonitorTestGroup")); } if (sources() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property sources in model ConnectionMonitorTestGroup")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property sources in model ConnectionMonitorTestGroup")); } if (destinations() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property destinations in model ConnectionMonitorTestGroup")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property destinations in model ConnectionMonitorTestGroup")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectivityConfigurationListResult.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectivityConfigurationListResult.java index cc55066012a89..ae2530087ef42 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectivityConfigurationListResult.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ConnectivityConfigurationListResult.java @@ -7,11 +7,12 @@ import com.azure.core.annotation.Fluent; import com.azure.resourcemanager.network.fluent.models.ConnectivityConfigurationInner; import com.fasterxml.jackson.annotation.JsonProperty; + 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. + * 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. */ @Fluent public final class ConnectivityConfigurationListResult { @@ -35,7 +36,7 @@ public ConnectivityConfigurationListResult() { /** * Get the value property: Gets a page of Connectivity Configurations. - * + * * @return the value value. */ public List value() { @@ -44,7 +45,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. */ @@ -55,7 +56,7 @@ public ConnectivityConfigurationListResult withValue(List sources() { @@ -92,7 +111,7 @@ public List sources() { /** * Get the destinations property: The destination address prefixes. CIDR or destination IP ranges. - * + * * @return the destinations value. */ public List destinations() { @@ -101,7 +120,7 @@ public List destinations() { /** * Get the sourcePortRanges property: The source port ranges. - * + * * @return the sourcePortRanges value. */ public List sourcePortRanges() { @@ -110,7 +129,7 @@ public List sourcePortRanges() { /** * Get the destinationPortRanges property: The destination port ranges. - * + * * @return the destinationPortRanges value. */ public List destinationPortRanges() { @@ -119,7 +138,7 @@ public List destinationPortRanges() { /** * Get the access property: Indicates the access allowed for this particular rule. - * + * * @return the access value. */ public SecurityConfigurationRuleAccess access() { @@ -130,7 +149,7 @@ public SecurityConfigurationRuleAccess access() { * 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 * rule. - * + * * @return the priority value. */ public Integer priority() { @@ -139,7 +158,7 @@ public Integer priority() { /** * Get the direction property: Indicates if the traffic matched against the rule in inbound or outbound. - * + * * @return the direction value. */ public SecurityConfigurationRuleDirection direction() { @@ -148,7 +167,7 @@ public SecurityConfigurationRuleDirection direction() { /** * Get the provisioningState property: The provisioning state of the resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -157,7 +176,7 @@ public ProvisioningState provisioningState() { /** * Get the resourceGuid property: Unique identifier for this resource. - * + * * @return the resourceGuid value. */ public String resourceGuid() { @@ -166,7 +185,7 @@ public String resourceGuid() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveBaseSecurityAdminRule.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveBaseSecurityAdminRule.java index 9f4239ea17262..dfc563e802ec9 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveBaseSecurityAdminRule.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveBaseSecurityAdminRule.java @@ -7,8 +7,10 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeId; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; + import java.util.List; /** @@ -16,15 +18,22 @@ */ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, property = "kind", - defaultImpl = EffectiveBaseSecurityAdminRule.class) + defaultImpl = EffectiveBaseSecurityAdminRule.class, + visible = true) @JsonTypeName("EffectiveBaseSecurityAdminRule") @JsonSubTypes({ @JsonSubTypes.Type(name = "Custom", value = EffectiveSecurityAdminRule.class), @JsonSubTypes.Type(name = "Default", value = EffectiveDefaultSecurityAdminRule.class) }) @Fluent public class EffectiveBaseSecurityAdminRule { + /* + * Whether the rule is custom or default. + */ + @JsonTypeId + @JsonProperty(value = "kind", required = true) + private EffectiveAdminRuleKind kind; + /* * Resource ID. */ @@ -59,11 +68,21 @@ public class EffectiveBaseSecurityAdminRule { * Creates an instance of EffectiveBaseSecurityAdminRule class. */ public EffectiveBaseSecurityAdminRule() { + this.kind = EffectiveAdminRuleKind.fromString("EffectiveBaseSecurityAdminRule"); + } + + /** + * Get the kind property: Whether the rule is custom or default. + * + * @return the kind value. + */ + public EffectiveAdminRuleKind kind() { + return this.kind; } /** * Get the id property: Resource ID. - * + * * @return the id value. */ public String id() { @@ -72,7 +91,7 @@ public String id() { /** * Set the id property: Resource ID. - * + * * @param id the id value to set. * @return the EffectiveBaseSecurityAdminRule object itself. */ @@ -83,7 +102,7 @@ public EffectiveBaseSecurityAdminRule withId(String id) { /** * Get the configurationDescription property: A description of the security admin configuration. - * + * * @return the configurationDescription value. */ public String configurationDescription() { @@ -92,7 +111,7 @@ public String configurationDescription() { /** * Set the configurationDescription property: A description of the security admin configuration. - * + * * @param configurationDescription the configurationDescription value to set. * @return the EffectiveBaseSecurityAdminRule object itself. */ @@ -103,7 +122,7 @@ public EffectiveBaseSecurityAdminRule withConfigurationDescription(String config /** * Get the ruleCollectionDescription property: A description of the rule collection. - * + * * @return the ruleCollectionDescription value. */ public String ruleCollectionDescription() { @@ -112,7 +131,7 @@ public String ruleCollectionDescription() { /** * Set the ruleCollectionDescription property: A description of the rule collection. - * + * * @param ruleCollectionDescription the ruleCollectionDescription value to set. * @return the EffectiveBaseSecurityAdminRule object itself. */ @@ -123,7 +142,7 @@ public EffectiveBaseSecurityAdminRule withRuleCollectionDescription(String ruleC /** * Get the ruleCollectionAppliesToGroups property: Groups for rule collection. - * + * * @return the ruleCollectionAppliesToGroups value. */ public List ruleCollectionAppliesToGroups() { @@ -132,7 +151,7 @@ public List ruleCollectionAppliesToGroups() { /** * Set the ruleCollectionAppliesToGroups property: Groups for rule collection. - * + * * @param ruleCollectionAppliesToGroups the ruleCollectionAppliesToGroups value to set. * @return the EffectiveBaseSecurityAdminRule object itself. */ @@ -144,7 +163,7 @@ public List ruleCollectionAppliesToGroups() { /** * Get the ruleGroups property: Effective configuration groups. - * + * * @return the ruleGroups value. */ public List ruleGroups() { @@ -153,7 +172,7 @@ public List ruleGroups() { /** * Set the ruleGroups property: Effective configuration groups. - * + * * @param ruleGroups the ruleGroups value to set. * @return the EffectiveBaseSecurityAdminRule object itself. */ @@ -164,7 +183,7 @@ public EffectiveBaseSecurityAdminRule withRuleGroups(List ru /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveDefaultSecurityAdminRule.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveDefaultSecurityAdminRule.java index 39088f41009c2..3176c682b6569 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveDefaultSecurityAdminRule.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveDefaultSecurityAdminRule.java @@ -7,17 +7,30 @@ import com.azure.core.annotation.Fluent; import com.azure.resourcemanager.network.fluent.models.DefaultAdminPropertiesFormat; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeId; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; + import java.util.List; /** * Network default admin rule. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind") +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + property = "kind", + defaultImpl = EffectiveDefaultSecurityAdminRule.class, + visible = true) @JsonTypeName("Default") @Fluent public final class EffectiveDefaultSecurityAdminRule extends EffectiveBaseSecurityAdminRule { + /* + * Whether the rule is custom or default. + */ + @JsonTypeId + @JsonProperty(value = "kind", required = true) + private EffectiveAdminRuleKind kind = EffectiveAdminRuleKind.DEFAULT; + /* * Indicates the properties of the default security admin rule */ @@ -30,9 +43,19 @@ public final class EffectiveDefaultSecurityAdminRule extends EffectiveBaseSecuri public EffectiveDefaultSecurityAdminRule() { } + /** + * Get the kind property: Whether the rule is custom or default. + * + * @return the kind value. + */ + @Override + public EffectiveAdminRuleKind kind() { + return this.kind; + } + /** * Get the innerProperties property: Indicates the properties of the default security admin rule. - * + * * @return the innerProperties value. */ private DefaultAdminPropertiesFormat innerProperties() { @@ -87,7 +110,7 @@ public EffectiveDefaultSecurityAdminRule withRuleGroups(List /** * Get the description property: A description for this rule. Restricted to 140 chars. - * + * * @return the description value. */ public String description() { @@ -96,7 +119,7 @@ public String description() { /** * Get the flag property: Default rule flag. - * + * * @return the flag value. */ public String flag() { @@ -105,7 +128,7 @@ public String flag() { /** * Set the flag property: Default rule flag. - * + * * @param flag the flag value to set. * @return the EffectiveDefaultSecurityAdminRule object itself. */ @@ -119,7 +142,7 @@ public EffectiveDefaultSecurityAdminRule withFlag(String flag) { /** * Get the protocol property: Network protocol this rule applies to. - * + * * @return the protocol value. */ public SecurityConfigurationRuleProtocol protocol() { @@ -128,7 +151,7 @@ public SecurityConfigurationRuleProtocol protocol() { /** * Get the sources property: The CIDR or source IP ranges. - * + * * @return the sources value. */ public List sources() { @@ -137,7 +160,7 @@ public List sources() { /** * Get the destinations property: The destination address prefixes. CIDR or destination IP ranges. - * + * * @return the destinations value. */ public List destinations() { @@ -146,7 +169,7 @@ public List destinations() { /** * Get the sourcePortRanges property: The source port ranges. - * + * * @return the sourcePortRanges value. */ public List sourcePortRanges() { @@ -155,7 +178,7 @@ public List sourcePortRanges() { /** * Get the destinationPortRanges property: The destination port ranges. - * + * * @return the destinationPortRanges value. */ public List destinationPortRanges() { @@ -164,7 +187,7 @@ public List destinationPortRanges() { /** * Get the access property: Indicates the access allowed for this particular rule. - * + * * @return the access value. */ public SecurityConfigurationRuleAccess access() { @@ -175,7 +198,7 @@ public SecurityConfigurationRuleAccess access() { * 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 * rule. - * + * * @return the priority value. */ public Integer priority() { @@ -184,7 +207,7 @@ public Integer priority() { /** * Get the direction property: Indicates if the traffic matched against the rule in inbound or outbound. - * + * * @return the direction value. */ public SecurityConfigurationRuleDirection direction() { @@ -193,7 +216,7 @@ public SecurityConfigurationRuleDirection direction() { /** * Get the provisioningState property: The provisioning state of the resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -202,7 +225,7 @@ public ProvisioningState provisioningState() { /** * Get the resourceGuid property: Unique identifier for this resource. - * + * * @return the resourceGuid value. */ public String resourceGuid() { @@ -211,7 +234,7 @@ public String resourceGuid() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveNetworkSecurityRule.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveNetworkSecurityRule.java index e7a9ca91bd202..b7efc8d91f7dc 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveNetworkSecurityRule.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveNetworkSecurityRule.java @@ -6,6 +6,7 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -38,15 +39,13 @@ public final class EffectiveNetworkSecurityRule { private String destinationPortRange; /* - * 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 (*). + * 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 (*). */ @JsonProperty(value = "sourcePortRanges") private List sourcePortRanges; /* - * 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 (*). + * 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 (*). */ @JsonProperty(value = "destinationPortRanges") private List destinationPortRanges; @@ -64,15 +63,13 @@ public final class EffectiveNetworkSecurityRule { private String destinationAddressPrefix; /* - * The source address prefixes. Expected values include CIDR IP ranges, Default Tags (VirtualNetwork, - * AzureLoadBalancer, Internet), System Tags, and the asterisk (*). + * The source address prefixes. Expected values include CIDR IP ranges, Default Tags (VirtualNetwork, AzureLoadBalancer, Internet), System Tags, and the asterisk (*). */ @JsonProperty(value = "sourceAddressPrefixes") private List sourceAddressPrefixes; /* - * The destination address prefixes. Expected values include CIDR IP ranges, Default Tags (VirtualNetwork, - * AzureLoadBalancer, Internet), System Tags, and the asterisk (*). + * The destination address prefixes. Expected values include CIDR IP ranges, Default Tags (VirtualNetwork, AzureLoadBalancer, Internet), System Tags, and the asterisk (*). */ @JsonProperty(value = "destinationAddressPrefixes") private List destinationAddressPrefixes; @@ -115,7 +112,7 @@ public EffectiveNetworkSecurityRule() { /** * Get the name property: The name of the security rule specified by the user (if created by the user). - * + * * @return the name value. */ public String name() { @@ -124,7 +121,7 @@ public String name() { /** * Set the name property: The name of the security rule specified by the user (if created by the user). - * + * * @param name the name value to set. * @return the EffectiveNetworkSecurityRule object itself. */ @@ -135,7 +132,7 @@ public EffectiveNetworkSecurityRule withName(String name) { /** * Get the protocol property: The network protocol this rule applies to. - * + * * @return the protocol value. */ public EffectiveSecurityRuleProtocol protocol() { @@ -144,7 +141,7 @@ public EffectiveSecurityRuleProtocol protocol() { /** * Set the protocol property: The network protocol this rule applies to. - * + * * @param protocol the protocol value to set. * @return the EffectiveNetworkSecurityRule object itself. */ @@ -155,7 +152,7 @@ public EffectiveNetworkSecurityRule withProtocol(EffectiveSecurityRuleProtocol p /** * Get the sourcePortRange property: The source port or range. - * + * * @return the sourcePortRange value. */ public String sourcePortRange() { @@ -164,7 +161,7 @@ public String sourcePortRange() { /** * Set the sourcePortRange property: The source port or range. - * + * * @param sourcePortRange the sourcePortRange value to set. * @return the EffectiveNetworkSecurityRule object itself. */ @@ -175,7 +172,7 @@ public EffectiveNetworkSecurityRule withSourcePortRange(String sourcePortRange) /** * Get the destinationPortRange property: The destination port or range. - * + * * @return the destinationPortRange value. */ public String destinationPortRange() { @@ -184,7 +181,7 @@ public String destinationPortRange() { /** * Set the destinationPortRange property: The destination port or range. - * + * * @param destinationPortRange the destinationPortRange value to set. * @return the EffectiveNetworkSecurityRule object itself. */ @@ -194,9 +191,9 @@ public EffectiveNetworkSecurityRule withDestinationPortRange(String destinationP } /** - * Get 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 (*). - * + * Get 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 (*). + * * @return the sourcePortRanges value. */ public List sourcePortRanges() { @@ -204,9 +201,9 @@ public List 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 (*). - * + * 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. */ @@ -218,7 +215,7 @@ public EffectiveNetworkSecurityRule withSourcePortRanges(List sourcePort /** * 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 (*). - * + * * @return the destinationPortRanges value. */ public List destinationPortRanges() { @@ -228,7 +225,7 @@ public List 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. */ @@ -239,7 +236,7 @@ public EffectiveNetworkSecurityRule withDestinationPortRanges(List desti /** * Get the sourceAddressPrefix property: The source address prefix. - * + * * @return the sourceAddressPrefix value. */ public String sourceAddressPrefix() { @@ -248,7 +245,7 @@ public String sourceAddressPrefix() { /** * Set the sourceAddressPrefix property: The source address prefix. - * + * * @param sourceAddressPrefix the sourceAddressPrefix value to set. * @return the EffectiveNetworkSecurityRule object itself. */ @@ -259,7 +256,7 @@ public EffectiveNetworkSecurityRule withSourceAddressPrefix(String sourceAddress /** * Get the destinationAddressPrefix property: The destination address prefix. - * + * * @return the destinationAddressPrefix value. */ public String destinationAddressPrefix() { @@ -268,7 +265,7 @@ public String destinationAddressPrefix() { /** * Set the destinationAddressPrefix property: The destination address prefix. - * + * * @param destinationAddressPrefix the destinationAddressPrefix value to set. * @return the EffectiveNetworkSecurityRule object itself. */ @@ -280,7 +277,7 @@ public EffectiveNetworkSecurityRule withDestinationAddressPrefix(String destinat /** * Get the sourceAddressPrefixes property: The source address prefixes. Expected values include CIDR IP ranges, * Default Tags (VirtualNetwork, AzureLoadBalancer, Internet), System Tags, and the asterisk (*). - * + * * @return the sourceAddressPrefixes value. */ public List sourceAddressPrefixes() { @@ -290,7 +287,7 @@ public List 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. */ @@ -302,7 +299,7 @@ public EffectiveNetworkSecurityRule withSourceAddressPrefixes(List sourc /** * Get the destinationAddressPrefixes property: The destination address prefixes. Expected values include CIDR IP * ranges, Default Tags (VirtualNetwork, AzureLoadBalancer, Internet), System Tags, and the asterisk (*). - * + * * @return the destinationAddressPrefixes value. */ public List destinationAddressPrefixes() { @@ -312,7 +309,7 @@ public List 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. */ @@ -323,7 +320,7 @@ public EffectiveNetworkSecurityRule withDestinationAddressPrefixes(List /** * Get the expandedSourceAddressPrefix property: The expanded source address prefix. - * + * * @return the expandedSourceAddressPrefix value. */ public List expandedSourceAddressPrefix() { @@ -332,7 +329,7 @@ public List expandedSourceAddressPrefix() { /** * Set the expandedSourceAddressPrefix property: The expanded source address prefix. - * + * * @param expandedSourceAddressPrefix the expandedSourceAddressPrefix value to set. * @return the EffectiveNetworkSecurityRule object itself. */ @@ -343,7 +340,7 @@ public EffectiveNetworkSecurityRule withExpandedSourceAddressPrefix(List /** * Get the expandedDestinationAddressPrefix property: Expanded destination address prefix. - * + * * @return the expandedDestinationAddressPrefix value. */ public List expandedDestinationAddressPrefix() { @@ -352,7 +349,7 @@ public List expandedDestinationAddressPrefix() { /** * Set the expandedDestinationAddressPrefix property: Expanded destination address prefix. - * + * * @param expandedDestinationAddressPrefix the expandedDestinationAddressPrefix value to set. * @return the EffectiveNetworkSecurityRule object itself. */ @@ -364,7 +361,7 @@ public List expandedDestinationAddressPrefix() { /** * Get the access property: Whether network traffic is allowed or denied. - * + * * @return the access value. */ public SecurityRuleAccess access() { @@ -373,7 +370,7 @@ public SecurityRuleAccess access() { /** * Set the access property: Whether network traffic is allowed or denied. - * + * * @param access the access value to set. * @return the EffectiveNetworkSecurityRule object itself. */ @@ -384,7 +381,7 @@ public EffectiveNetworkSecurityRule withAccess(SecurityRuleAccess access) { /** * Get the priority property: The priority of the rule. - * + * * @return the priority value. */ public Integer priority() { @@ -393,7 +390,7 @@ public Integer priority() { /** * Set the priority property: The priority of the rule. - * + * * @param priority the priority value to set. * @return the EffectiveNetworkSecurityRule object itself. */ @@ -404,7 +401,7 @@ public EffectiveNetworkSecurityRule withPriority(Integer priority) { /** * Get the direction property: The direction of the rule. - * + * * @return the direction value. */ public SecurityRuleDirection direction() { @@ -413,7 +410,7 @@ public SecurityRuleDirection direction() { /** * Set the direction property: The direction of the rule. - * + * * @param direction the direction value to set. * @return the EffectiveNetworkSecurityRule object itself. */ @@ -424,7 +421,7 @@ public EffectiveNetworkSecurityRule withDirection(SecurityRuleDirection directio /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveRoutesParameters.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveRoutesParameters.java index a622d532e875e..704ad8319ea61 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveRoutesParameters.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveRoutesParameters.java @@ -19,8 +19,7 @@ public final class EffectiveRoutesParameters { private String resourceId; /* - * The type of the specified resource like RouteTable, ExpressRouteConnection, HubVirtualNetworkConnection, - * VpnConnection and P2SConnection. + * The type of the specified resource like RouteTable, ExpressRouteConnection, HubVirtualNetworkConnection, VpnConnection and P2SConnection. */ @JsonProperty(value = "virtualWanResourceType") private String virtualWanResourceType; diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveSecurityAdminRule.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveSecurityAdminRule.java index 2d8221e438c61..c42758443c399 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveSecurityAdminRule.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EffectiveSecurityAdminRule.java @@ -7,17 +7,30 @@ import com.azure.core.annotation.Fluent; import com.azure.resourcemanager.network.fluent.models.AdminPropertiesFormat; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeId; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; + import java.util.List; /** * Network admin rule. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind") +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + property = "kind", + defaultImpl = EffectiveSecurityAdminRule.class, + visible = true) @JsonTypeName("Custom") @Fluent public final class EffectiveSecurityAdminRule extends EffectiveBaseSecurityAdminRule { + /* + * Whether the rule is custom or default. + */ + @JsonTypeId + @JsonProperty(value = "kind", required = true) + private EffectiveAdminRuleKind kind = EffectiveAdminRuleKind.CUSTOM; + /* * Indicates the properties of the security admin rule */ @@ -30,9 +43,19 @@ public final class EffectiveSecurityAdminRule extends EffectiveBaseSecurityAdmin public EffectiveSecurityAdminRule() { } + /** + * Get the kind property: Whether the rule is custom or default. + * + * @return the kind value. + */ + @Override + public EffectiveAdminRuleKind kind() { + return this.kind; + } + /** * Get the innerProperties property: Indicates the properties of the security admin rule. - * + * * @return the innerProperties value. */ private AdminPropertiesFormat innerProperties() { @@ -87,7 +110,7 @@ public EffectiveSecurityAdminRule withRuleGroups(List ruleGr /** * Get the description property: A description for this rule. Restricted to 140 chars. - * + * * @return the description value. */ public String description() { @@ -96,7 +119,7 @@ public String 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. */ @@ -110,7 +133,7 @@ public EffectiveSecurityAdminRule withDescription(String description) { /** * Get the protocol property: Network protocol this rule applies to. - * + * * @return the protocol value. */ public SecurityConfigurationRuleProtocol protocol() { @@ -119,7 +142,7 @@ public SecurityConfigurationRuleProtocol protocol() { /** * Set the protocol property: Network protocol this rule applies to. - * + * * @param protocol the protocol value to set. * @return the EffectiveSecurityAdminRule object itself. */ @@ -133,7 +156,7 @@ public EffectiveSecurityAdminRule withProtocol(SecurityConfigurationRuleProtocol /** * Get the sources property: The CIDR or source IP ranges. - * + * * @return the sources value. */ public List sources() { @@ -142,7 +165,7 @@ public List sources() { /** * Set the sources property: The CIDR or source IP ranges. - * + * * @param sources the sources value to set. * @return the EffectiveSecurityAdminRule object itself. */ @@ -156,7 +179,7 @@ public EffectiveSecurityAdminRule withSources(List sources) { /** * Get the destinations property: The destination address prefixes. CIDR or destination IP ranges. - * + * * @return the destinations value. */ public List destinations() { @@ -165,7 +188,7 @@ public List 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. */ @@ -179,7 +202,7 @@ public EffectiveSecurityAdminRule withDestinations(List desti /** * Get the sourcePortRanges property: The source port ranges. - * + * * @return the sourcePortRanges value. */ public List sourcePortRanges() { @@ -188,7 +211,7 @@ public List sourcePortRanges() { /** * Set the sourcePortRanges property: The source port ranges. - * + * * @param sourcePortRanges the sourcePortRanges value to set. * @return the EffectiveSecurityAdminRule object itself. */ @@ -202,7 +225,7 @@ public EffectiveSecurityAdminRule withSourcePortRanges(List sourcePortRa /** * Get the destinationPortRanges property: The destination port ranges. - * + * * @return the destinationPortRanges value. */ public List destinationPortRanges() { @@ -211,7 +234,7 @@ public List destinationPortRanges() { /** * Set the destinationPortRanges property: The destination port ranges. - * + * * @param destinationPortRanges the destinationPortRanges value to set. * @return the EffectiveSecurityAdminRule object itself. */ @@ -225,7 +248,7 @@ public EffectiveSecurityAdminRule withDestinationPortRanges(List destina /** * Get the access property: Indicates the access allowed for this particular rule. - * + * * @return the access value. */ public SecurityConfigurationRuleAccess access() { @@ -234,7 +257,7 @@ public SecurityConfigurationRuleAccess 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. */ @@ -250,7 +273,7 @@ public EffectiveSecurityAdminRule withAccess(SecurityConfigurationRuleAccess acc * 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 * rule. - * + * * @return the priority value. */ public Integer priority() { @@ -261,7 +284,7 @@ public Integer 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. */ @@ -275,7 +298,7 @@ public EffectiveSecurityAdminRule withPriority(Integer priority) { /** * Get the direction property: Indicates if the traffic matched against the rule in inbound or outbound. - * + * * @return the direction value. */ public SecurityConfigurationRuleDirection direction() { @@ -284,7 +307,7 @@ public SecurityConfigurationRuleDirection 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. */ @@ -298,7 +321,7 @@ public EffectiveSecurityAdminRule withDirection(SecurityConfigurationRuleDirecti /** * Get the provisioningState property: The provisioning state of the resource. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -307,7 +330,7 @@ public ProvisioningState provisioningState() { /** * Get the resourceGuid property: Unique identifier for this resource. - * + * * @return the resourceGuid value. */ public String resourceGuid() { @@ -316,7 +339,7 @@ public String resourceGuid() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EndpointType.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EndpointType.java index 28f668a8b2ab9..89bc5fc7abbde 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EndpointType.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/EndpointType.java @@ -6,6 +6,7 @@ import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; + import java.util.Collection; /** @@ -52,9 +53,14 @@ public final class EndpointType extends ExpandableStringEnum { */ public static final EndpointType AZURE_VMSS = fromString("AzureVMSS"); + /** + * Static value AzureArcNetwork for EndpointType. + */ + public static final EndpointType AZURE_ARC_NETWORK = fromString("AzureArcNetwork"); + /** * Creates a new instance of EndpointType value. - * + * * @deprecated Use the {@link #fromString(String)} factory method. */ @Deprecated @@ -63,7 +69,7 @@ public EndpointType() { /** * Creates or finds a EndpointType from its string representation. - * + * * @param name a name to look for. * @return the corresponding EndpointType. */ @@ -74,7 +80,7 @@ public static EndpointType fromString(String name) { /** * Gets known EndpointType values. - * + * * @return known EndpointType values. */ public static Collection values() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExclusionManagedRule.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExclusionManagedRule.java index 64d40b09b52d4..e4902ae4cddd3 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExclusionManagedRule.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExclusionManagedRule.java @@ -52,8 +52,8 @@ public ExclusionManagedRule withRuleId(String ruleId) { */ public void validate() { if (ruleId() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property ruleId in model ExclusionManagedRule")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property ruleId in model ExclusionManagedRule")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExclusionManagedRuleGroup.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExclusionManagedRuleGroup.java index 101f068dbfcac..1f1a0b621143c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExclusionManagedRuleGroup.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExclusionManagedRuleGroup.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -34,7 +35,7 @@ public ExclusionManagedRuleGroup() { /** * Get the ruleGroupName property: The managed rule group for exclusion. - * + * * @return the ruleGroupName value. */ public String ruleGroupName() { @@ -43,7 +44,7 @@ public String ruleGroupName() { /** * Set the ruleGroupName property: The managed rule group for exclusion. - * + * * @param ruleGroupName the ruleGroupName value to set. * @return the ExclusionManagedRuleGroup object itself. */ @@ -55,7 +56,7 @@ public ExclusionManagedRuleGroup withRuleGroupName(String ruleGroupName) { /** * Get the rules property: List of rules that will be excluded. If none specified, all rules in the group will be * excluded. - * + * * @return the rules value. */ public List rules() { @@ -65,7 +66,7 @@ public List rules() { /** * Set the rules property: List of rules that will be excluded. If none specified, all rules in the group will be * excluded. - * + * * @param rules the rules value to set. * @return the ExclusionManagedRuleGroup object itself. */ @@ -76,13 +77,14 @@ public ExclusionManagedRuleGroup withRules(List rules) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (ruleGroupName() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property ruleGroupName in model ExclusionManagedRuleGroup")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property ruleGroupName in model ExclusionManagedRuleGroup")); } if (rules() != null) { rules().forEach(e -> e.validate()); diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExclusionManagedRuleSet.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExclusionManagedRuleSet.java index fbd269eb1f5a7..d9916215d8c4a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExclusionManagedRuleSet.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExclusionManagedRuleSet.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -40,7 +41,7 @@ public ExclusionManagedRuleSet() { /** * Get the ruleSetType property: Defines the rule set type to use. - * + * * @return the ruleSetType value. */ public String ruleSetType() { @@ -49,7 +50,7 @@ public String ruleSetType() { /** * Set the ruleSetType property: Defines the rule set type to use. - * + * * @param ruleSetType the ruleSetType value to set. * @return the ExclusionManagedRuleSet object itself. */ @@ -60,7 +61,7 @@ public ExclusionManagedRuleSet withRuleSetType(String ruleSetType) { /** * Get the ruleSetVersion property: Defines the version of the rule set to use. - * + * * @return the ruleSetVersion value. */ public String ruleSetVersion() { @@ -69,7 +70,7 @@ public String ruleSetVersion() { /** * Set the ruleSetVersion property: Defines the version of the rule set to use. - * + * * @param ruleSetVersion the ruleSetVersion value to set. * @return the ExclusionManagedRuleSet object itself. */ @@ -80,7 +81,7 @@ public ExclusionManagedRuleSet withRuleSetVersion(String ruleSetVersion) { /** * Get the ruleGroups property: Defines the rule groups to apply to the rule set. - * + * * @return the ruleGroups value. */ public List ruleGroups() { @@ -89,7 +90,7 @@ public List ruleGroups() { /** * Set the ruleGroups property: Defines the rule groups to apply to the rule set. - * + * * @param ruleGroups the ruleGroups value to set. * @return the ExclusionManagedRuleSet object itself. */ @@ -100,17 +101,19 @@ public ExclusionManagedRuleSet withRuleGroups(List ru /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (ruleSetType() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property ruleSetType in model ExclusionManagedRuleSet")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property ruleSetType in model ExclusionManagedRuleSet")); } if (ruleSetVersion() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property ruleSetVersion in model ExclusionManagedRuleSet")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property ruleSetVersion in model ExclusionManagedRuleSet")); } if (ruleGroups() != null) { ruleGroups().forEach(e -> e.validate()); diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitRoutesTableSummary.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitRoutesTableSummary.java index 46fce5b7d23d6..caf6eff311731 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitRoutesTableSummary.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCircuitRoutesTableSummary.java @@ -31,15 +31,13 @@ public final class ExpressRouteCircuitRoutesTableSummary { private Integer as; /* - * The length of time that the BGP session has been in the Established state, or the current status if not in the - * Established state. + * The length of time that the BGP session has been in the Established state, or the current status if not in the Established state. */ @JsonProperty(value = "upDown") private String upDown; /* - * Current state of the BGP session, and the number of prefixes that have been received from a neighbor or peer - * group. + * Current state of the BGP session, and the number of prefixes that have been received from a neighbor or peer group. */ @JsonProperty(value = "statePfxRcd") private String statePfxRcd; diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCrossConnectionRoutesTableSummary.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCrossConnectionRoutesTableSummary.java index 2596e1eb14d24..a28b986e2e9b2 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCrossConnectionRoutesTableSummary.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ExpressRouteCrossConnectionRoutesTableSummary.java @@ -25,15 +25,13 @@ public final class ExpressRouteCrossConnectionRoutesTableSummary { private Integer asn; /* - * The length of time that the BGP session has been in the Established state, or the current status if not in the - * Established state. + * The length of time that the BGP session has been in the Established state, or the current status if not in the Established state. */ @JsonProperty(value = "upDown") private String upDown; /* - * Current state of the BGP session, and the number of prefixes that have been received from a neighbor or peer - * group. + * Current state of the BGP session, and the number of prefixes that have been received from a neighbor or peer group. */ @JsonProperty(value = "stateOrPrefixesReceived") private String stateOrPrefixesReceived; diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyFilterRuleCollection.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyFilterRuleCollection.java index 1a5cc7a676bcd..b9cf40820d43b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyFilterRuleCollection.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyFilterRuleCollection.java @@ -6,17 +6,31 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeId; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; + import java.util.List; /** * Firewall Policy Filter Rule Collection. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "ruleCollectionType") +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + property = "ruleCollectionType", + defaultImpl = FirewallPolicyFilterRuleCollection.class, + visible = true) @JsonTypeName("FirewallPolicyFilterRuleCollection") @Fluent public final class FirewallPolicyFilterRuleCollection extends FirewallPolicyRuleCollection { + /* + * The type of the rule collection. + */ + @JsonTypeId + @JsonProperty(value = "ruleCollectionType", required = true) + private FirewallPolicyRuleCollectionType ruleCollectionType + = FirewallPolicyRuleCollectionType.FIREWALL_POLICY_FILTER_RULE_COLLECTION; + /* * The action type of a Filter rule collection. */ @@ -35,9 +49,19 @@ public final class FirewallPolicyFilterRuleCollection extends FirewallPolicyRule public FirewallPolicyFilterRuleCollection() { } + /** + * Get the ruleCollectionType property: The type of the rule collection. + * + * @return the ruleCollectionType value. + */ + @Override + public FirewallPolicyRuleCollectionType ruleCollectionType() { + return this.ruleCollectionType; + } + /** * Get the action property: The action type of a Filter rule collection. - * + * * @return the action value. */ public FirewallPolicyFilterRuleCollectionAction action() { @@ -46,7 +70,7 @@ public FirewallPolicyFilterRuleCollectionAction action() { /** * Set the action property: The action type of a Filter rule collection. - * + * * @param action the action value to set. * @return the FirewallPolicyFilterRuleCollection object itself. */ @@ -57,7 +81,7 @@ public FirewallPolicyFilterRuleCollection withAction(FirewallPolicyFilterRuleCol /** * Get the rules property: List of rules included in a rule collection. - * + * * @return the rules value. */ public List rules() { @@ -66,7 +90,7 @@ public List rules() { /** * Set the rules property: List of rules included in a rule collection. - * + * * @param rules the rules value to set. * @return the FirewallPolicyFilterRuleCollection object itself. */ @@ -95,7 +119,7 @@ public FirewallPolicyFilterRuleCollection withPriority(Integer priority) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetection.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetection.java index c00872213c1e6..19972315c395e 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetection.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetection.java @@ -13,15 +13,13 @@ @Fluent public final class FirewallPolicyIntrusionDetection { /* - * Intrusion detection general state. When attached to a parent policy, the firewall's effective IDPS mode is the - * stricter mode of the two. + * Intrusion detection general state. When attached to a parent policy, the firewall's effective IDPS mode is the stricter mode of the two. */ @JsonProperty(value = "mode") private FirewallPolicyIntrusionDetectionStateType mode; /* - * IDPS profile name. When attached to a parent policy, the firewall's effective profile is the profile name of the - * parent policy. + * IDPS profile name. When attached to a parent policy, the firewall's effective profile is the profile name of the parent policy. */ @JsonProperty(value = "profile") private FirewallPolicyIntrusionDetectionProfileType profile; diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetectionConfiguration.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetectionConfiguration.java index edcecd4f0d548..6a974e438b17c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetectionConfiguration.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyIntrusionDetectionConfiguration.java @@ -6,6 +6,7 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -26,9 +27,7 @@ public final class FirewallPolicyIntrusionDetectionConfiguration { private List bypassTrafficSettings; /* - * IDPS Private IP address ranges are used to identify traffic direction (i.e. inbound, outbound, etc.). By - * default, only ranges defined by IANA RFC 1918 are considered private IP addresses. To modify default ranges, - * specify your Private IP address ranges with this property + * IDPS Private IP address ranges are used to identify traffic direction (i.e. inbound, outbound, etc.). By default, only ranges defined by IANA RFC 1918 are considered private IP addresses. To modify default ranges, specify your Private IP address ranges with this property */ @JsonProperty(value = "privateRanges") private List privateRanges; @@ -41,7 +40,7 @@ public FirewallPolicyIntrusionDetectionConfiguration() { /** * Get the signatureOverrides property: List of specific signatures states. - * + * * @return the signatureOverrides value. */ public List signatureOverrides() { @@ -50,7 +49,7 @@ public List signatureOve /** * Set the signatureOverrides property: List of specific signatures states. - * + * * @param signatureOverrides the signatureOverrides value to set. * @return the FirewallPolicyIntrusionDetectionConfiguration object itself. */ @@ -62,7 +61,7 @@ public List signatureOve /** * Get the bypassTrafficSettings property: List of rules for traffic to bypass. - * + * * @return the bypassTrafficSettings value. */ public List bypassTrafficSettings() { @@ -71,7 +70,7 @@ public List bypassT /** * Set the bypassTrafficSettings property: List of rules for traffic to bypass. - * + * * @param bypassTrafficSettings the bypassTrafficSettings value to set. * @return the FirewallPolicyIntrusionDetectionConfiguration object itself. */ @@ -85,7 +84,7 @@ public FirewallPolicyIntrusionDetectionConfiguration withBypassTrafficSettings( * Get the privateRanges property: IDPS Private IP address ranges are used to identify traffic direction (i.e. * inbound, outbound, etc.). By default, only ranges defined by IANA RFC 1918 are considered private IP addresses. * To modify default ranges, specify your Private IP address ranges with this property. - * + * * @return the privateRanges value. */ public List privateRanges() { @@ -96,7 +95,7 @@ public List privateRanges() { * Set the privateRanges property: IDPS Private IP address ranges are used to identify traffic direction (i.e. * inbound, outbound, etc.). By default, only ranges defined by IANA RFC 1918 are considered private IP addresses. * To modify default ranges, specify your Private IP address ranges with this property. - * + * * @param privateRanges the privateRanges value to set. * @return the FirewallPolicyIntrusionDetectionConfiguration object itself. */ @@ -107,7 +106,7 @@ public FirewallPolicyIntrusionDetectionConfiguration withPrivateRanges(List rules() { @@ -66,7 +90,7 @@ public List rules() { /** * Set the rules property: List of rules included in a rule collection. - * + * * @param rules the rules value to set. * @return the FirewallPolicyNatRuleCollection object itself. */ @@ -95,7 +119,7 @@ public FirewallPolicyNatRuleCollection withPriority(Integer priority) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ @Override diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRule.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRule.java index 433b8c57f68ec..b251351bc08e1 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRule.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRule.java @@ -7,17 +7,14 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeId; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; /** * Properties of a rule. */ -@JsonTypeInfo( - use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, - property = "ruleType", - defaultImpl = FirewallPolicyRule.class) +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "ruleType", defaultImpl = FirewallPolicyRule.class, visible = true) @JsonTypeName("FirewallPolicyRule") @JsonSubTypes({ @JsonSubTypes.Type(name = "ApplicationRule", value = ApplicationRule.class), @@ -25,6 +22,13 @@ @JsonSubTypes.Type(name = "NetworkRule", value = NetworkRule.class) }) @Fluent public class FirewallPolicyRule { + /* + * Rule Type. + */ + @JsonTypeId + @JsonProperty(value = "ruleType", required = true) + private FirewallPolicyRuleType ruleType; + /* * Name of the rule. */ @@ -41,6 +45,16 @@ public class FirewallPolicyRule { * Creates an instance of FirewallPolicyRule class. */ public FirewallPolicyRule() { + this.ruleType = FirewallPolicyRuleType.fromString("FirewallPolicyRule"); + } + + /** + * Get the ruleType property: Rule Type. + * + * @return the ruleType value. + */ + public FirewallPolicyRuleType ruleType() { + return this.ruleType; } /** diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleCollection.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleCollection.java index 5a99b34da6b35..d20187dea1660 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleCollection.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicyRuleCollection.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeId; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -15,15 +16,22 @@ */ @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, - include = JsonTypeInfo.As.PROPERTY, property = "ruleCollectionType", - defaultImpl = FirewallPolicyRuleCollection.class) + defaultImpl = FirewallPolicyRuleCollection.class, + visible = true) @JsonTypeName("FirewallPolicyRuleCollection") @JsonSubTypes({ @JsonSubTypes.Type(name = "FirewallPolicyNatRuleCollection", value = FirewallPolicyNatRuleCollection.class), @JsonSubTypes.Type(name = "FirewallPolicyFilterRuleCollection", value = FirewallPolicyFilterRuleCollection.class) }) @Fluent public class FirewallPolicyRuleCollection { + /* + * The type of the rule collection. + */ + @JsonTypeId + @JsonProperty(value = "ruleCollectionType", required = true) + private FirewallPolicyRuleCollectionType ruleCollectionType; + /* * The name of the rule collection. */ @@ -40,6 +48,16 @@ public class FirewallPolicyRuleCollection { * Creates an instance of FirewallPolicyRuleCollection class. */ public FirewallPolicyRuleCollection() { + this.ruleCollectionType = FirewallPolicyRuleCollectionType.fromString("FirewallPolicyRuleCollection"); + } + + /** + * Get the ruleCollectionType property: The type of the rule collection. + * + * @return the ruleCollectionType value. + */ + public FirewallPolicyRuleCollectionType ruleCollectionType() { + return this.ruleCollectionType; } /** diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicySql.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicySql.java index cd894e1d4f497..8430041175ab8 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicySql.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FirewallPolicySql.java @@ -13,8 +13,7 @@ @Fluent public final class FirewallPolicySql { /* - * A flag to indicate if SQL Redirect traffic filtering is enabled. Turning on the flag requires no rule using port - * 11000-11999. + * A flag to indicate if SQL Redirect traffic filtering is enabled. Turning on the flag requires no rule using port 11000-11999. */ @JsonProperty(value = "allowSqlRedirect") private Boolean allowSqlRedirect; diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FlowLogStatusParameters.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FlowLogStatusParameters.java index b87be05fdab05..771f89539a642 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FlowLogStatusParameters.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/FlowLogStatusParameters.java @@ -54,8 +54,9 @@ public FlowLogStatusParameters withTargetResourceId(String targetResourceId) { */ public void validate() { if (targetResourceId() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property targetResourceId in model FlowLogStatusParameters")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property targetResourceId in model FlowLogStatusParameters")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GatewayCustomBgpIpAddressIpConfiguration.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GatewayCustomBgpIpAddressIpConfiguration.java index 8f0bebbe6b71c..31f1413bff667 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GatewayCustomBgpIpAddressIpConfiguration.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GatewayCustomBgpIpAddressIpConfiguration.java @@ -78,12 +78,14 @@ public GatewayCustomBgpIpAddressIpConfiguration withCustomBgpIpAddress(String cu */ public void validate() { if (ipConfigurationId() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property ipConfigurationId in model GatewayCustomBgpIpAddressIpConfiguration")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property ipConfigurationId in model GatewayCustomBgpIpAddressIpConfiguration")); } if (customBgpIpAddress() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property customBgpIpAddress in model GatewayCustomBgpIpAddressIpConfiguration")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property customBgpIpAddress in model GatewayCustomBgpIpAddressIpConfiguration")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GenerateExpressRoutePortsLoaRequest.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GenerateExpressRoutePortsLoaRequest.java index 4346eacf15ddd..0c06da0bdbbbd 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GenerateExpressRoutePortsLoaRequest.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GenerateExpressRoutePortsLoaRequest.java @@ -52,8 +52,9 @@ public GenerateExpressRoutePortsLoaRequest withCustomerName(String customerName) */ public void validate() { if (customerName() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property customerName in model GenerateExpressRoutePortsLoaRequest")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property customerName in model GenerateExpressRoutePortsLoaRequest")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GetInboundRoutesParameters.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GetInboundRoutesParameters.java index 9e5fc611665fd..f0d372c680ae5 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GetInboundRoutesParameters.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GetInboundRoutesParameters.java @@ -19,8 +19,7 @@ public final class GetInboundRoutesParameters { private String resourceUri; /* - * The type of the specified connection resource like ExpressRouteConnection, HubVirtualNetworkConnection, - * VpnConnection and P2SConnection. + * The type of the specified connection resource like ExpressRouteConnection, HubVirtualNetworkConnection, VpnConnection and P2SConnection. */ @JsonProperty(value = "connectionType") private String connectionType; diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GetOutboundRoutesParameters.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GetOutboundRoutesParameters.java index 7fee5ea19b6d3..859375854ad3f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GetOutboundRoutesParameters.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GetOutboundRoutesParameters.java @@ -19,8 +19,7 @@ public final class GetOutboundRoutesParameters { private String resourceUri; /* - * The type of the specified connection resource like ExpressRouteConnection, HubVirtualNetworkConnection, - * VpnConnection and P2SConnection. + * The type of the specified connection resource like ExpressRouteConnection, HubVirtualNetworkConnection, VpnConnection and P2SConnection. */ @JsonProperty(value = "connectionType") private String connectionType; diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GetVpnSitesConfigurationRequest.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GetVpnSitesConfigurationRequest.java index a0734be710cae..6cba743a89091 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GetVpnSitesConfigurationRequest.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GetVpnSitesConfigurationRequest.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -34,7 +35,7 @@ public GetVpnSitesConfigurationRequest() { /** * Get the vpnSites property: List of resource-ids of the vpn-sites for which config is to be downloaded. - * + * * @return the vpnSites value. */ public List vpnSites() { @@ -43,7 +44,7 @@ public List vpnSites() { /** * Set the vpnSites property: List of resource-ids of the vpn-sites for which config is to be downloaded. - * + * * @param vpnSites the vpnSites value to set. * @return the GetVpnSitesConfigurationRequest object itself. */ @@ -54,7 +55,7 @@ public GetVpnSitesConfigurationRequest withVpnSites(List vpnSites) { /** * Get the outputBlobSasUrl property: The sas-url to download the configurations for vpn-sites. - * + * * @return the outputBlobSasUrl value. */ public String outputBlobSasUrl() { @@ -63,7 +64,7 @@ public String outputBlobSasUrl() { /** * Set the outputBlobSasUrl property: The sas-url to download the configurations for vpn-sites. - * + * * @param outputBlobSasUrl the outputBlobSasUrl value to set. * @return the GetVpnSitesConfigurationRequest object itself. */ @@ -74,13 +75,14 @@ public GetVpnSitesConfigurationRequest withOutputBlobSasUrl(String outputBlobSas /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (outputBlobSasUrl() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property outputBlobSasUrl in model GetVpnSitesConfigurationRequest")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property outputBlobSasUrl in model GetVpnSitesConfigurationRequest")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GroupByUserSession.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GroupByUserSession.java index 1f77f39417faf..96a414d4a204a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GroupByUserSession.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GroupByUserSession.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -28,7 +29,7 @@ public GroupByUserSession() { /** * Get the groupByVariables property: List of group by clause variables. - * + * * @return the groupByVariables value. */ public List groupByVariables() { @@ -37,7 +38,7 @@ public List groupByVariables() { /** * Set the groupByVariables property: List of group by clause variables. - * + * * @param groupByVariables the groupByVariables value to set. * @return the GroupByUserSession object itself. */ @@ -48,13 +49,14 @@ public GroupByUserSession withGroupByVariables(List groupByVari /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (groupByVariables() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property groupByVariables in model GroupByUserSession")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property groupByVariables in model GroupByUserSession")); } else { groupByVariables().forEach(e -> e.validate()); } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GroupByVariable.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GroupByVariable.java index cb526f2773266..375ce5bc6e389 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GroupByVariable.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/GroupByVariable.java @@ -52,8 +52,8 @@ public GroupByVariable withVariableName(ApplicationGatewayFirewallUserSessionVar */ public void validate() { if (variableName() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property variableName in model GroupByVariable")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property variableName in model GroupByVariable")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HeaderValueMatcher.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HeaderValueMatcher.java new file mode 100644 index 0000000000000..e317aa714c84e --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HeaderValueMatcher.java @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.network.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * An optional field under "Rewrite Action". It lets you capture and modify the value(s) of a specific header when + * multiple headers with the same name exist. Currently supported for Set-Cookie Response header only. For more details, + * visit https://aka.ms/appgwheadercrud. + */ +@Fluent +public final class HeaderValueMatcher { + /* + * The pattern, either fixed string or regular expression, that evaluates if a header value should be selected for rewrite. + */ + @JsonProperty(value = "pattern") + private String pattern; + + /* + * Setting this parameter to truth value with force the pattern to do a case in-sensitive comparison. + */ + @JsonProperty(value = "ignoreCase") + private Boolean ignoreCase; + + /* + * Setting this value as truth will force to check the negation of the condition given by the user in the pattern field. + */ + @JsonProperty(value = "negate") + private Boolean negate; + + /** + * Creates an instance of HeaderValueMatcher class. + */ + public HeaderValueMatcher() { + } + + /** + * Get the pattern property: The pattern, either fixed string or regular expression, that evaluates if a header + * value should be selected for rewrite. + * + * @return the pattern value. + */ + public String pattern() { + return this.pattern; + } + + /** + * Set the pattern property: The pattern, either fixed string or regular expression, that evaluates if a header + * value should be selected for rewrite. + * + * @param pattern the pattern value to set. + * @return the HeaderValueMatcher object itself. + */ + public HeaderValueMatcher withPattern(String pattern) { + this.pattern = pattern; + return this; + } + + /** + * Get the ignoreCase property: Setting this parameter to truth value with force the pattern to do a case + * in-sensitive comparison. + * + * @return the ignoreCase value. + */ + public Boolean ignoreCase() { + return this.ignoreCase; + } + + /** + * Set the ignoreCase property: Setting this parameter to truth value with force the pattern to do a case + * in-sensitive comparison. + * + * @param ignoreCase the ignoreCase value to set. + * @return the HeaderValueMatcher object itself. + */ + public HeaderValueMatcher withIgnoreCase(Boolean ignoreCase) { + this.ignoreCase = ignoreCase; + return this; + } + + /** + * Get the negate property: Setting this value as truth will force to check the negation of the condition given by + * the user in the pattern field. + * + * @return the negate value. + */ + public Boolean negate() { + return this.negate; + } + + /** + * Set the negate property: Setting this value as truth will force to check the negation of the condition given by + * the user in the pattern field. + * + * @param negate the negate value to set. + * @return the HeaderValueMatcher object itself. + */ + public HeaderValueMatcher withNegate(Boolean negate) { + this.negate = negate; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HubRoute.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HubRoute.java index 7149695522282..1886329ee3d9e 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HubRoute.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/HubRoute.java @@ -7,6 +7,7 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -53,7 +54,7 @@ public HubRoute() { /** * Get the name property: The name of the Route that is unique within a RouteTable. This name can be used to access * this route. - * + * * @return the name value. */ public String name() { @@ -63,7 +64,7 @@ public String name() { /** * Set the name property: The name of the Route that is unique within a RouteTable. This name can be used to access * this route. - * + * * @param name the name value to set. * @return the HubRoute object itself. */ @@ -74,7 +75,7 @@ public HubRoute withName(String name) { /** * Get the destinationType property: The type of destinations (eg: CIDR, ResourceId, Service). - * + * * @return the destinationType value. */ public String destinationType() { @@ -83,7 +84,7 @@ public String destinationType() { /** * Set the destinationType property: The type of destinations (eg: CIDR, ResourceId, Service). - * + * * @param destinationType the destinationType value to set. * @return the HubRoute object itself. */ @@ -94,7 +95,7 @@ public HubRoute withDestinationType(String destinationType) { /** * Get the destinations property: List of all destinations. - * + * * @return the destinations value. */ public List destinations() { @@ -103,7 +104,7 @@ public List destinations() { /** * Set the destinations property: List of all destinations. - * + * * @param destinations the destinations value to set. * @return the HubRoute object itself. */ @@ -114,7 +115,7 @@ public HubRoute withDestinations(List destinations) { /** * Get the nextHopType property: The type of next hop (eg: ResourceId). - * + * * @return the nextHopType value. */ public String nextHopType() { @@ -123,7 +124,7 @@ public String nextHopType() { /** * Set the nextHopType property: The type of next hop (eg: ResourceId). - * + * * @param nextHopType the nextHopType value to set. * @return the HubRoute object itself. */ @@ -134,7 +135,7 @@ public HubRoute withNextHopType(String nextHopType) { /** * Get the nextHop property: NextHop resource ID. - * + * * @return the nextHop value. */ public String nextHop() { @@ -143,7 +144,7 @@ public String nextHop() { /** * Set the nextHop property: NextHop resource ID. - * + * * @param nextHop the nextHop value to set. * @return the HubRoute object itself. */ @@ -154,29 +155,29 @@ public HubRoute withNextHop(String nextHop) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { if (name() == null) { - throw LOGGER - .logExceptionAsError(new IllegalArgumentException("Missing required property name in model HubRoute")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property name in model HubRoute")); } if (destinationType() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property destinationType in model HubRoute")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property destinationType in model HubRoute")); } if (destinations() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property destinations in model HubRoute")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property destinations in model HubRoute")); } if (nextHopType() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property nextHopType in model HubRoute")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property nextHopType in model HubRoute")); } if (nextHop() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property nextHop in model HubRoute")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property nextHop in model HubRoute")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InboundNatPool.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InboundNatPool.java index 4a62d6c08bfa7..c9d0fe13a73ac 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InboundNatPool.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InboundNatPool.java @@ -21,8 +21,7 @@ public final class InboundNatPool extends SubResource { private InboundNatPoolPropertiesFormat innerProperties; /* - * The name of the resource that is unique within the set of inbound NAT pools used by the load balancer. This name - * can be used to access the resource. + * The name of the resource that is unique within the set of inbound NAT pools used by the load balancer. This name can be used to access the resource. */ @JsonProperty(value = "name") private String name; diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InboundSecurityRuleType.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InboundSecurityRuleType.java new file mode 100644 index 0000000000000..e9fa3460c0cbe --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InboundSecurityRuleType.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.network.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; + +import java.util.Collection; + +/** + * Rule Type. This should be either AutoExpire or Permanent. Auto Expire Rule only creates NSG rules. Permanent Rule + * creates NSG rule and SLB LB Rule. + */ +public final class InboundSecurityRuleType extends ExpandableStringEnum { + /** + * Static value AutoExpire for InboundSecurityRuleType. + */ + public static final InboundSecurityRuleType AUTO_EXPIRE = fromString("AutoExpire"); + + /** + * Static value Permanent for InboundSecurityRuleType. + */ + public static final InboundSecurityRuleType PERMANENT = fromString("Permanent"); + + /** + * Creates a new instance of InboundSecurityRuleType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public InboundSecurityRuleType() { + } + + /** + * Creates or finds a InboundSecurityRuleType from its string representation. + * + * @param name a name to look for. + * @return the corresponding InboundSecurityRuleType. + */ + @JsonCreator + public static InboundSecurityRuleType fromString(String name) { + return fromString(name, InboundSecurityRuleType.class); + } + + /** + * Gets known InboundSecurityRuleType values. + * + * @return known InboundSecurityRuleType values. + */ + public static Collection values() { + return values(InboundSecurityRuleType.class); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InboundSecurityRules.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InboundSecurityRules.java index 7d3bf7ea5f80e..35d72ff8a2aa0 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InboundSecurityRules.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/InboundSecurityRules.java @@ -7,11 +7,19 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + /** * Properties of the Inbound Security Rules resource. */ @Fluent public final class InboundSecurityRules { + /* + * Name of the rule. + */ + @JsonProperty(value = "name") + private String name; + /* * Protocol. This should be either TCP or UDP. */ @@ -19,7 +27,7 @@ public final class InboundSecurityRules { private InboundSecurityRulesProtocol protocol; /* - * The CIDR or source IP range. Only /30, /31 and /32 Ip ranges are allowed. + * The CIDR or source IP range. */ @JsonProperty(value = "sourceAddressPrefix") private String sourceAddressPrefix; @@ -30,15 +38,47 @@ public final class InboundSecurityRules { @JsonProperty(value = "destinationPortRange") private Integer destinationPortRange; + /* + * NVA port ranges to be opened up. One can provide a range of ports. Allowed port value between 0 and 65535. + */ + @JsonProperty(value = "destinationPortRanges") + private List destinationPortRanges; + + /* + * Public IP name in case of Permanent Rule type & Interface Name in case of Auto Expire Rule type + */ + @JsonProperty(value = "appliesOn") + private List appliesOn; + /** * Creates an instance of InboundSecurityRules class. */ public InboundSecurityRules() { } + /** + * Get the name property: Name of the rule. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: Name of the rule. + * + * @param name the name value to set. + * @return the InboundSecurityRules object itself. + */ + public InboundSecurityRules withName(String name) { + this.name = name; + return this; + } + /** * Get the protocol property: Protocol. This should be either TCP or UDP. - * + * * @return the protocol value. */ public InboundSecurityRulesProtocol protocol() { @@ -47,7 +87,7 @@ public InboundSecurityRulesProtocol protocol() { /** * Set the protocol property: Protocol. This should be either TCP or UDP. - * + * * @param protocol the protocol value to set. * @return the InboundSecurityRules object itself. */ @@ -57,8 +97,8 @@ public InboundSecurityRules withProtocol(InboundSecurityRulesProtocol protocol) } /** - * Get the sourceAddressPrefix property: The CIDR or source IP range. Only /30, /31 and /32 Ip ranges are allowed. - * + * Get the sourceAddressPrefix property: The CIDR or source IP range. + * * @return the sourceAddressPrefix value. */ public String sourceAddressPrefix() { @@ -66,8 +106,8 @@ public String sourceAddressPrefix() { } /** - * Set the sourceAddressPrefix property: The CIDR or source IP range. Only /30, /31 and /32 Ip ranges are allowed. - * + * Set the sourceAddressPrefix property: The CIDR or source IP range. + * * @param sourceAddressPrefix the sourceAddressPrefix value to set. * @return the InboundSecurityRules object itself. */ @@ -78,7 +118,7 @@ public InboundSecurityRules withSourceAddressPrefix(String sourceAddressPrefix) /** * Get the destinationPortRange property: NVA port ranges to be opened up. One needs to provide specific ports. - * + * * @return the destinationPortRange value. */ public Integer destinationPortRange() { @@ -87,7 +127,7 @@ public Integer destinationPortRange() { /** * Set the destinationPortRange property: NVA port ranges to be opened up. One needs to provide specific ports. - * + * * @param destinationPortRange the destinationPortRange value to set. * @return the InboundSecurityRules object itself. */ @@ -96,9 +136,53 @@ public InboundSecurityRules withDestinationPortRange(Integer destinationPortRang return this; } + /** + * Get the destinationPortRanges property: NVA port ranges to be opened up. One can provide a range of ports. + * Allowed port value between 0 and 65535. + * + * @return the destinationPortRanges value. + */ + public List destinationPortRanges() { + return this.destinationPortRanges; + } + + /** + * Set the destinationPortRanges property: NVA port ranges to be opened up. One can provide a range of ports. + * Allowed port value between 0 and 65535. + * + * @param destinationPortRanges the destinationPortRanges value to set. + * @return the InboundSecurityRules object itself. + */ + public InboundSecurityRules withDestinationPortRanges(List destinationPortRanges) { + this.destinationPortRanges = destinationPortRanges; + return this; + } + + /** + * Get the appliesOn property: Public IP name in case of Permanent Rule type & Interface Name in case of Auto + * Expire Rule type. + * + * @return the appliesOn value. + */ + public List appliesOn() { + return this.appliesOn; + } + + /** + * Set the appliesOn property: Public IP name in case of Permanent Rule type & Interface Name in case of Auto + * Expire Rule type. + * + * @param appliesOn the appliesOn value to set. + * @return the InboundSecurityRules object itself. + */ + public InboundSecurityRules withAppliesOn(List appliesOn) { + this.appliesOn = appliesOn; + return this; + } + /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpConfigurationBgpPeeringAddress.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpConfigurationBgpPeeringAddress.java index 4bd24e42aef06..a9b8618c98663 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpConfigurationBgpPeeringAddress.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpConfigurationBgpPeeringAddress.java @@ -6,6 +6,7 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** @@ -45,7 +46,7 @@ public IpConfigurationBgpPeeringAddress() { /** * Get the ipconfigurationId property: The ID of IP configuration which belongs to gateway. - * + * * @return the ipconfigurationId value. */ public String ipconfigurationId() { @@ -54,7 +55,7 @@ public String ipconfigurationId() { /** * Set the ipconfigurationId property: The ID of IP configuration which belongs to gateway. - * + * * @param ipconfigurationId the ipconfigurationId value to set. * @return the IpConfigurationBgpPeeringAddress object itself. */ @@ -66,7 +67,7 @@ public IpConfigurationBgpPeeringAddress withIpconfigurationId(String ipconfigura /** * Get the defaultBgpIpAddresses property: The list of default BGP peering addresses which belong to IP * configuration. - * + * * @return the defaultBgpIpAddresses value. */ public List defaultBgpIpAddresses() { @@ -74,9 +75,8 @@ public List defaultBgpIpAddresses() { } /** - * Get the customBgpIpAddresses property: The list of custom BGP peering addresses which belong to IP - * configuration. - * + * Get the customBgpIpAddresses property: The list of custom BGP peering addresses which belong to IP configuration. + * * @return the customBgpIpAddresses value. */ public List customBgpIpAddresses() { @@ -84,9 +84,8 @@ public List customBgpIpAddresses() { } /** - * Set the customBgpIpAddresses property: The list of custom BGP peering addresses which belong to IP - * configuration. - * + * Set the customBgpIpAddresses property: The list of custom BGP peering addresses which belong to IP configuration. + * * @param customBgpIpAddresses the customBgpIpAddresses value to set. * @return the IpConfigurationBgpPeeringAddress object itself. */ @@ -97,7 +96,7 @@ public IpConfigurationBgpPeeringAddress withCustomBgpIpAddresses(List cu /** * Get the tunnelIpAddresses property: The list of tunnel public IP addresses which belong to IP configuration. - * + * * @return the tunnelIpAddresses value. */ public List tunnelIpAddresses() { @@ -106,7 +105,7 @@ public List tunnelIpAddresses() { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpsecPolicy.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpsecPolicy.java index 9605ca24202e9..55a5b920a55a9 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpsecPolicy.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/IpsecPolicy.java @@ -14,15 +14,13 @@ @Fluent public final class IpsecPolicy { /* - * The IPSec Security Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for a site to site VPN - * tunnel. + * The IPSec Security Association (also called Quick Mode or Phase 2 SA) lifetime in seconds for a site to site VPN tunnel. */ @JsonProperty(value = "saLifeTimeSeconds", required = true) private int saLifeTimeSeconds; /* - * The IPSec Security Association (also called Quick Mode or Phase 2 SA) payload size in KB for a site to site VPN - * tunnel. + * The IPSec Security Association (also called Quick Mode or Phase 2 SA) payload size in KB for a site to site VPN tunnel. */ @JsonProperty(value = "saDataSizeKilobytes", required = true) private int saDataSizeKilobytes; @@ -240,28 +238,28 @@ public IpsecPolicy withPfsGroup(PfsGroup pfsGroup) { */ public void validate() { if (ipsecEncryption() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property ipsecEncryption in model IpsecPolicy")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property ipsecEncryption in model IpsecPolicy")); } if (ipsecIntegrity() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property ipsecIntegrity in model IpsecPolicy")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property ipsecIntegrity in model IpsecPolicy")); } if (ikeEncryption() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property ikeEncryption in model IpsecPolicy")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property ikeEncryption in model IpsecPolicy")); } if (ikeIntegrity() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property ikeIntegrity in model IpsecPolicy")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property ikeIntegrity in model IpsecPolicy")); } if (dhGroup() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property dhGroup in model IpsecPolicy")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property dhGroup in model IpsecPolicy")); } if (pfsGroup() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property pfsGroup in model IpsecPolicy")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property pfsGroup in model IpsecPolicy")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListP2SVpnGatewaysResult.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListP2SVpnGatewaysResult.java index d340c15755fa3..33f147fe43658 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListP2SVpnGatewaysResult.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListP2SVpnGatewaysResult.java @@ -7,11 +7,12 @@ import com.azure.core.annotation.Fluent; import com.azure.resourcemanager.network.fluent.models.P2SVpnGatewayInner; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** - * Result of the request to list P2SVpnGateways. It contains a list of P2SVpnGateways and a URL nextLink to get the - * next set of results. + * 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 public final class ListP2SVpnGatewaysResult { @@ -35,7 +36,7 @@ public ListP2SVpnGatewaysResult() { /** * Get the value property: List of P2SVpnGateways. - * + * * @return the value value. */ public List value() { @@ -44,7 +45,7 @@ public List value() { /** * Set the value property: List of P2SVpnGateways. - * + * * @param value the value value to set. * @return the ListP2SVpnGatewaysResult object itself. */ @@ -55,7 +56,7 @@ public ListP2SVpnGatewaysResult withValue(List value) { /** * Get the nextLink property: URL to get the next set of operation list results if there are any. - * + * * @return the nextLink value. */ public String nextLink() { @@ -64,7 +65,7 @@ public String 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. */ @@ -75,7 +76,7 @@ public ListP2SVpnGatewaysResult withNextLink(String nextLink) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVpnConnectionsResult.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVpnConnectionsResult.java index 51ddd8e35829d..87879fa4df302 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVpnConnectionsResult.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVpnConnectionsResult.java @@ -7,11 +7,12 @@ import com.azure.core.annotation.Fluent; import com.azure.resourcemanager.network.fluent.models.VpnConnectionInner; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** - * 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. + * 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 public final class ListVpnConnectionsResult { @@ -35,7 +36,7 @@ public ListVpnConnectionsResult() { /** * Get the value property: List of Vpn Connections. - * + * * @return the value value. */ public List value() { @@ -44,7 +45,7 @@ public List value() { /** * Set the value property: List of Vpn Connections. - * + * * @param value the value value to set. * @return the ListVpnConnectionsResult object itself. */ @@ -55,7 +56,7 @@ public ListVpnConnectionsResult withValue(List value) { /** * Get the nextLink property: URL to get the next set of operation list results if there are any. - * + * * @return the nextLink value. */ public String nextLink() { @@ -64,7 +65,7 @@ public String 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. */ @@ -75,7 +76,7 @@ public ListVpnConnectionsResult withNextLink(String nextLink) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVpnSiteLinkConnectionsResult.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVpnSiteLinkConnectionsResult.java index 3ae8292c789da..7078278a6f72e 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVpnSiteLinkConnectionsResult.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ListVpnSiteLinkConnectionsResult.java @@ -7,11 +7,12 @@ import com.azure.core.annotation.Fluent; import com.azure.resourcemanager.network.fluent.models.VpnSiteLinkConnectionInner; import com.fasterxml.jackson.annotation.JsonProperty; + import java.util.List; /** - * 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. + * 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 public final class ListVpnSiteLinkConnectionsResult { @@ -35,7 +36,7 @@ public ListVpnSiteLinkConnectionsResult() { /** * Get the value property: List of VpnSiteLinkConnections. - * + * * @return the value value. */ public List value() { @@ -44,7 +45,7 @@ public List value() { /** * Set the value property: List of VpnSiteLinkConnections. - * + * * @param value the value value to set. * @return the ListVpnSiteLinkConnectionsResult object itself. */ @@ -55,7 +56,7 @@ public ListVpnSiteLinkConnectionsResult withValue(List value() { @@ -44,7 +45,7 @@ public List value() { /** * Set the value property: List of VpnSitesLinks. - * + * * @param value the value value to set. * @return the ListVpnSiteLinksResult object itself. */ @@ -55,7 +56,7 @@ public ListVpnSiteLinksResult withValue(List value) { /** * Get the nextLink property: URL to get the next set of operation list results if there are any. - * + * * @return the nextLink value. */ public String nextLink() { @@ -64,7 +65,7 @@ public String 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. */ @@ -75,7 +76,7 @@ public ListVpnSiteLinksResult withNextLink(String nextLink) { /** * Validates the instance. - * + * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRuleGroupOverride.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRuleGroupOverride.java index 0ed0596d7990f..b55899ccb90b5 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRuleGroupOverride.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRuleGroupOverride.java @@ -81,8 +81,9 @@ public ManagedRuleGroupOverride withRules(List rules) { */ public void validate() { if (ruleGroupName() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property ruleGroupName in model ManagedRuleGroupOverride")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property ruleGroupName in model ManagedRuleGroupOverride")); } if (rules() != null) { rules().forEach(e -> e.validate()); diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRuleOverride.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRuleOverride.java index f74d0206a1b21..b9532c75bf177 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRuleOverride.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRuleOverride.java @@ -104,8 +104,8 @@ public ManagedRuleOverride withAction(ActionType action) { */ public void validate() { if (ruleId() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property ruleId in model ManagedRuleOverride")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property ruleId in model ManagedRuleOverride")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRuleSet.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRuleSet.java index 23e97c4cc3215..1f29f492ef298 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRuleSet.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRuleSet.java @@ -105,12 +105,12 @@ public ManagedRuleSet withRuleGroupOverrides(List rule */ public void validate() { if (ruleSetType() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property ruleSetType in model ManagedRuleSet")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property ruleSetType in model ManagedRuleSet")); } if (ruleSetVersion() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property ruleSetVersion in model ManagedRuleSet")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property ruleSetVersion in model ManagedRuleSet")); } if (ruleGroupOverrides() != null) { ruleGroupOverrides().forEach(e -> e.validate()); diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRulesDefinition.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRulesDefinition.java index bc98f05c4bbf5..34e988faed9ef 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRulesDefinition.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedRulesDefinition.java @@ -82,8 +82,9 @@ public void validate() { exclusions().forEach(e -> e.validate()); } if (managedRuleSets() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property managedRuleSets in model ManagedRulesDefinition")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property managedRuleSets in model ManagedRulesDefinition")); } else { managedRuleSets().forEach(e -> e.validate()); } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedServiceIdentity.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedServiceIdentity.java index a849c0698f052..ad8ec730ef0f3 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedServiceIdentity.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/ManagedServiceIdentity.java @@ -15,32 +15,25 @@ @Fluent public final class ManagedServiceIdentity { /* - * The principal id of the system assigned identity. This property will only be provided for a system assigned - * identity. + * The principal id of the system assigned identity. This property will only be provided for a system assigned identity. */ @JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY) private String principalId; /* - * The tenant id of the system assigned identity. This property will only be provided for a system assigned - * identity. + * The tenant id of the system assigned identity. This property will only be provided for a system assigned identity. */ @JsonProperty(value = "tenantId", access = JsonProperty.Access.WRITE_ONLY) private String tenantId; /* - * The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes both an implicitly - * created identity and a set of user assigned identities. The type 'None' will remove any identities from the - * virtual machine. + * The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine. */ @JsonProperty(value = "type") private ResourceIdentityType type; /* - * The list of user identities associated with resource. The user identity dictionary key references will be ARM - * resource ids in the form: - * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/ - * userAssignedIdentities/{identityName}'. + * The list of user identities associated with resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */ @JsonProperty(value = "userAssignedIdentities") @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) @@ -63,8 +56,8 @@ public String principalId() { } /** - * Get the tenantId property: The tenant id of the system assigned identity. This property will only be provided - * for a system assigned identity. + * Get the tenantId property: The tenant id of the system assigned identity. This property will only be provided for + * a system assigned identity. * * @return the tenantId value. */ diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/MatchCondition.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/MatchCondition.java index a5df2939fb1fe..5597ec8ee4d13 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/MatchCondition.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/MatchCondition.java @@ -157,18 +157,18 @@ public MatchCondition withTransforms(List trans */ public void validate() { if (matchVariables() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property matchVariables in model MatchCondition")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property matchVariables in model MatchCondition")); } else { matchVariables().forEach(e -> e.validate()); } if (operator() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property operator in model MatchCondition")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property operator in model MatchCondition")); } if (matchValues() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property matchValues in model MatchCondition")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property matchValues in model MatchCondition")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/MatchVariable.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/MatchVariable.java index f728266757099..2935d7b76cb8c 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/MatchVariable.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/MatchVariable.java @@ -78,8 +78,8 @@ public MatchVariable withSelector(String selector) { */ public void validate() { if (variableName() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property variableName in model MatchVariable")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property variableName in model MatchVariable")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NatRule.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NatRule.java index fb5e4c4fd980a..26bcbfb87eab8 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NatRule.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NatRule.java @@ -6,6 +6,7 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeId; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import java.util.List; @@ -13,10 +14,17 @@ /** * Rule of type nat. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "ruleType") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "ruleType", defaultImpl = NatRule.class, visible = true) @JsonTypeName("NatRule") @Fluent public final class NatRule extends FirewallPolicyRule { + /* + * Rule Type. + */ + @JsonTypeId + @JsonProperty(value = "ruleType", required = true) + private FirewallPolicyRuleType ruleType = FirewallPolicyRuleType.NAT_RULE; + /* * Array of FirewallPolicyRuleNetworkProtocols. */ @@ -71,6 +79,16 @@ public final class NatRule extends FirewallPolicyRule { public NatRule() { } + /** + * Get the ruleType property: Rule Type. + * + * @return the ruleType value. + */ + @Override + public FirewallPolicyRuleType ruleType() { + return this.ruleType; + } + /** * Get the ipProtocols property: Array of FirewallPolicyRuleNetworkProtocols. * diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkConfigurationDiagnosticParameters.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkConfigurationDiagnosticParameters.java index 9df3c13be10a0..79db5b7d2804b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkConfigurationDiagnosticParameters.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkConfigurationDiagnosticParameters.java @@ -15,8 +15,7 @@ @Fluent public final class NetworkConfigurationDiagnosticParameters { /* - * The ID of the target resource to perform network configuration diagnostic. Valid options are VM, - * NetworkInterface, VMSS/NetworkInterface and Application Gateway. + * The ID of the target resource to perform network configuration diagnostic. Valid options are VM, NetworkInterface, VMSS/NetworkInterface and Application Gateway. */ @JsonProperty(value = "targetResourceId", required = true) private String targetResourceId; @@ -108,12 +107,14 @@ public NetworkConfigurationDiagnosticParameters withProfiles(List e.validate()); } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkConfigurationDiagnosticProfile.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkConfigurationDiagnosticProfile.java index 997bc9f1e1ea4..fa474ab7252e7 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkConfigurationDiagnosticProfile.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkConfigurationDiagnosticProfile.java @@ -158,24 +158,29 @@ public NetworkConfigurationDiagnosticProfile withDestinationPort(String destinat */ public void validate() { if (direction() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property direction in model NetworkConfigurationDiagnosticProfile")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property direction in model NetworkConfigurationDiagnosticProfile")); } if (protocol() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property protocol in model NetworkConfigurationDiagnosticProfile")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property protocol in model NetworkConfigurationDiagnosticProfile")); } if (source() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property source in model NetworkConfigurationDiagnosticProfile")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property source in model NetworkConfigurationDiagnosticProfile")); } if (destination() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property destination in model NetworkConfigurationDiagnosticProfile")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property destination in model NetworkConfigurationDiagnosticProfile")); } if (destinationPort() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property destinationPort in model NetworkConfigurationDiagnosticProfile")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property destinationPort in model NetworkConfigurationDiagnosticProfile")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceDnsSettings.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceDnsSettings.java index 8fee27f2fc539..ec68b52ccde7d 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceDnsSettings.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkInterfaceDnsSettings.java @@ -14,16 +14,13 @@ @Fluent public final class NetworkInterfaceDnsSettings { /* - * List of DNS servers IP addresses. Use 'AzureProvidedDNS' to switch to azure provided DNS resolution. - * 'AzureProvidedDNS' value cannot be combined with other IPs, it must be the only value in dnsServers collection. + * List of DNS servers IP addresses. Use 'AzureProvidedDNS' to switch to azure provided DNS resolution. 'AzureProvidedDNS' value cannot be combined with other IPs, it must be the only value in dnsServers collection. */ @JsonProperty(value = "dnsServers") private List dnsServers; /* - * If the VM that uses this NIC is part of an Availability Set, then this list will have the union of all DNS - * servers from all NICs that are part of the Availability Set. This property is what is configured on each of - * those VMs. + * If the VM that uses this NIC is part of an Availability Set, then this list will have the union of all DNS servers from all NICs that are part of the Availability Set. This property is what is configured on each of those VMs. */ @JsonProperty(value = "appliedDnsServers", access = JsonProperty.Access.WRITE_ONLY) private List appliedDnsServers; @@ -41,8 +38,7 @@ public final class NetworkInterfaceDnsSettings { private String internalFqdn; /* - * Even if internalDnsNameLabel is not specified, a DNS entry is created for the primary NIC of the VM. This DNS - * name can be constructed by concatenating the VM name with the value of internalDomainNameSuffix. + * Even if internalDnsNameLabel is not specified, a DNS entry is created for the primary NIC of the VM. This DNS name can be constructed by concatenating the VM name with the value of internalDomainNameSuffix. */ @JsonProperty(value = "internalDomainNameSuffix", access = JsonProperty.Access.WRITE_ONLY) private String internalDomainNameSuffix; @@ -54,9 +50,9 @@ public NetworkInterfaceDnsSettings() { } /** - * Get the dnsServers property: List of DNS servers IP addresses. Use 'AzureProvidedDNS' to switch to azure - * provided DNS resolution. 'AzureProvidedDNS' value cannot be combined with other IPs, it must be the only value - * in dnsServers collection. + * Get the dnsServers property: List of DNS servers IP addresses. Use 'AzureProvidedDNS' to switch to azure provided + * DNS resolution. 'AzureProvidedDNS' value cannot be combined with other IPs, it must be the only value in + * dnsServers collection. * * @return the dnsServers value. */ @@ -65,9 +61,9 @@ public List dnsServers() { } /** - * Set the dnsServers property: List of DNS servers IP addresses. Use 'AzureProvidedDNS' to switch to azure - * provided DNS resolution. 'AzureProvidedDNS' value cannot be combined with other IPs, it must be the only value - * in dnsServers collection. + * Set the dnsServers property: List of DNS servers IP addresses. Use 'AzureProvidedDNS' to switch to azure provided + * DNS resolution. 'AzureProvidedDNS' value cannot be combined with other IPs, it must be the only value in + * dnsServers collection. * * @param dnsServers the dnsServers value to set. * @return the NetworkInterfaceDnsSettings object itself. @@ -79,8 +75,8 @@ public NetworkInterfaceDnsSettings withDnsServers(List dnsServers) { /** * Get the appliedDnsServers property: If the VM that uses this NIC is part of an Availability Set, then this list - * will have the union of all DNS servers from all NICs that are part of the Availability Set. This property is - * what is configured on each of those VMs. + * will have the union of all DNS servers from all NICs that are part of the Availability Set. This property is what + * is configured on each of those VMs. * * @return the appliedDnsServers value. */ diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkManagerSecurityGroupItem.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkManagerSecurityGroupItem.java index 2fe5c2616132f..1e64a0e8460ca 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkManagerSecurityGroupItem.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkManagerSecurityGroupItem.java @@ -52,8 +52,9 @@ public NetworkManagerSecurityGroupItem withNetworkGroupId(String networkGroupId) */ public void validate() { if (networkGroupId() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property networkGroupId in model NetworkManagerSecurityGroupItem")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property networkGroupId in model NetworkManagerSecurityGroupItem")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkRule.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkRule.java index 91030c45bdffe..373b0c979c4d8 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkRule.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkRule.java @@ -6,6 +6,7 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeId; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import java.util.List; @@ -13,10 +14,17 @@ /** * Rule of type network. */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "ruleType") +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "ruleType", defaultImpl = NetworkRule.class, visible = true) @JsonTypeName("NetworkRule") @Fluent public final class NetworkRule extends FirewallPolicyRule { + /* + * Rule Type. + */ + @JsonTypeId + @JsonProperty(value = "ruleType", required = true) + private FirewallPolicyRuleType ruleType = FirewallPolicyRuleType.NETWORK_RULE; + /* * Array of FirewallPolicyRuleNetworkProtocols. */ @@ -65,6 +73,16 @@ public final class NetworkRule extends FirewallPolicyRule { public NetworkRule() { } + /** + * Get the ruleType property: Rule Type. + * + * @return the ruleType value. + */ + @Override + public FirewallPolicyRuleType ruleType() { + return this.ruleType; + } + /** * Get the ipProtocols property: Array of FirewallPolicyRuleNetworkProtocols. * diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkVirtualAppliancePropertiesFormatNetworkProfile.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkVirtualAppliancePropertiesFormatNetworkProfile.java new file mode 100644 index 0000000000000..dcbe02d512a16 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NetworkVirtualAppliancePropertiesFormatNetworkProfile.java @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.network.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** + * Network Profile containing configurations for Public and Private NIC. + */ +@Fluent +public final class NetworkVirtualAppliancePropertiesFormatNetworkProfile { + /* + * The networkInterfaceConfigurations property. + */ + @JsonProperty(value = "networkInterfaceConfigurations") + private List networkInterfaceConfigurations; + + /** + * Creates an instance of NetworkVirtualAppliancePropertiesFormatNetworkProfile class. + */ + public NetworkVirtualAppliancePropertiesFormatNetworkProfile() { + } + + /** + * Get the networkInterfaceConfigurations property: The networkInterfaceConfigurations property. + * + * @return the networkInterfaceConfigurations value. + */ + public List networkInterfaceConfigurations() { + return this.networkInterfaceConfigurations; + } + + /** + * Set the networkInterfaceConfigurations property: The networkInterfaceConfigurations property. + * + * @param networkInterfaceConfigurations the networkInterfaceConfigurations value to set. + * @return the NetworkVirtualAppliancePropertiesFormatNetworkProfile object itself. + */ + public NetworkVirtualAppliancePropertiesFormatNetworkProfile withNetworkInterfaceConfigurations( + List networkInterfaceConfigurations) { + this.networkInterfaceConfigurations = networkInterfaceConfigurations; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (networkInterfaceConfigurations() != null) { + networkInterfaceConfigurations().forEach(e -> e.validate()); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NextHopParameters.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NextHopParameters.java index 7a6e538f285fb..0229619175616 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NextHopParameters.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NextHopParameters.java @@ -32,8 +32,7 @@ public final class NextHopParameters { private String destinationIpAddress; /* - * The NIC ID. (If VM has multiple NICs and IP forwarding is enabled on any of the nics, then this parameter must - * be specified. Otherwise optional). + * The NIC ID. (If VM has multiple NICs and IP forwarding is enabled on any of the nics, then this parameter must be specified. Otherwise optional). */ @JsonProperty(value = "targetNicResourceId") private String targetNicResourceId; @@ -107,8 +106,8 @@ public NextHopParameters withDestinationIpAddress(String destinationIpAddress) { } /** - * Get the targetNicResourceId property: The NIC ID. (If VM has multiple NICs and IP forwarding is enabled on any - * of the nics, then this parameter must be specified. Otherwise optional). + * Get the targetNicResourceId property: The NIC ID. (If VM has multiple NICs and IP forwarding is enabled on any of + * the nics, then this parameter must be specified. Otherwise optional). * * @return the targetNicResourceId value. */ @@ -117,8 +116,8 @@ public String targetNicResourceId() { } /** - * Set the targetNicResourceId property: The NIC ID. (If VM has multiple NICs and IP forwarding is enabled on any - * of the nics, then this parameter must be specified. Otherwise optional). + * Set the targetNicResourceId property: The NIC ID. (If VM has multiple NICs and IP forwarding is enabled on any of + * the nics, then this parameter must be specified. Otherwise optional). * * @param targetNicResourceId the targetNicResourceId value to set. * @return the NextHopParameters object itself. @@ -135,16 +134,19 @@ public NextHopParameters withTargetNicResourceId(String targetNicResourceId) { */ public void validate() { if (targetResourceId() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property targetResourceId in model NextHopParameters")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property targetResourceId in model NextHopParameters")); } if (sourceIpAddress() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property sourceIpAddress in model NextHopParameters")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property sourceIpAddress in model NextHopParameters")); } if (destinationIpAddress() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property destinationIpAddress in model NextHopParameters")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property destinationIpAddress in model NextHopParameters")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NicTypeInRequest.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NicTypeInRequest.java new file mode 100644 index 0000000000000..1255bcec6dad8 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NicTypeInRequest.java @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.network.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** + * NIC type. This should be either PublicNic or PrivateNic. + */ +public final class NicTypeInRequest extends ExpandableStringEnum { + /** + * Static value PublicNic for NicTypeInRequest. + */ + public static final NicTypeInRequest PUBLIC_NIC = fromString("PublicNic"); + + /** + * Static value PrivateNic for NicTypeInRequest. + */ + public static final NicTypeInRequest PRIVATE_NIC = fromString("PrivateNic"); + + /** + * Creates a new instance of NicTypeInRequest value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public NicTypeInRequest() { + } + + /** + * Creates or finds a NicTypeInRequest from its string representation. + * + * @param name a name to look for. + * @return the corresponding NicTypeInRequest. + */ + @JsonCreator + public static NicTypeInRequest fromString(String name) { + return fromString(name, NicTypeInRequest.class); + } + + /** + * Gets known NicTypeInRequest values. + * + * @return known NicTypeInRequest values. + */ + public static Collection values() { + return values(NicTypeInRequest.class); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NicTypeInResponse.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NicTypeInResponse.java new file mode 100644 index 0000000000000..dd8d7a5aace6d --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/NicTypeInResponse.java @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.network.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** + * NIC type - PublicNic, PrivateNic, or AdditionalNic. + */ +public final class NicTypeInResponse extends ExpandableStringEnum { + /** + * Static value PublicNic for NicTypeInResponse. + */ + public static final NicTypeInResponse PUBLIC_NIC = fromString("PublicNic"); + + /** + * Static value PrivateNic for NicTypeInResponse. + */ + public static final NicTypeInResponse PRIVATE_NIC = fromString("PrivateNic"); + + /** + * Static value AdditionalNic for NicTypeInResponse. + */ + public static final NicTypeInResponse ADDITIONAL_NIC = fromString("AdditionalNic"); + + /** + * Creates a new instance of NicTypeInResponse value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public NicTypeInResponse() { + } + + /** + * Creates or finds a NicTypeInResponse from its string representation. + * + * @param name a name to look for. + * @return the corresponding NicTypeInResponse. + */ + @JsonCreator + public static NicTypeInResponse fromString(String name) { + return fromString(name, NicTypeInResponse.class); + } + + /** + * Gets known NicTypeInResponse values. + * + * @return known NicTypeInResponse values. + */ + public static Collection values() { + return values(NicTypeInResponse.class); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OperationListResult.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OperationListResult.java index ff9225b2a546a..7063654cdee65 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OperationListResult.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OperationListResult.java @@ -10,8 +10,8 @@ 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. + * 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. */ @Fluent public final class OperationListResult { diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OwaspCrsExclusionEntry.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OwaspCrsExclusionEntry.java index f45c05c3283a5..814eee170570b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OwaspCrsExclusionEntry.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/OwaspCrsExclusionEntry.java @@ -21,15 +21,13 @@ public final class OwaspCrsExclusionEntry { private OwaspCrsExclusionEntryMatchVariable matchVariable; /* - * When matchVariable is a collection, operate on the selector to specify which elements in the collection this - * exclusion applies to. + * When matchVariable is a collection, operate on the selector to specify which elements in the collection this exclusion applies to. */ @JsonProperty(value = "selectorMatchOperator", required = true) private OwaspCrsExclusionEntrySelectorMatchOperator selectorMatchOperator; /* - * When matchVariable is a collection, operator used to specify which elements in the collection this exclusion - * applies to. + * When matchVariable is a collection, operator used to specify which elements in the collection this exclusion applies to. */ @JsonProperty(value = "selector", required = true) private String selector; @@ -138,16 +136,19 @@ public OwaspCrsExclusionEntry withExclusionManagedRuleSets(List e.validate()); diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/P2SConnectionConfiguration.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/P2SConnectionConfiguration.java index a3a2e4b9a24aa..d4a75b78778d6 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/P2SConnectionConfiguration.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/P2SConnectionConfiguration.java @@ -90,8 +90,8 @@ public P2SConnectionConfiguration withId(String id) { } /** - * Get the vpnClientAddressPool property: The reference to the address space resource which represents Address - * space for P2S VpnClient. + * Get the vpnClientAddressPool property: The reference to the address space resource which represents Address space + * for P2S VpnClient. * * @return the vpnClientAddressPool value. */ @@ -100,8 +100,8 @@ public AddressSpace vpnClientAddressPool() { } /** - * Set the vpnClientAddressPool property: The reference to the address space resource which represents Address - * space for P2S VpnClient. + * Set the vpnClientAddressPool property: The reference to the address space resource which represents Address space + * for P2S VpnClient. * * @param vpnClientAddressPool the vpnClientAddressPool value to set. * @return the P2SConnectionConfiguration object itself. @@ -181,7 +181,8 @@ public List configurationPolicyGroupAssociations() { * @return the previousConfigurationPolicyGroupAssociations value. */ public List previousConfigurationPolicyGroupAssociations() { - return this.innerProperties() == null ? null + return this.innerProperties() == null + ? null : this.innerProperties().previousConfigurationPolicyGroupAssociations(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureFilter.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureFilter.java index 5ac864e1d42f4..59456f4738246 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureFilter.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureFilter.java @@ -19,33 +19,25 @@ public final class PacketCaptureFilter { private PcProtocol protocol; /* - * Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for - * range. "127.0.0.1;127.0.0.5"? for multiple entries. Multiple ranges not currently supported. Mixing ranges with - * multiple entries not currently supported. Default = null. + * Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5"? for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null. */ @JsonProperty(value = "localIPAddress") private String localIpAddress; /* - * Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for - * range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with - * multiple entries not currently supported. Default = null. + * Local IP Address to be filtered on. Notation: "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null. */ @JsonProperty(value = "remoteIPAddress") private String remoteIpAddress; /* - * Local port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple - * entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. - * Default = null. + * Local port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null. */ @JsonProperty(value = "localPort") private String localPort; /* - * Remote port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple - * entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. - * Default = null. + * Remote port to be filtered on. Notation: "80" for single port entry."80-85" for range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not currently supported. Default = null. */ @JsonProperty(value = "remotePort") private String remotePort; @@ -125,9 +117,9 @@ public PacketCaptureFilter withRemoteIpAddress(String remoteIpAddress) { } /** - * Get the localPort property: Local port to be filtered on. Notation: "80" for single port entry."80-85" for - * range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple - * entries not currently supported. Default = null. + * Get the localPort property: Local port to be filtered on. Notation: "80" for single port entry."80-85" for range. + * "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not + * currently supported. Default = null. * * @return the localPort value. */ @@ -136,9 +128,9 @@ public String localPort() { } /** - * Set the localPort property: Local port to be filtered on. Notation: "80" for single port entry."80-85" for - * range. "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple - * entries not currently supported. Default = null. + * Set the localPort property: Local port to be filtered on. Notation: "80" for single port entry."80-85" for range. + * "80;443;" for multiple entries. Multiple ranges not currently supported. Mixing ranges with multiple entries not + * currently supported. Default = null. * * @param localPort the localPort value to set. * @return the PacketCaptureFilter object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureSettings.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureSettings.java new file mode 100644 index 0000000000000..a885ba2103042 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureSettings.java @@ -0,0 +1,110 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.network.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The storage location for a packet capture session. + */ +@Fluent +public final class PacketCaptureSettings { + /* + * Number of file count. Default value of count is 10 and maximum number is 10000. + */ + @JsonProperty(value = "fileCount") + private Integer fileCount; + + /* + * Number of bytes captured per packet. Default value in bytes 104857600 (100MB) and maximum in bytes 4294967295 (4GB). + */ + @JsonProperty(value = "fileSizeInBytes") + private Long fileSizeInBytes; + + /* + * Maximum duration of the capture session in seconds is 604800s (7 days) for a file. Default value in second 86400s (1 day). + */ + @JsonProperty(value = "sessionTimeLimitInSeconds") + private Integer sessionTimeLimitInSeconds; + + /** + * Creates an instance of PacketCaptureSettings class. + */ + public PacketCaptureSettings() { + } + + /** + * Get the fileCount property: Number of file count. Default value of count is 10 and maximum number is 10000. + * + * @return the fileCount value. + */ + public Integer fileCount() { + return this.fileCount; + } + + /** + * Set the fileCount property: Number of file count. Default value of count is 10 and maximum number is 10000. + * + * @param fileCount the fileCount value to set. + * @return the PacketCaptureSettings object itself. + */ + public PacketCaptureSettings withFileCount(Integer fileCount) { + this.fileCount = fileCount; + return this; + } + + /** + * Get the fileSizeInBytes property: Number of bytes captured per packet. Default value in bytes 104857600 (100MB) + * and maximum in bytes 4294967295 (4GB). + * + * @return the fileSizeInBytes value. + */ + public Long fileSizeInBytes() { + return this.fileSizeInBytes; + } + + /** + * Set the fileSizeInBytes property: Number of bytes captured per packet. Default value in bytes 104857600 (100MB) + * and maximum in bytes 4294967295 (4GB). + * + * @param fileSizeInBytes the fileSizeInBytes value to set. + * @return the PacketCaptureSettings object itself. + */ + public PacketCaptureSettings withFileSizeInBytes(Long fileSizeInBytes) { + this.fileSizeInBytes = fileSizeInBytes; + return this; + } + + /** + * Get the sessionTimeLimitInSeconds property: Maximum duration of the capture session in seconds is 604800s (7 + * days) for a file. Default value in second 86400s (1 day). + * + * @return the sessionTimeLimitInSeconds value. + */ + public Integer sessionTimeLimitInSeconds() { + return this.sessionTimeLimitInSeconds; + } + + /** + * Set the sessionTimeLimitInSeconds property: Maximum duration of the capture session in seconds is 604800s (7 + * days) for a file. Default value in second 86400s (1 day). + * + * @param sessionTimeLimitInSeconds the sessionTimeLimitInSeconds value to set. + * @return the PacketCaptureSettings object itself. + */ + public PacketCaptureSettings withSessionTimeLimitInSeconds(Integer sessionTimeLimitInSeconds) { + this.sessionTimeLimitInSeconds = sessionTimeLimitInSeconds; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureStorageLocation.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureStorageLocation.java index 865a872a1fea7..c351e7fd03d80 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureStorageLocation.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PacketCaptureStorageLocation.java @@ -13,25 +13,29 @@ @Fluent public final class PacketCaptureStorageLocation { /* - * The ID of the storage account to save the packet capture session. Required if no local file path is provided. + * The ID of the storage account to save the packet capture session. Required if no localPath or filePath is provided. */ @JsonProperty(value = "storageId") private String storageId; /* - * The URI of the storage path to save the packet capture. Must be a well-formed URI describing the location to - * save the packet capture. + * The URI of the storage path to save the packet capture. Must be a well-formed URI describing the location to save the packet capture. */ @JsonProperty(value = "storagePath") private String storagePath; /* - * A valid local path on the targeting VM. Must include the name of the capture file (*.cap). For linux virtual - * machine it must start with /var/captures. Required if no storage ID is provided, otherwise optional. + * This path is invalid if 'Continuous Capture' is provided with 'true' or 'false'. A valid local path on the targeting VM. Must include the name of the capture file (*.cap). For linux virtual machine it must start with /var/captures. Required if no storage ID is provided, otherwise optional. */ @JsonProperty(value = "filePath") private String filePath; + /* + * This path is valid if 'Continuous Capture' is provided with 'true' or 'false' and required if no storage ID is provided, otherwise optional. Must include the name of the capture file (*.cap). For linux virtual machine it must start with /var/captures. + */ + @JsonProperty(value = "localPath") + private String localPath; + /** * Creates an instance of PacketCaptureStorageLocation class. */ @@ -40,7 +44,7 @@ public PacketCaptureStorageLocation() { /** * Get the storageId property: The ID of the storage account to save the packet capture session. Required if no - * local file path is provided. + * localPath or filePath is provided. * * @return the storageId value. */ @@ -50,7 +54,7 @@ public String storageId() { /** * Set the storageId property: The ID of the storage account to save the packet capture session. Required if no - * local file path is provided. + * localPath or filePath is provided. * * @param storageId the storageId value to set. * @return the PacketCaptureStorageLocation object itself. @@ -83,9 +87,9 @@ public PacketCaptureStorageLocation withStoragePath(String storagePath) { } /** - * Get the filePath property: A valid local path on the targeting VM. Must include the name of the capture file - * (*.cap). For linux virtual machine it must start with /var/captures. Required if no storage ID is provided, - * otherwise optional. + * Get the filePath property: This path is invalid if 'Continuous Capture' is provided with 'true' or 'false'. A + * valid local path on the targeting VM. Must include the name of the capture file (*.cap). For linux virtual + * machine it must start with /var/captures. Required if no storage ID is provided, otherwise optional. * * @return the filePath value. */ @@ -94,9 +98,9 @@ public String filePath() { } /** - * Set the filePath property: A valid local path on the targeting VM. Must include the name of the capture file - * (*.cap). For linux virtual machine it must start with /var/captures. Required if no storage ID is provided, - * otherwise optional. + * Set the filePath property: This path is invalid if 'Continuous Capture' is provided with 'true' or 'false'. A + * valid local path on the targeting VM. Must include the name of the capture file (*.cap). For linux virtual + * machine it must start with /var/captures. Required if no storage ID is provided, otherwise optional. * * @param filePath the filePath value to set. * @return the PacketCaptureStorageLocation object itself. @@ -106,6 +110,30 @@ public PacketCaptureStorageLocation withFilePath(String filePath) { return this; } + /** + * Get the localPath property: This path is valid if 'Continuous Capture' is provided with 'true' or 'false' and + * required if no storage ID is provided, otherwise optional. Must include the name of the capture file (*.cap). For + * linux virtual machine it must start with /var/captures. + * + * @return the localPath value. + */ + public String localPath() { + return this.localPath; + } + + /** + * Set the localPath property: This path is valid if 'Continuous Capture' is provided with 'true' or 'false' and + * required if no storage ID is provided, otherwise optional. Must include the name of the capture file (*.cap). For + * linux virtual machine it must start with /var/captures. + * + * @param localPath the localPath value to set. + * @return the PacketCaptureStorageLocation object itself. + */ + public PacketCaptureStorageLocation withLocalPath(String localPath) { + this.localPath = localPath; + return this; + } + /** * Validates the instance. * diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PolicySettings.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PolicySettings.java index 5f103d1bed193..3765a02306cc4 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PolicySettings.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PolicySettings.java @@ -67,8 +67,7 @@ public final class PolicySettings { private Integer customBlockResponseStatusCode; /* - * If the action type is block, customer can override the response body. The body must be specified in base64 - * encoding. + * If the action type is block, customer can override the response body. The body must be specified in base64 encoding. */ @JsonProperty(value = "customBlockResponseBody") private String customBlockResponseBody; @@ -79,6 +78,12 @@ public final class PolicySettings { @JsonProperty(value = "logScrubbing") private PolicySettingsLogScrubbing logScrubbing; + /* + * Web Application Firewall JavaScript Challenge Cookie Expiration time in minutes. + */ + @JsonProperty(value = "jsChallengeCookieExpirationInMins") + private Integer jsChallengeCookieExpirationInMins; + /** * Creates an instance of PolicySettings class. */ @@ -309,6 +314,28 @@ public PolicySettings withLogScrubbing(PolicySettingsLogScrubbing logScrubbing) return this; } + /** + * Get the jsChallengeCookieExpirationInMins property: Web Application Firewall JavaScript Challenge Cookie + * Expiration time in minutes. + * + * @return the jsChallengeCookieExpirationInMins value. + */ + public Integer jsChallengeCookieExpirationInMins() { + return this.jsChallengeCookieExpirationInMins; + } + + /** + * Set the jsChallengeCookieExpirationInMins property: Web Application Firewall JavaScript Challenge Cookie + * Expiration time in minutes. + * + * @param jsChallengeCookieExpirationInMins the jsChallengeCookieExpirationInMins value to set. + * @return the PolicySettings object itself. + */ + public PolicySettings withJsChallengeCookieExpirationInMins(Integer jsChallengeCookieExpirationInMins) { + this.jsChallengeCookieExpirationInMins = jsChallengeCookieExpirationInMins; + return this; + } + /** * Validates the instance. * diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateLinkServiceConnection.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateLinkServiceConnection.java index 2a4d850b2accc..ae8f24edbbf9a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateLinkServiceConnection.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PrivateLinkServiceConnection.java @@ -136,8 +136,8 @@ public PrivateLinkServiceConnection withPrivateLinkServiceId(String privateLinkS } /** - * Get the groupIds property: The ID(s) of the group(s) obtained from the remote resource that this private - * endpoint should connect to. + * Get the groupIds property: The ID(s) of the group(s) obtained from the remote resource that this private endpoint + * should connect to. * * @return the groupIds value. */ @@ -146,8 +146,8 @@ public List groupIds() { } /** - * Set the groupIds property: The ID(s) of the group(s) obtained from the remote resource that this private - * endpoint should connect to. + * Set the groupIds property: The ID(s) of the group(s) obtained from the remote resource that this private endpoint + * should connect to. * * @param groupIds the groupIds value to set. * @return the PrivateLinkServiceConnection object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressDnsSettings.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressDnsSettings.java index 2a3bef45d7932..ecf23f5638443 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressDnsSettings.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/PublicIpAddressDnsSettings.java @@ -13,31 +13,25 @@ @Fluent public final class PublicIpAddressDnsSettings { /* - * The domain name label. The concatenation of the domain name label and the regionalized DNS zone make up the - * fully qualified domain name associated with the public IP address. If a domain name label is specified, an A DNS - * record is created for the public IP in the Microsoft Azure DNS system. + * The domain name label. The concatenation of the domain name label and the regionalized DNS zone make up the fully qualified domain name associated with the public IP address. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system. */ @JsonProperty(value = "domainNameLabel") private String domainNameLabel; /* - * The domain name label scope. If a domain name label and a domain name label scope are specified, an A DNS record - * is created for the public IP in the Microsoft Azure DNS system with a hashed value includes in FQDN. + * The domain name label scope. If a domain name label and a domain name label scope are specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system with a hashed value includes in FQDN. */ @JsonProperty(value = "domainNameLabelScope") private PublicIpAddressDnsSettingsDomainNameLabelScope domainNameLabelScope; /* - * The Fully Qualified Domain Name of the A DNS record associated with the public IP. This is the concatenation of - * the domainNameLabel and the regionalized DNS zone. + * The Fully Qualified Domain Name of the A DNS record associated with the public IP. This is the concatenation of the domainNameLabel and the regionalized DNS zone. */ @JsonProperty(value = "fqdn") private String fqdn; /* - * The reverse FQDN. A user-visible, fully qualified domain name that resolves to this public IP address. If the - * reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa - * domain to the reverse FQDN. + * The reverse FQDN. A user-visible, fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN. */ @JsonProperty(value = "reverseFqdn") private String reverseFqdn; @@ -98,8 +92,8 @@ public PublicIpAddressDnsSettingsDomainNameLabelScope domainNameLabelScope() { } /** - * Get the fqdn property: The Fully Qualified Domain Name of the A DNS record associated with the public IP. This - * is the concatenation of the domainNameLabel and the regionalized DNS zone. + * Get the fqdn property: The Fully Qualified Domain Name of the A DNS record associated with the public IP. This is + * the concatenation of the domainNameLabel and the regionalized DNS zone. * * @return the fqdn value. */ @@ -108,8 +102,8 @@ public String fqdn() { } /** - * Set the fqdn property: The Fully Qualified Domain Name of the A DNS record associated with the public IP. This - * is the concatenation of the domainNameLabel and the regionalized DNS zone. + * Set the fqdn property: The Fully Qualified Domain Name of the A DNS record associated with the public IP. This is + * the concatenation of the domainNameLabel and the regionalized DNS zone. * * @param fqdn the fqdn value to set. * @return the PublicIpAddressDnsSettings object itself. @@ -120,9 +114,9 @@ public PublicIpAddressDnsSettings withFqdn(String fqdn) { } /** - * Get the reverseFqdn property: The reverse FQDN. A user-visible, fully qualified domain name that resolves to - * this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP - * address in the in-addr.arpa domain to the reverse FQDN. + * Get the reverseFqdn property: The reverse FQDN. A user-visible, fully qualified domain name that resolves to this + * public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address + * in the in-addr.arpa domain to the reverse FQDN. * * @return the reverseFqdn value. */ @@ -131,9 +125,9 @@ public String reverseFqdn() { } /** - * Set the reverseFqdn property: The reverse FQDN. A user-visible, fully qualified domain name that resolves to - * this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP - * address in the in-addr.arpa domain to the reverse FQDN. + * Set the reverseFqdn property: The reverse FQDN. A user-visible, fully qualified domain name that resolves to this + * public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address + * in the in-addr.arpa domain to the reverse FQDN. * * @param reverseFqdn the reverseFqdn value to set. * @return the PublicIpAddressDnsSettings object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/QueryRequestOptions.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/QueryRequestOptions.java index 3f7f550b0dddf..05b0b091ef10f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/QueryRequestOptions.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/QueryRequestOptions.java @@ -13,8 +13,7 @@ @Fluent public final class QueryRequestOptions { /* - * 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. + * 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. */ @JsonProperty(value = "skipToken") private String skipToken; diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/QueryTroubleshootingParameters.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/QueryTroubleshootingParameters.java index d10224bbd7721..99f332d561125 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/QueryTroubleshootingParameters.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/QueryTroubleshootingParameters.java @@ -52,8 +52,9 @@ public QueryTroubleshootingParameters withTargetResourceId(String targetResource */ public void validate() { if (targetResourceId() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property targetResourceId in model QueryTroubleshootingParameters")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property targetResourceId in model QueryTroubleshootingParameters")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RadiusServer.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RadiusServer.java index b72f01b17e608..d9e47e329946a 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RadiusServer.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RadiusServer.java @@ -104,8 +104,9 @@ public RadiusServer withRadiusServerSecret(String radiusServerSecret) { */ public void validate() { if (radiusServerAddress() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property radiusServerAddress in model RadiusServer")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property radiusServerAddress in model RadiusServer")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingPolicy.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingPolicy.java index f46bc52626a46..5e7d597b5e747 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingPolicy.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/RoutingPolicy.java @@ -107,16 +107,16 @@ public RoutingPolicy withNextHop(String nextHop) { */ public void validate() { if (name() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property name in model RoutingPolicy")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property name in model RoutingPolicy")); } if (destinations() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property destinations in model RoutingPolicy")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property destinations in model RoutingPolicy")); } if (nextHop() == null) { - throw LOGGER.logExceptionAsError( - new IllegalArgumentException("Missing required property nextHop in model RoutingPolicy")); + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property nextHop in model RoutingPolicy")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityGroupViewParameters.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityGroupViewParameters.java index 57eed3c83b8d5..5ea811d42c968 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityGroupViewParameters.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SecurityGroupViewParameters.java @@ -52,8 +52,9 @@ public SecurityGroupViewParameters withTargetResourceId(String targetResourceId) */ public void validate() { if (targetResourceId() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property targetResourceId in model SecurityGroupViewParameters")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property targetResourceId in model SecurityGroupViewParameters")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SharingScope.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SharingScope.java new file mode 100644 index 0000000000000..1b029d31b3520 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SharingScope.java @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.network.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** + * Set this property to Tenant to allow sharing subnet with other subscriptions in your AAD tenant. This property can + * only be set if defaultOutboundAccess is set to false, both properties can only be set if subnet is empty. + */ +public final class SharingScope extends ExpandableStringEnum { + /** + * Static value Tenant for SharingScope. + */ + public static final SharingScope TENANT = fromString("Tenant"); + + /** + * Static value DelegatedServices for SharingScope. + */ + public static final SharingScope DELEGATED_SERVICES = fromString("DelegatedServices"); + + /** + * Creates a new instance of SharingScope value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public SharingScope() { + } + + /** + * Creates or finds a SharingScope from its string representation. + * + * @param name a name to look for. + * @return the corresponding SharingScope. + */ + @JsonCreator + public static SharingScope fromString(String name) { + return fromString(name, SharingScope.class); + } + + /** + * Gets known SharingScope values. + * + * @return known SharingScope values. + */ + public static Collection values() { + return values(SharingScope.class); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SingleQueryResult.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SingleQueryResult.java index e5b5d75a362d9..06c92385f2167 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SingleQueryResult.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/SingleQueryResult.java @@ -32,8 +32,7 @@ public final class SingleQueryResult { private FirewallPolicyIdpsSignatureSeverity severity; /* - * Describes in which direction signature is being enforced: 0 - OutBound, 1 - InBound, 2 - Any, 3 - Internal, 4 - - * InternalOutbound + * Describes in which direction signature is being enforced: 0 - OutBound, 1 - InBound, 2 - Any, 3 - Internal, 4 - InternalOutbound */ @JsonProperty(value = "direction") private FirewallPolicyIdpsSignatureDirection direction; diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/StaticRoutesConfig.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/StaticRoutesConfig.java index 89d6fe43dbf15..3536bff0a3bc5 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/StaticRoutesConfig.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/StaticRoutesConfig.java @@ -13,8 +13,7 @@ @Fluent public final class StaticRoutesConfig { /* - * Boolean indicating whether static routes on this connection are automatically propagate to route tables which - * this connection propagates to. + * Boolean indicating whether static routes on this connection are automatically propagate to route tables which this connection propagates to. */ @JsonProperty(value = "propagateStaticRoutes", access = JsonProperty.Access.WRITE_ONLY) private Boolean propagateStaticRoutes; diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TrafficSelectorPolicy.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TrafficSelectorPolicy.java index b3e9570b0b600..89322cb0a69c5 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TrafficSelectorPolicy.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TrafficSelectorPolicy.java @@ -79,12 +79,14 @@ public TrafficSelectorPolicy withRemoteAddressRanges(List remoteAddressR */ public void validate() { if (localAddressRanges() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property localAddressRanges in model TrafficSelectorPolicy")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property localAddressRanges in model TrafficSelectorPolicy")); } if (remoteAddressRanges() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property remoteAddressRanges in model TrafficSelectorPolicy")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property remoteAddressRanges in model TrafficSelectorPolicy")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TroubleshootingParameters.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TroubleshootingParameters.java index e0c196529e9d8..0e9d81f9297bc 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TroubleshootingParameters.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/TroubleshootingParameters.java @@ -114,12 +114,14 @@ public TroubleshootingParameters withStoragePath(String storagePath) { */ public void validate() { if (targetResourceId() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property targetResourceId in model TroubleshootingParameters")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property targetResourceId in model TroubleshootingParameters")); } if (innerProperties() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property innerProperties in model TroubleshootingParameters")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property innerProperties in model TroubleshootingParameters")); } else { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VerificationIpFlowParameters.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VerificationIpFlowParameters.java index acf43afa1efc1..134fe99a62981 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VerificationIpFlowParameters.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VerificationIpFlowParameters.java @@ -32,15 +32,13 @@ public final class VerificationIpFlowParameters { private IpFlowProtocol protocol; /* - * The local port. Acceptable values are a single integer in the range (0-65535). Support for * for the source - * port, which depends on the direction. + * The local port. Acceptable values are a single integer in the range (0-65535). Support for * for the source port, which depends on the direction. */ @JsonProperty(value = "localPort", required = true) private String localPort; /* - * The remote port. Acceptable values are a single integer in the range (0-65535). Support for * for the source - * port, which depends on the direction. + * The remote port. Acceptable values are a single integer in the range (0-65535). Support for * for the source port, which depends on the direction. */ @JsonProperty(value = "remotePort", required = true) private String remotePort; @@ -58,8 +56,7 @@ public final class VerificationIpFlowParameters { private String remoteIpAddress; /* - * The NIC ID. (If VM has multiple NICs and IP forwarding is enabled on any of them, then this parameter must be - * specified. Otherwise optional). + * The NIC ID. (If VM has multiple NICs and IP forwarding is enabled on any of them, then this parameter must be specified. Otherwise optional). */ @JsonProperty(value = "targetNicResourceId") private String targetNicResourceId; @@ -215,8 +212,8 @@ public VerificationIpFlowParameters withRemoteIpAddress(String remoteIpAddress) } /** - * Get the targetNicResourceId property: The NIC ID. (If VM has multiple NICs and IP forwarding is enabled on any - * of them, then this parameter must be specified. Otherwise optional). + * Get the targetNicResourceId property: The NIC ID. (If VM has multiple NICs and IP forwarding is enabled on any of + * them, then this parameter must be specified. Otherwise optional). * * @return the targetNicResourceId value. */ @@ -225,8 +222,8 @@ public String targetNicResourceId() { } /** - * Set the targetNicResourceId property: The NIC ID. (If VM has multiple NICs and IP forwarding is enabled on any - * of them, then this parameter must be specified. Otherwise optional). + * Set the targetNicResourceId property: The NIC ID. (If VM has multiple NICs and IP forwarding is enabled on any of + * them, then this parameter must be specified. Otherwise optional). * * @param targetNicResourceId the targetNicResourceId value to set. * @return the VerificationIpFlowParameters object itself. @@ -243,32 +240,39 @@ public VerificationIpFlowParameters withTargetNicResourceId(String targetNicReso */ public void validate() { if (targetResourceId() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property targetResourceId in model VerificationIpFlowParameters")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property targetResourceId in model VerificationIpFlowParameters")); } if (direction() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property direction in model VerificationIpFlowParameters")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property direction in model VerificationIpFlowParameters")); } if (protocol() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property protocol in model VerificationIpFlowParameters")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property protocol in model VerificationIpFlowParameters")); } if (localPort() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property localPort in model VerificationIpFlowParameters")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property localPort in model VerificationIpFlowParameters")); } if (remotePort() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property remotePort in model VerificationIpFlowParameters")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property remotePort in model VerificationIpFlowParameters")); } if (localIpAddress() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property localIpAddress in model VerificationIpFlowParameters")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property localIpAddress in model VerificationIpFlowParameters")); } if (remoteIpAddress() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property remoteIpAddress in model VerificationIpFlowParameters")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property remoteIpAddress in model VerificationIpFlowParameters")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceIpConfiguration.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceIpConfiguration.java new file mode 100644 index 0000000000000..eb181680e9df7 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceIpConfiguration.java @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.network.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Represents a single IP configuration. + */ +@Fluent +public final class VirtualApplianceIpConfiguration { + /* + * Name of the IP configuration. + */ + @JsonProperty(value = "name") + private String name; + + /* + * Represents a single IP configuration properties. + */ + @JsonProperty(value = "properties") + private VirtualApplianceIpConfigurationProperties properties; + + /** + * Creates an instance of VirtualApplianceIpConfiguration class. + */ + public VirtualApplianceIpConfiguration() { + } + + /** + * Get the name property: Name of the IP configuration. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: Name of the IP configuration. + * + * @param name the name value to set. + * @return the VirtualApplianceIpConfiguration object itself. + */ + public VirtualApplianceIpConfiguration withName(String name) { + this.name = name; + return this; + } + + /** + * Get the properties property: Represents a single IP configuration properties. + * + * @return the properties value. + */ + public VirtualApplianceIpConfigurationProperties properties() { + return this.properties; + } + + /** + * Set the properties property: Represents a single IP configuration properties. + * + * @param properties the properties value to set. + * @return the VirtualApplianceIpConfiguration object itself. + */ + public VirtualApplianceIpConfiguration withProperties(VirtualApplianceIpConfigurationProperties properties) { + this.properties = properties; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() != null) { + properties().validate(); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceIpConfigurationProperties.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceIpConfigurationProperties.java new file mode 100644 index 0000000000000..ad818cc27537b --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceIpConfigurationProperties.java @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.network.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Represents a single IP configuration properties. + */ +@Fluent +public final class VirtualApplianceIpConfigurationProperties { + /* + * Whether or not this is primary IP configuration of the NIC. + */ + @JsonProperty(value = "primary") + private Boolean primary; + + /** + * Creates an instance of VirtualApplianceIpConfigurationProperties class. + */ + public VirtualApplianceIpConfigurationProperties() { + } + + /** + * Get the primary property: Whether or not this is primary IP configuration of the NIC. + * + * @return the primary value. + */ + public Boolean primary() { + return this.primary; + } + + /** + * Set the primary property: Whether or not this is primary IP configuration of the NIC. + * + * @param primary the primary value to set. + * @return the VirtualApplianceIpConfigurationProperties object itself. + */ + public VirtualApplianceIpConfigurationProperties withPrimary(Boolean primary) { + this.primary = primary; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceNetworkInterfaceConfiguration.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceNetworkInterfaceConfiguration.java new file mode 100644 index 0000000000000..9216c8de6362c --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceNetworkInterfaceConfiguration.java @@ -0,0 +1,84 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.network.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Represents a single NIC configuration. + */ +@Fluent +public final class VirtualApplianceNetworkInterfaceConfiguration { + /* + * NIC type. This should be either PublicNic or PrivateNic. + */ + @JsonProperty(value = "type") + private NicTypeInRequest nicType; + + /* + * Represents a single NIC configuration properties. + */ + @JsonProperty(value = "properties") + private VirtualApplianceNetworkInterfaceConfigurationProperties properties; + + /** + * Creates an instance of VirtualApplianceNetworkInterfaceConfiguration class. + */ + public VirtualApplianceNetworkInterfaceConfiguration() { + } + + /** + * Get the nicType property: NIC type. This should be either PublicNic or PrivateNic. + * + * @return the nicType value. + */ + public NicTypeInRequest nicType() { + return this.nicType; + } + + /** + * Set the nicType property: NIC type. This should be either PublicNic or PrivateNic. + * + * @param nicType the nicType value to set. + * @return the VirtualApplianceNetworkInterfaceConfiguration object itself. + */ + public VirtualApplianceNetworkInterfaceConfiguration withNicType(NicTypeInRequest nicType) { + this.nicType = nicType; + return this; + } + + /** + * Get the properties property: Represents a single NIC configuration properties. + * + * @return the properties value. + */ + public VirtualApplianceNetworkInterfaceConfigurationProperties properties() { + return this.properties; + } + + /** + * Set the properties property: Represents a single NIC configuration properties. + * + * @param properties the properties value to set. + * @return the VirtualApplianceNetworkInterfaceConfiguration object itself. + */ + public VirtualApplianceNetworkInterfaceConfiguration + withProperties(VirtualApplianceNetworkInterfaceConfigurationProperties properties) { + this.properties = properties; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() != null) { + properties().validate(); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceNetworkInterfaceConfigurationProperties.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceNetworkInterfaceConfigurationProperties.java new file mode 100644 index 0000000000000..2dd72eb3abda2 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceNetworkInterfaceConfigurationProperties.java @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.network.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** + * Represents a single NIC configuration properties. + */ +@Fluent +public final class VirtualApplianceNetworkInterfaceConfigurationProperties { + /* + * The ipConfigurations property. + */ + @JsonProperty(value = "ipConfigurations") + private List ipConfigurations; + + /** + * Creates an instance of VirtualApplianceNetworkInterfaceConfigurationProperties class. + */ + public VirtualApplianceNetworkInterfaceConfigurationProperties() { + } + + /** + * Get the ipConfigurations property: The ipConfigurations property. + * + * @return the ipConfigurations value. + */ + public List ipConfigurations() { + return this.ipConfigurations; + } + + /** + * Set the ipConfigurations property: The ipConfigurations property. + * + * @param ipConfigurations the ipConfigurations value to set. + * @return the VirtualApplianceNetworkInterfaceConfigurationProperties object itself. + */ + public VirtualApplianceNetworkInterfaceConfigurationProperties + withIpConfigurations(List ipConfigurations) { + this.ipConfigurations = ipConfigurations; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (ipConfigurations() != null) { + ipConfigurations().forEach(e -> e.validate()); + } + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceNicProperties.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceNicProperties.java index b7d3a4cb106ce..8cbe44794efb2 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceNicProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualApplianceNicProperties.java @@ -12,6 +12,12 @@ */ @Immutable public final class VirtualApplianceNicProperties { + /* + * NIC type - PublicNic, PrivateNic, or AdditionalNic. + */ + @JsonProperty(value = "nicType", access = JsonProperty.Access.WRITE_ONLY) + private NicTypeInResponse nicType; + /* * NIC name. */ @@ -42,6 +48,15 @@ public final class VirtualApplianceNicProperties { public VirtualApplianceNicProperties() { } + /** + * Get the nicType property: NIC type - PublicNic, PrivateNic, or AdditionalNic. + * + * @return the nicType value. + */ + public NicTypeInResponse nicType() { + return this.nicType; + } + /** * Get the name property: NIC name. * diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualHubId.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualHubId.java index 3d229a0dfa7be..ab76497dfdebb 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualHubId.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualHubId.java @@ -13,8 +13,7 @@ @Fluent public final class VirtualHubId { /* - * The resource URI for the Virtual Hub where the ExpressRoute gateway is or will be deployed. The Virtual Hub - * resource and the ExpressRoute gateway resource reside in the same subscription. + * The resource URI for the Virtual Hub where the ExpressRoute gateway is or will be deployed. The Virtual Hub resource and the ExpressRoute gateway resource reside in the same subscription. */ @JsonProperty(value = "id") private String id; diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkBgpCommunities.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkBgpCommunities.java index 26be351de7772..6d84ca106bf32 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkBgpCommunities.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkBgpCommunities.java @@ -67,8 +67,9 @@ public String regionalCommunity() { */ public void validate() { if (virtualNetworkCommunity() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property virtualNetworkCommunity in model VirtualNetworkBgpCommunities")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property virtualNetworkCommunity in model VirtualNetworkBgpCommunities")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkConnectionGatewayReference.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkConnectionGatewayReference.java index a0702a6f771be..5489ee8a339aa 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkConnectionGatewayReference.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VirtualNetworkConnectionGatewayReference.java @@ -52,8 +52,9 @@ public VirtualNetworkConnectionGatewayReference withId(String id) { */ public void validate() { if (id() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property id in model VirtualNetworkConnectionGatewayReference")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property id in model VirtualNetworkConnectionGatewayReference")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VngClientConnectionConfiguration.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VngClientConnectionConfiguration.java index 922a5126bbf8e..0028b478dfd88 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VngClientConnectionConfiguration.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VngClientConnectionConfiguration.java @@ -89,8 +89,8 @@ public VngClientConnectionConfiguration withId(String id) { } /** - * Get the vpnClientAddressPool property: The reference to the address space resource which represents Address - * space for P2S VpnClient. + * Get the vpnClientAddressPool property: The reference to the address space resource which represents Address space + * for P2S VpnClient. * * @return the vpnClientAddressPool value. */ @@ -99,8 +99,8 @@ public AddressSpace vpnClientAddressPool() { } /** - * Set the vpnClientAddressPool property: The reference to the address space resource which represents Address - * space for P2S VpnClient. + * Set the vpnClientAddressPool property: The reference to the address space resource which represents Address space + * for P2S VpnClient. * * @param vpnClientAddressPool the vpnClientAddressPool value to set. * @return the VngClientConnectionConfiguration object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientConfiguration.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientConfiguration.java index 90ae8facc6b9c..df7044f432aff 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientConfiguration.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientConfiguration.java @@ -68,22 +68,19 @@ public final class VpnClientConfiguration { private List radiusServers; /* - * The AADTenant property of the VirtualNetworkGateway resource for vpn client connection used for AAD - * authentication. + * The AADTenant property of the VirtualNetworkGateway resource for vpn client connection used for AAD authentication. */ @JsonProperty(value = "aadTenant") private String aadTenant; /* - * The AADAudience property of the VirtualNetworkGateway resource for vpn client connection used for AAD - * authentication. + * The AADAudience property of the VirtualNetworkGateway resource for vpn client connection used for AAD authentication. */ @JsonProperty(value = "aadAudience") private String aadAudience; /* - * The AADIssuer property of the VirtualNetworkGateway resource for vpn client connection used for AAD - * authentication. + * The AADIssuer property of the VirtualNetworkGateway resource for vpn client connection used for AAD authentication. */ @JsonProperty(value = "aadIssuer") private String aadIssuer; @@ -101,8 +98,8 @@ public VpnClientConfiguration() { } /** - * Get the vpnClientAddressPool property: The reference to the address space resource which represents Address - * space for P2S VpnClient. + * Get the vpnClientAddressPool property: The reference to the address space resource which represents Address space + * for P2S VpnClient. * * @return the vpnClientAddressPool value. */ @@ -111,8 +108,8 @@ public AddressSpace vpnClientAddressPool() { } /** - * Set the vpnClientAddressPool property: The reference to the address space resource which represents Address - * space for P2S VpnClient. + * Set the vpnClientAddressPool property: The reference to the address space resource which represents Address space + * for P2S VpnClient. * * @param vpnClientAddressPool the vpnClientAddressPool value to set. * @return the VpnClientConfiguration object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientConnectionHealth.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientConnectionHealth.java index 7ce3c79d707cb..661beef19bf32 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientConnectionHealth.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientConnectionHealth.java @@ -44,8 +44,7 @@ public VpnClientConnectionHealth() { } /** - * Get the totalIngressBytesTransferred property: Total of the Ingress Bytes Transferred in this P2S Vpn - * connection. + * Get the totalIngressBytesTransferred property: Total of the Ingress Bytes Transferred in this P2S Vpn connection. * * @return the totalIngressBytesTransferred value. */ diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientParameters.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientParameters.java index 75bdc8a53d849..64c3e663245b9 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientParameters.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientParameters.java @@ -26,15 +26,13 @@ public final class VpnClientParameters { private AuthenticationMethod authenticationMethod; /* - * The public certificate data for the radius server authentication certificate as a Base-64 encoded string. - * Required only if external radius authentication has been configured with EAPTLS authentication. + * The public certificate data for the radius server authentication certificate as a Base-64 encoded string. Required only if external radius authentication has been configured with EAPTLS authentication. */ @JsonProperty(value = "radiusServerAuthCertificate") private String radiusServerAuthCertificate; /* - * A list of client root certificates public certificate data encoded as Base-64 strings. Optional parameter for - * external radius based authentication with EAPTLS. + * A list of client root certificates public certificate data encoded as Base-64 strings. Optional parameter for external radius based authentication with EAPTLS. */ @JsonProperty(value = "clientRootCertificates") private List clientRootCertificates; @@ -87,8 +85,8 @@ public VpnClientParameters withAuthenticationMethod(AuthenticationMethod authent /** * Get the radiusServerAuthCertificate property: The public certificate data for the radius server authentication - * certificate as a Base-64 encoded string. Required only if external radius authentication has been configured - * with EAPTLS authentication. + * certificate as a Base-64 encoded string. Required only if external radius authentication has been configured with + * EAPTLS authentication. * * @return the radiusServerAuthCertificate value. */ @@ -98,8 +96,8 @@ public String radiusServerAuthCertificate() { /** * Set the radiusServerAuthCertificate property: The public certificate data for the radius server authentication - * certificate as a Base-64 encoded string. Required only if external radius authentication has been configured - * with EAPTLS authentication. + * certificate as a Base-64 encoded string. Required only if external radius authentication has been configured with + * EAPTLS authentication. * * @param radiusServerAuthCertificate the radiusServerAuthCertificate value to set. * @return the VpnClientParameters object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientRootCertificate.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientRootCertificate.java index 1bdc5cd043310..1c8b4e2c423c3 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientRootCertificate.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/VpnClientRootCertificate.java @@ -127,8 +127,9 @@ public ProvisioningState provisioningState() { */ public void validate() { if (innerProperties() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property innerProperties in model VpnClientRootCertificate")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property innerProperties in model VpnClientRootCertificate")); } else { innerProperties().validate(); } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallCustomRule.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallCustomRule.java index 64cafd99f27b1..999076fd33bd4 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallCustomRule.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallCustomRule.java @@ -287,12 +287,14 @@ public WebApplicationFirewallCustomRule withAction(WebApplicationFirewallAction */ public void validate() { if (ruleType() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property ruleType in model WebApplicationFirewallCustomRule")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property ruleType in model WebApplicationFirewallCustomRule")); } if (matchConditions() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property matchConditions in model WebApplicationFirewallCustomRule")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property matchConditions in model WebApplicationFirewallCustomRule")); } else { matchConditions().forEach(e -> e.validate()); } @@ -300,8 +302,9 @@ public void validate() { groupByUserSession().forEach(e -> e.validate()); } if (action() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property action in model WebApplicationFirewallCustomRule")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property action in model WebApplicationFirewallCustomRule")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallScrubbingRules.java b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallScrubbingRules.java index 041401c07ed35..89d8f1fd75f69 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallScrubbingRules.java +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/models/WebApplicationFirewallScrubbingRules.java @@ -20,15 +20,13 @@ public final class WebApplicationFirewallScrubbingRules { private ScrubbingRuleEntryMatchVariable matchVariable; /* - * When matchVariable is a collection, operate on the selector to specify which elements in the collection this - * rule applies to. + * When matchVariable is a collection, operate on the selector to specify which elements in the collection this rule applies to. */ @JsonProperty(value = "selectorMatchOperator", required = true) private ScrubbingRuleEntryMatchOperator selectorMatchOperator; /* - * When matchVariable is a collection, operator used to specify which elements in the collection this rule applies - * to. + * When matchVariable is a collection, operator used to specify which elements in the collection this rule applies to. */ @JsonProperty(value = "selector") private String selector; @@ -137,12 +135,14 @@ public WebApplicationFirewallScrubbingRules withState(ScrubbingRuleEntryState st */ public void validate() { if (matchVariable() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property matchVariable in model WebApplicationFirewallScrubbingRules")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property matchVariable in model WebApplicationFirewallScrubbingRules")); } if (selectorMatchOperator() == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - "Missing required property selectorMatchOperator in model WebApplicationFirewallScrubbingRules")); + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property selectorMatchOperator in model WebApplicationFirewallScrubbingRules")); } } diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-network/proxy-config.json b/sdk/resourcemanager/azure-resourcemanager-network/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-network/proxy-config.json index f8585f93cbd92..2fb16d5112a64 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-network/proxy-config.json +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-network/proxy-config.json @@ -1 +1 @@ -[ [ "com.azure.resourcemanager.network.implementation.ApplicationGatewaysClientImpl$ApplicationGatewaysService" ], [ "com.azure.resourcemanager.network.implementation.ApplicationGatewayPrivateLinkResourcesClientImpl$ApplicationGatewayPrivateLinkResourcesService" ], [ "com.azure.resourcemanager.network.implementation.ApplicationGatewayPrivateEndpointConnectionsClientImpl$ApplicationGatewayPrivateEndpointConnectionsService" ], [ "com.azure.resourcemanager.network.implementation.ApplicationGatewayWafDynamicManifestsDefaultsClientImpl$ApplicationGatewayWafDynamicManifestsDefaultsService" ], [ "com.azure.resourcemanager.network.implementation.ApplicationGatewayWafDynamicManifestsClientImpl$ApplicationGatewayWafDynamicManifestsService" ], [ "com.azure.resourcemanager.network.implementation.ApplicationSecurityGroupsClientImpl$ApplicationSecurityGroupsService" ], [ "com.azure.resourcemanager.network.implementation.AvailableDelegationsClientImpl$AvailableDelegationsService" ], [ "com.azure.resourcemanager.network.implementation.AvailableResourceGroupDelegationsClientImpl$AvailableResourceGroupDelegationsService" ], [ "com.azure.resourcemanager.network.implementation.AvailableServiceAliasesClientImpl$AvailableServiceAliasesService" ], [ "com.azure.resourcemanager.network.implementation.AzureFirewallsClientImpl$AzureFirewallsService" ], [ "com.azure.resourcemanager.network.implementation.AzureFirewallFqdnTagsClientImpl$AzureFirewallFqdnTagsService" ], [ "com.azure.resourcemanager.network.implementation.WebCategoriesClientImpl$WebCategoriesService" ], [ "com.azure.resourcemanager.network.implementation.BastionHostsClientImpl$BastionHostsService" ], [ "com.azure.resourcemanager.network.implementation.NetworkInterfacesClientImpl$NetworkInterfacesService" ], [ "com.azure.resourcemanager.network.implementation.PublicIpAddressesClientImpl$PublicIpAddressesService" ], [ "com.azure.resourcemanager.network.implementation.VipSwapsClientImpl$VipSwapsService" ], [ "com.azure.resourcemanager.network.implementation.CustomIpPrefixesClientImpl$CustomIpPrefixesService" ], [ "com.azure.resourcemanager.network.implementation.DdosCustomPoliciesClientImpl$DdosCustomPoliciesService" ], [ "com.azure.resourcemanager.network.implementation.DdosProtectionPlansClientImpl$DdosProtectionPlansService" ], [ "com.azure.resourcemanager.network.implementation.DscpConfigurationsClientImpl$DscpConfigurationsService" ], [ "com.azure.resourcemanager.network.implementation.AvailableEndpointServicesClientImpl$AvailableEndpointServicesService" ], [ "com.azure.resourcemanager.network.implementation.ExpressRouteCircuitAuthorizationsClientImpl$ExpressRouteCircuitAuthorizationsService" ], [ "com.azure.resourcemanager.network.implementation.ExpressRouteCircuitPeeringsClientImpl$ExpressRouteCircuitPeeringsService" ], [ "com.azure.resourcemanager.network.implementation.ExpressRouteCircuitConnectionsClientImpl$ExpressRouteCircuitConnectionsService" ], [ "com.azure.resourcemanager.network.implementation.PeerExpressRouteCircuitConnectionsClientImpl$PeerExpressRouteCircuitConnectionsService" ], [ "com.azure.resourcemanager.network.implementation.ExpressRouteCircuitsClientImpl$ExpressRouteCircuitsService" ], [ "com.azure.resourcemanager.network.implementation.ExpressRouteServiceProvidersClientImpl$ExpressRouteServiceProvidersService" ], [ "com.azure.resourcemanager.network.implementation.ExpressRouteCrossConnectionsClientImpl$ExpressRouteCrossConnectionsService" ], [ "com.azure.resourcemanager.network.implementation.ExpressRouteCrossConnectionPeeringsClientImpl$ExpressRouteCrossConnectionPeeringsService" ], [ "com.azure.resourcemanager.network.implementation.ExpressRoutePortsLocationsClientImpl$ExpressRoutePortsLocationsService" ], [ "com.azure.resourcemanager.network.implementation.ExpressRoutePortsClientImpl$ExpressRoutePortsService" ], [ "com.azure.resourcemanager.network.implementation.ExpressRouteLinksClientImpl$ExpressRouteLinksService" ], [ "com.azure.resourcemanager.network.implementation.ExpressRoutePortAuthorizationsClientImpl$ExpressRoutePortAuthorizationsService" ], [ "com.azure.resourcemanager.network.implementation.ExpressRouteProviderPortsLocationsClientImpl$ExpressRouteProviderPortsLocationsService" ], [ "com.azure.resourcemanager.network.implementation.FirewallPoliciesClientImpl$FirewallPoliciesService" ], [ "com.azure.resourcemanager.network.implementation.FirewallPolicyRuleCollectionGroupsClientImpl$FirewallPolicyRuleCollectionGroupsService" ], [ "com.azure.resourcemanager.network.implementation.FirewallPolicyIdpsSignaturesClientImpl$FirewallPolicyIdpsSignaturesService" ], [ "com.azure.resourcemanager.network.implementation.FirewallPolicyIdpsSignaturesOverridesClientImpl$FirewallPolicyIdpsSignaturesOverridesService" ], [ "com.azure.resourcemanager.network.implementation.FirewallPolicyIdpsSignaturesFilterValuesClientImpl$FirewallPolicyIdpsSignaturesFilterValuesService" ], [ "com.azure.resourcemanager.network.implementation.IpAllocationsClientImpl$IpAllocationsService" ], [ "com.azure.resourcemanager.network.implementation.IpGroupsClientImpl$IpGroupsService" ], [ "com.azure.resourcemanager.network.implementation.LoadBalancersClientImpl$LoadBalancersService" ], [ "com.azure.resourcemanager.network.implementation.LoadBalancerBackendAddressPoolsClientImpl$LoadBalancerBackendAddressPoolsService" ], [ "com.azure.resourcemanager.network.implementation.LoadBalancerFrontendIpConfigurationsClientImpl$LoadBalancerFrontendIpConfigurationsService" ], [ "com.azure.resourcemanager.network.implementation.InboundNatRulesClientImpl$InboundNatRulesService" ], [ "com.azure.resourcemanager.network.implementation.LoadBalancerLoadBalancingRulesClientImpl$LoadBalancerLoadBalancingRulesService" ], [ "com.azure.resourcemanager.network.implementation.LoadBalancerOutboundRulesClientImpl$LoadBalancerOutboundRulesService" ], [ "com.azure.resourcemanager.network.implementation.LoadBalancerNetworkInterfacesClientImpl$LoadBalancerNetworkInterfacesService" ], [ "com.azure.resourcemanager.network.implementation.LoadBalancerProbesClientImpl$LoadBalancerProbesService" ], [ "com.azure.resourcemanager.network.implementation.NatGatewaysClientImpl$NatGatewaysService" ], [ "com.azure.resourcemanager.network.implementation.NetworkInterfaceIpConfigurationsClientImpl$NetworkInterfaceIpConfigurationsService" ], [ "com.azure.resourcemanager.network.implementation.NetworkInterfaceLoadBalancersClientImpl$NetworkInterfaceLoadBalancersService" ], [ "com.azure.resourcemanager.network.implementation.NetworkInterfaceTapConfigurationsClientImpl$NetworkInterfaceTapConfigurationsService" ], [ "com.azure.resourcemanager.network.implementation.NetworkManagersClientImpl$NetworkManagersService" ], [ "com.azure.resourcemanager.network.implementation.NetworkManagerCommitsClientImpl$NetworkManagerCommitsService" ], [ "com.azure.resourcemanager.network.implementation.NetworkManagerDeploymentStatusOperationsClientImpl$NetworkManagerDeploymentStatusOperationsService" ], [ "com.azure.resourcemanager.network.implementation.SubscriptionNetworkManagerConnectionsClientImpl$SubscriptionNetworkManagerConnectionsService" ], [ "com.azure.resourcemanager.network.implementation.ManagementGroupNetworkManagerConnectionsClientImpl$ManagementGroupNetworkManagerConnectionsService" ], [ "com.azure.resourcemanager.network.implementation.ConnectivityConfigurationsClientImpl$ConnectivityConfigurationsService" ], [ "com.azure.resourcemanager.network.implementation.NetworkGroupsClientImpl$NetworkGroupsService" ], [ "com.azure.resourcemanager.network.implementation.StaticMembersClientImpl$StaticMembersService" ], [ "com.azure.resourcemanager.network.implementation.ScopeConnectionsClientImpl$ScopeConnectionsService" ], [ "com.azure.resourcemanager.network.implementation.SecurityAdminConfigurationsClientImpl$SecurityAdminConfigurationsService" ], [ "com.azure.resourcemanager.network.implementation.AdminRuleCollectionsClientImpl$AdminRuleCollectionsService" ], [ "com.azure.resourcemanager.network.implementation.AdminRulesClientImpl$AdminRulesService" ], [ "com.azure.resourcemanager.network.implementation.NetworkProfilesClientImpl$NetworkProfilesService" ], [ "com.azure.resourcemanager.network.implementation.NetworkSecurityGroupsClientImpl$NetworkSecurityGroupsService" ], [ "com.azure.resourcemanager.network.implementation.SecurityRulesClientImpl$SecurityRulesService" ], [ "com.azure.resourcemanager.network.implementation.DefaultSecurityRulesClientImpl$DefaultSecurityRulesService" ], [ "com.azure.resourcemanager.network.implementation.NetworkVirtualAppliancesClientImpl$NetworkVirtualAppliancesService" ], [ "com.azure.resourcemanager.network.implementation.VirtualApplianceSitesClientImpl$VirtualApplianceSitesService" ], [ "com.azure.resourcemanager.network.implementation.VirtualApplianceSkusClientImpl$VirtualApplianceSkusService" ], [ "com.azure.resourcemanager.network.implementation.InboundSecurityRuleOperationsClientImpl$InboundSecurityRuleOperationsService" ], [ "com.azure.resourcemanager.network.implementation.NetworkWatchersClientImpl$NetworkWatchersService" ], [ "com.azure.resourcemanager.network.implementation.PacketCapturesClientImpl$PacketCapturesService" ], [ "com.azure.resourcemanager.network.implementation.ConnectionMonitorsClientImpl$ConnectionMonitorsService" ], [ "com.azure.resourcemanager.network.implementation.FlowLogsClientImpl$FlowLogsService" ], [ "com.azure.resourcemanager.network.implementation.OperationsClientImpl$OperationsService" ], [ "com.azure.resourcemanager.network.implementation.PrivateEndpointsClientImpl$PrivateEndpointsService" ], [ "com.azure.resourcemanager.network.implementation.AvailablePrivateEndpointTypesClientImpl$AvailablePrivateEndpointTypesService" ], [ "com.azure.resourcemanager.network.implementation.PrivateDnsZoneGroupsClientImpl$PrivateDnsZoneGroupsService" ], [ "com.azure.resourcemanager.network.implementation.PrivateLinkServicesClientImpl$PrivateLinkServicesService" ], [ "com.azure.resourcemanager.network.implementation.PublicIpPrefixesClientImpl$PublicIpPrefixesService" ], [ "com.azure.resourcemanager.network.implementation.RouteFiltersClientImpl$RouteFiltersService" ], [ "com.azure.resourcemanager.network.implementation.RouteFilterRulesClientImpl$RouteFilterRulesService" ], [ "com.azure.resourcemanager.network.implementation.RouteTablesClientImpl$RouteTablesService" ], [ "com.azure.resourcemanager.network.implementation.RoutesClientImpl$RoutesService" ], [ "com.azure.resourcemanager.network.implementation.SecurityPartnerProvidersClientImpl$SecurityPartnerProvidersService" ], [ "com.azure.resourcemanager.network.implementation.BgpServiceCommunitiesClientImpl$BgpServiceCommunitiesService" ], [ "com.azure.resourcemanager.network.implementation.ServiceEndpointPoliciesClientImpl$ServiceEndpointPoliciesService" ], [ "com.azure.resourcemanager.network.implementation.ServiceEndpointPolicyDefinitionsClientImpl$ServiceEndpointPolicyDefinitionsService" ], [ "com.azure.resourcemanager.network.implementation.ServiceTagsClientImpl$ServiceTagsService" ], [ "com.azure.resourcemanager.network.implementation.ServiceTagInformationsClientImpl$ServiceTagInformationsService" ], [ "com.azure.resourcemanager.network.implementation.UsagesClientImpl$UsagesService" ], [ "com.azure.resourcemanager.network.implementation.VirtualNetworksClientImpl$VirtualNetworksService" ], [ "com.azure.resourcemanager.network.implementation.SubnetsClientImpl$SubnetsService" ], [ "com.azure.resourcemanager.network.implementation.ResourceNavigationLinksClientImpl$ResourceNavigationLinksService" ], [ "com.azure.resourcemanager.network.implementation.ServiceAssociationLinksClientImpl$ServiceAssociationLinksService" ], [ "com.azure.resourcemanager.network.implementation.VirtualNetworkPeeringsClientImpl$VirtualNetworkPeeringsService" ], [ "com.azure.resourcemanager.network.implementation.VirtualNetworkGatewaysClientImpl$VirtualNetworkGatewaysService" ], [ "com.azure.resourcemanager.network.implementation.VirtualNetworkGatewayConnectionsClientImpl$VirtualNetworkGatewayConnectionsService" ], [ "com.azure.resourcemanager.network.implementation.LocalNetworkGatewaysClientImpl$LocalNetworkGatewaysService" ], [ "com.azure.resourcemanager.network.implementation.VirtualNetworkGatewayNatRulesClientImpl$VirtualNetworkGatewayNatRulesService" ], [ "com.azure.resourcemanager.network.implementation.VirtualNetworkTapsClientImpl$VirtualNetworkTapsService" ], [ "com.azure.resourcemanager.network.implementation.VirtualRoutersClientImpl$VirtualRoutersService" ], [ "com.azure.resourcemanager.network.implementation.VirtualRouterPeeringsClientImpl$VirtualRouterPeeringsService" ], [ "com.azure.resourcemanager.network.implementation.VirtualWansClientImpl$VirtualWansService" ], [ "com.azure.resourcemanager.network.implementation.VpnSitesClientImpl$VpnSitesService" ], [ "com.azure.resourcemanager.network.implementation.VpnSiteLinksClientImpl$VpnSiteLinksService" ], [ "com.azure.resourcemanager.network.implementation.VpnSitesConfigurationsClientImpl$VpnSitesConfigurationsService" ], [ "com.azure.resourcemanager.network.implementation.VpnServerConfigurationsClientImpl$VpnServerConfigurationsService" ], [ "com.azure.resourcemanager.network.implementation.ConfigurationPolicyGroupsClientImpl$ConfigurationPolicyGroupsService" ], [ "com.azure.resourcemanager.network.implementation.VirtualHubsClientImpl$VirtualHubsService" ], [ "com.azure.resourcemanager.network.implementation.RouteMapsClientImpl$RouteMapsService" ], [ "com.azure.resourcemanager.network.implementation.HubVirtualNetworkConnectionsClientImpl$HubVirtualNetworkConnectionsService" ], [ "com.azure.resourcemanager.network.implementation.VpnGatewaysClientImpl$VpnGatewaysService" ], [ "com.azure.resourcemanager.network.implementation.VpnLinkConnectionsClientImpl$VpnLinkConnectionsService" ], [ "com.azure.resourcemanager.network.implementation.VpnConnectionsClientImpl$VpnConnectionsService" ], [ "com.azure.resourcemanager.network.implementation.VpnSiteLinkConnectionsClientImpl$VpnSiteLinkConnectionsService" ], [ "com.azure.resourcemanager.network.implementation.NatRulesClientImpl$NatRulesService" ], [ "com.azure.resourcemanager.network.implementation.P2SVpnGatewaysClientImpl$P2SVpnGatewaysService" ], [ "com.azure.resourcemanager.network.implementation.VpnServerConfigurationsAssociatedWithVirtualWansClientImpl$VpnServerConfigurationsAssociatedWithVirtualWansService" ], [ "com.azure.resourcemanager.network.implementation.VirtualHubRouteTableV2SClientImpl$VirtualHubRouteTableV2SService" ], [ "com.azure.resourcemanager.network.implementation.ExpressRouteGatewaysClientImpl$ExpressRouteGatewaysService" ], [ "com.azure.resourcemanager.network.implementation.ExpressRouteConnectionsClientImpl$ExpressRouteConnectionsService" ], [ "com.azure.resourcemanager.network.implementation.NetworkVirtualApplianceConnectionsClientImpl$NetworkVirtualApplianceConnectionsService" ], [ "com.azure.resourcemanager.network.implementation.VirtualHubBgpConnectionsClientImpl$VirtualHubBgpConnectionsService" ], [ "com.azure.resourcemanager.network.implementation.VirtualHubIpConfigurationsClientImpl$VirtualHubIpConfigurationsService" ], [ "com.azure.resourcemanager.network.implementation.HubRouteTablesClientImpl$HubRouteTablesService" ], [ "com.azure.resourcemanager.network.implementation.RoutingIntentsClientImpl$RoutingIntentsService" ], [ "com.azure.resourcemanager.network.implementation.WebApplicationFirewallPoliciesClientImpl$WebApplicationFirewallPoliciesService" ], [ "com.azure.resourcemanager.network.implementation.NetworkManagementClientImpl$NetworkManagementClientService" ] ] \ No newline at end of file +[ [ "com.azure.resourcemanager.network.implementation.ApplicationGatewaysClientImpl$ApplicationGatewaysService" ], [ "com.azure.resourcemanager.network.implementation.ApplicationGatewayPrivateLinkResourcesClientImpl$ApplicationGatewayPrivateLinkResourcesService" ], [ "com.azure.resourcemanager.network.implementation.ApplicationGatewayPrivateEndpointConnectionsClientImpl$ApplicationGatewayPrivateEndpointConnectionsService" ], [ "com.azure.resourcemanager.network.implementation.ApplicationGatewayWafDynamicManifestsDefaultsClientImpl$ApplicationGatewayWafDynamicManifestsDefaultsService" ], [ "com.azure.resourcemanager.network.implementation.ApplicationGatewayWafDynamicManifestsClientImpl$ApplicationGatewayWafDynamicManifestsService" ], [ "com.azure.resourcemanager.network.implementation.ApplicationSecurityGroupsClientImpl$ApplicationSecurityGroupsService" ], [ "com.azure.resourcemanager.network.implementation.AvailableDelegationsClientImpl$AvailableDelegationsService" ], [ "com.azure.resourcemanager.network.implementation.AvailableResourceGroupDelegationsClientImpl$AvailableResourceGroupDelegationsService" ], [ "com.azure.resourcemanager.network.implementation.AvailableServiceAliasesClientImpl$AvailableServiceAliasesService" ], [ "com.azure.resourcemanager.network.implementation.AzureFirewallsClientImpl$AzureFirewallsService" ], [ "com.azure.resourcemanager.network.implementation.AzureFirewallFqdnTagsClientImpl$AzureFirewallFqdnTagsService" ], [ "com.azure.resourcemanager.network.implementation.WebCategoriesClientImpl$WebCategoriesService" ], [ "com.azure.resourcemanager.network.implementation.BastionHostsClientImpl$BastionHostsService" ], [ "com.azure.resourcemanager.network.implementation.NetworkInterfacesClientImpl$NetworkInterfacesService" ], [ "com.azure.resourcemanager.network.implementation.PublicIpAddressesClientImpl$PublicIpAddressesService" ], [ "com.azure.resourcemanager.network.implementation.VipSwapsClientImpl$VipSwapsService" ], [ "com.azure.resourcemanager.network.implementation.CustomIpPrefixesClientImpl$CustomIpPrefixesService" ], [ "com.azure.resourcemanager.network.implementation.DdosCustomPoliciesClientImpl$DdosCustomPoliciesService" ], [ "com.azure.resourcemanager.network.implementation.DdosProtectionPlansClientImpl$DdosProtectionPlansService" ], [ "com.azure.resourcemanager.network.implementation.DscpConfigurationsClientImpl$DscpConfigurationsService" ], [ "com.azure.resourcemanager.network.implementation.AvailableEndpointServicesClientImpl$AvailableEndpointServicesService" ], [ "com.azure.resourcemanager.network.implementation.ExpressRouteCircuitAuthorizationsClientImpl$ExpressRouteCircuitAuthorizationsService" ], [ "com.azure.resourcemanager.network.implementation.ExpressRouteCircuitPeeringsClientImpl$ExpressRouteCircuitPeeringsService" ], [ "com.azure.resourcemanager.network.implementation.ExpressRouteCircuitConnectionsClientImpl$ExpressRouteCircuitConnectionsService" ], [ "com.azure.resourcemanager.network.implementation.PeerExpressRouteCircuitConnectionsClientImpl$PeerExpressRouteCircuitConnectionsService" ], [ "com.azure.resourcemanager.network.implementation.ExpressRouteCircuitsClientImpl$ExpressRouteCircuitsService" ], [ "com.azure.resourcemanager.network.implementation.ExpressRouteServiceProvidersClientImpl$ExpressRouteServiceProvidersService" ], [ "com.azure.resourcemanager.network.implementation.ExpressRouteCrossConnectionsClientImpl$ExpressRouteCrossConnectionsService" ], [ "com.azure.resourcemanager.network.implementation.ExpressRouteCrossConnectionPeeringsClientImpl$ExpressRouteCrossConnectionPeeringsService" ], [ "com.azure.resourcemanager.network.implementation.ExpressRoutePortsLocationsClientImpl$ExpressRoutePortsLocationsService" ], [ "com.azure.resourcemanager.network.implementation.ExpressRoutePortsClientImpl$ExpressRoutePortsService" ], [ "com.azure.resourcemanager.network.implementation.ExpressRouteLinksClientImpl$ExpressRouteLinksService" ], [ "com.azure.resourcemanager.network.implementation.ExpressRoutePortAuthorizationsClientImpl$ExpressRoutePortAuthorizationsService" ], [ "com.azure.resourcemanager.network.implementation.ExpressRouteProviderPortsLocationsClientImpl$ExpressRouteProviderPortsLocationsService" ], [ "com.azure.resourcemanager.network.implementation.FirewallPoliciesClientImpl$FirewallPoliciesService" ], [ "com.azure.resourcemanager.network.implementation.FirewallPolicyRuleCollectionGroupsClientImpl$FirewallPolicyRuleCollectionGroupsService" ], [ "com.azure.resourcemanager.network.implementation.FirewallPolicyIdpsSignaturesClientImpl$FirewallPolicyIdpsSignaturesService" ], [ "com.azure.resourcemanager.network.implementation.FirewallPolicyIdpsSignaturesOverridesClientImpl$FirewallPolicyIdpsSignaturesOverridesService" ], [ "com.azure.resourcemanager.network.implementation.FirewallPolicyIdpsSignaturesFilterValuesClientImpl$FirewallPolicyIdpsSignaturesFilterValuesService" ], [ "com.azure.resourcemanager.network.implementation.FirewallPolicyDraftsClientImpl$FirewallPolicyDraftsService" ], [ "com.azure.resourcemanager.network.implementation.FirewallPolicyDeploymentsClientImpl$FirewallPolicyDeploymentsService" ], [ "com.azure.resourcemanager.network.implementation.FirewallPolicyRuleCollectionGroupDraftsClientImpl$FirewallPolicyRuleCollectionGroupDraftsService" ], [ "com.azure.resourcemanager.network.implementation.IpAllocationsClientImpl$IpAllocationsService" ], [ "com.azure.resourcemanager.network.implementation.IpGroupsClientImpl$IpGroupsService" ], [ "com.azure.resourcemanager.network.implementation.LoadBalancersClientImpl$LoadBalancersService" ], [ "com.azure.resourcemanager.network.implementation.LoadBalancerBackendAddressPoolsClientImpl$LoadBalancerBackendAddressPoolsService" ], [ "com.azure.resourcemanager.network.implementation.LoadBalancerFrontendIpConfigurationsClientImpl$LoadBalancerFrontendIpConfigurationsService" ], [ "com.azure.resourcemanager.network.implementation.InboundNatRulesClientImpl$InboundNatRulesService" ], [ "com.azure.resourcemanager.network.implementation.LoadBalancerLoadBalancingRulesClientImpl$LoadBalancerLoadBalancingRulesService" ], [ "com.azure.resourcemanager.network.implementation.LoadBalancerOutboundRulesClientImpl$LoadBalancerOutboundRulesService" ], [ "com.azure.resourcemanager.network.implementation.LoadBalancerNetworkInterfacesClientImpl$LoadBalancerNetworkInterfacesService" ], [ "com.azure.resourcemanager.network.implementation.LoadBalancerProbesClientImpl$LoadBalancerProbesService" ], [ "com.azure.resourcemanager.network.implementation.NatGatewaysClientImpl$NatGatewaysService" ], [ "com.azure.resourcemanager.network.implementation.NetworkInterfaceIpConfigurationsClientImpl$NetworkInterfaceIpConfigurationsService" ], [ "com.azure.resourcemanager.network.implementation.NetworkInterfaceLoadBalancersClientImpl$NetworkInterfaceLoadBalancersService" ], [ "com.azure.resourcemanager.network.implementation.NetworkInterfaceTapConfigurationsClientImpl$NetworkInterfaceTapConfigurationsService" ], [ "com.azure.resourcemanager.network.implementation.NetworkManagersClientImpl$NetworkManagersService" ], [ "com.azure.resourcemanager.network.implementation.NetworkManagerCommitsClientImpl$NetworkManagerCommitsService" ], [ "com.azure.resourcemanager.network.implementation.NetworkManagerDeploymentStatusOperationsClientImpl$NetworkManagerDeploymentStatusOperationsService" ], [ "com.azure.resourcemanager.network.implementation.SubscriptionNetworkManagerConnectionsClientImpl$SubscriptionNetworkManagerConnectionsService" ], [ "com.azure.resourcemanager.network.implementation.ManagementGroupNetworkManagerConnectionsClientImpl$ManagementGroupNetworkManagerConnectionsService" ], [ "com.azure.resourcemanager.network.implementation.ConnectivityConfigurationsClientImpl$ConnectivityConfigurationsService" ], [ "com.azure.resourcemanager.network.implementation.NetworkGroupsClientImpl$NetworkGroupsService" ], [ "com.azure.resourcemanager.network.implementation.StaticMembersClientImpl$StaticMembersService" ], [ "com.azure.resourcemanager.network.implementation.ScopeConnectionsClientImpl$ScopeConnectionsService" ], [ "com.azure.resourcemanager.network.implementation.SecurityAdminConfigurationsClientImpl$SecurityAdminConfigurationsService" ], [ "com.azure.resourcemanager.network.implementation.AdminRuleCollectionsClientImpl$AdminRuleCollectionsService" ], [ "com.azure.resourcemanager.network.implementation.AdminRulesClientImpl$AdminRulesService" ], [ "com.azure.resourcemanager.network.implementation.NetworkProfilesClientImpl$NetworkProfilesService" ], [ "com.azure.resourcemanager.network.implementation.NetworkSecurityGroupsClientImpl$NetworkSecurityGroupsService" ], [ "com.azure.resourcemanager.network.implementation.SecurityRulesClientImpl$SecurityRulesService" ], [ "com.azure.resourcemanager.network.implementation.DefaultSecurityRulesClientImpl$DefaultSecurityRulesService" ], [ "com.azure.resourcemanager.network.implementation.NetworkVirtualAppliancesClientImpl$NetworkVirtualAppliancesService" ], [ "com.azure.resourcemanager.network.implementation.VirtualApplianceSitesClientImpl$VirtualApplianceSitesService" ], [ "com.azure.resourcemanager.network.implementation.VirtualApplianceSkusClientImpl$VirtualApplianceSkusService" ], [ "com.azure.resourcemanager.network.implementation.InboundSecurityRuleOperationsClientImpl$InboundSecurityRuleOperationsService" ], [ "com.azure.resourcemanager.network.implementation.NetworkWatchersClientImpl$NetworkWatchersService" ], [ "com.azure.resourcemanager.network.implementation.PacketCapturesClientImpl$PacketCapturesService" ], [ "com.azure.resourcemanager.network.implementation.ConnectionMonitorsClientImpl$ConnectionMonitorsService" ], [ "com.azure.resourcemanager.network.implementation.FlowLogsClientImpl$FlowLogsService" ], [ "com.azure.resourcemanager.network.implementation.OperationsClientImpl$OperationsService" ], [ "com.azure.resourcemanager.network.implementation.PrivateEndpointsClientImpl$PrivateEndpointsService" ], [ "com.azure.resourcemanager.network.implementation.AvailablePrivateEndpointTypesClientImpl$AvailablePrivateEndpointTypesService" ], [ "com.azure.resourcemanager.network.implementation.PrivateDnsZoneGroupsClientImpl$PrivateDnsZoneGroupsService" ], [ "com.azure.resourcemanager.network.implementation.PrivateLinkServicesClientImpl$PrivateLinkServicesService" ], [ "com.azure.resourcemanager.network.implementation.PublicIpPrefixesClientImpl$PublicIpPrefixesService" ], [ "com.azure.resourcemanager.network.implementation.RouteFiltersClientImpl$RouteFiltersService" ], [ "com.azure.resourcemanager.network.implementation.RouteFilterRulesClientImpl$RouteFilterRulesService" ], [ "com.azure.resourcemanager.network.implementation.RouteTablesClientImpl$RouteTablesService" ], [ "com.azure.resourcemanager.network.implementation.RoutesClientImpl$RoutesService" ], [ "com.azure.resourcemanager.network.implementation.SecurityPartnerProvidersClientImpl$SecurityPartnerProvidersService" ], [ "com.azure.resourcemanager.network.implementation.BgpServiceCommunitiesClientImpl$BgpServiceCommunitiesService" ], [ "com.azure.resourcemanager.network.implementation.ServiceEndpointPoliciesClientImpl$ServiceEndpointPoliciesService" ], [ "com.azure.resourcemanager.network.implementation.ServiceEndpointPolicyDefinitionsClientImpl$ServiceEndpointPolicyDefinitionsService" ], [ "com.azure.resourcemanager.network.implementation.ServiceTagsClientImpl$ServiceTagsService" ], [ "com.azure.resourcemanager.network.implementation.ServiceTagInformationsClientImpl$ServiceTagInformationsService" ], [ "com.azure.resourcemanager.network.implementation.UsagesClientImpl$UsagesService" ], [ "com.azure.resourcemanager.network.implementation.VirtualNetworksClientImpl$VirtualNetworksService" ], [ "com.azure.resourcemanager.network.implementation.SubnetsClientImpl$SubnetsService" ], [ "com.azure.resourcemanager.network.implementation.ResourceNavigationLinksClientImpl$ResourceNavigationLinksService" ], [ "com.azure.resourcemanager.network.implementation.ServiceAssociationLinksClientImpl$ServiceAssociationLinksService" ], [ "com.azure.resourcemanager.network.implementation.VirtualNetworkPeeringsClientImpl$VirtualNetworkPeeringsService" ], [ "com.azure.resourcemanager.network.implementation.VirtualNetworkGatewaysClientImpl$VirtualNetworkGatewaysService" ], [ "com.azure.resourcemanager.network.implementation.VirtualNetworkGatewayConnectionsClientImpl$VirtualNetworkGatewayConnectionsService" ], [ "com.azure.resourcemanager.network.implementation.LocalNetworkGatewaysClientImpl$LocalNetworkGatewaysService" ], [ "com.azure.resourcemanager.network.implementation.VirtualNetworkGatewayNatRulesClientImpl$VirtualNetworkGatewayNatRulesService" ], [ "com.azure.resourcemanager.network.implementation.VirtualNetworkTapsClientImpl$VirtualNetworkTapsService" ], [ "com.azure.resourcemanager.network.implementation.VirtualRoutersClientImpl$VirtualRoutersService" ], [ "com.azure.resourcemanager.network.implementation.VirtualRouterPeeringsClientImpl$VirtualRouterPeeringsService" ], [ "com.azure.resourcemanager.network.implementation.VirtualWansClientImpl$VirtualWansService" ], [ "com.azure.resourcemanager.network.implementation.VpnSitesClientImpl$VpnSitesService" ], [ "com.azure.resourcemanager.network.implementation.VpnSiteLinksClientImpl$VpnSiteLinksService" ], [ "com.azure.resourcemanager.network.implementation.VpnSitesConfigurationsClientImpl$VpnSitesConfigurationsService" ], [ "com.azure.resourcemanager.network.implementation.VpnServerConfigurationsClientImpl$VpnServerConfigurationsService" ], [ "com.azure.resourcemanager.network.implementation.ConfigurationPolicyGroupsClientImpl$ConfigurationPolicyGroupsService" ], [ "com.azure.resourcemanager.network.implementation.VirtualHubsClientImpl$VirtualHubsService" ], [ "com.azure.resourcemanager.network.implementation.RouteMapsClientImpl$RouteMapsService" ], [ "com.azure.resourcemanager.network.implementation.HubVirtualNetworkConnectionsClientImpl$HubVirtualNetworkConnectionsService" ], [ "com.azure.resourcemanager.network.implementation.VpnGatewaysClientImpl$VpnGatewaysService" ], [ "com.azure.resourcemanager.network.implementation.VpnLinkConnectionsClientImpl$VpnLinkConnectionsService" ], [ "com.azure.resourcemanager.network.implementation.VpnConnectionsClientImpl$VpnConnectionsService" ], [ "com.azure.resourcemanager.network.implementation.VpnSiteLinkConnectionsClientImpl$VpnSiteLinkConnectionsService" ], [ "com.azure.resourcemanager.network.implementation.NatRulesClientImpl$NatRulesService" ], [ "com.azure.resourcemanager.network.implementation.P2SVpnGatewaysClientImpl$P2SVpnGatewaysService" ], [ "com.azure.resourcemanager.network.implementation.VpnServerConfigurationsAssociatedWithVirtualWansClientImpl$VpnServerConfigurationsAssociatedWithVirtualWansService" ], [ "com.azure.resourcemanager.network.implementation.VirtualHubRouteTableV2SClientImpl$VirtualHubRouteTableV2SService" ], [ "com.azure.resourcemanager.network.implementation.ExpressRouteGatewaysClientImpl$ExpressRouteGatewaysService" ], [ "com.azure.resourcemanager.network.implementation.ExpressRouteConnectionsClientImpl$ExpressRouteConnectionsService" ], [ "com.azure.resourcemanager.network.implementation.NetworkVirtualApplianceConnectionsClientImpl$NetworkVirtualApplianceConnectionsService" ], [ "com.azure.resourcemanager.network.implementation.VirtualHubBgpConnectionsClientImpl$VirtualHubBgpConnectionsService" ], [ "com.azure.resourcemanager.network.implementation.VirtualHubIpConfigurationsClientImpl$VirtualHubIpConfigurationsService" ], [ "com.azure.resourcemanager.network.implementation.HubRouteTablesClientImpl$HubRouteTablesService" ], [ "com.azure.resourcemanager.network.implementation.RoutingIntentsClientImpl$RoutingIntentsService" ], [ "com.azure.resourcemanager.network.implementation.WebApplicationFirewallPoliciesClientImpl$WebApplicationFirewallPoliciesService" ], [ "com.azure.resourcemanager.network.implementation.NetworkManagementClientImpl$NetworkManagementClientService" ] ] \ No newline at end of file diff --git a/sdk/resourcemanager/azure-resourcemanager-network/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-network/reflect-config.json b/sdk/resourcemanager/azure-resourcemanager-network/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-network/reflect-config.json index f8ebef9dbcbf3..91d82f4f8f758 100644 --- a/sdk/resourcemanager/azure-resourcemanager-network/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-network/reflect-config.json +++ b/sdk/resourcemanager/azure-resourcemanager-network/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-network/reflect-config.json @@ -658,6 +658,11 @@ "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.network.models.HeaderValueMatcher", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true }, { "name" : "com.azure.resourcemanager.network.models.ApplicationGatewayUrlConfiguration", "allDeclaredConstructors" : true, @@ -1748,6 +1753,26 @@ "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.network.fluent.models.FirewallPolicyDraftInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.network.fluent.models.FirewallPolicyDraftProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.network.fluent.models.FirewallPolicyRuleCollectionGroupDraftInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.network.fluent.models.FirewallPolicyRuleCollectionGroupDraftProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true }, { "name" : "com.azure.resourcemanager.network.fluent.models.IpAllocationInner", "allDeclaredConstructors" : true, @@ -2278,6 +2303,31 @@ "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.network.models.NetworkVirtualAppliancePropertiesFormatNetworkProfile", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.network.models.VirtualApplianceNetworkInterfaceConfiguration", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.network.models.VirtualApplianceNetworkInterfaceConfigurationProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.network.models.VirtualApplianceIpConfiguration", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.network.models.VirtualApplianceIpConfigurationProperties", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true }, { "name" : "com.azure.resourcemanager.network.models.VirtualApplianceAdditionalNicProperties", "allDeclaredConstructors" : true, @@ -2298,6 +2348,11 @@ "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.network.fluent.models.NetworkVirtualApplianceInstanceIdsInner", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true }, { "name" : "com.azure.resourcemanager.network.models.NetworkVirtualApplianceListResult", "allDeclaredConstructors" : true, @@ -2473,6 +2528,11 @@ "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.network.models.PacketCaptureSettings", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true }, { "name" : "com.azure.resourcemanager.network.fluent.models.PacketCaptureResultInner", "allDeclaredConstructors" : true, @@ -2728,6 +2788,11 @@ "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.network.models.ConnectionMonitorEndpointLocationDetails", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true }, { "name" : "com.azure.resourcemanager.network.models.ConnectionMonitorTestConfiguration", "allDeclaredConstructors" : true, @@ -4273,6 +4338,11 @@ "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.network.models.ApplicationGatewaySkuFamily", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true }, { "name" : "com.azure.resourcemanager.network.models.ApplicationGatewaySslProtocol", "allDeclaredConstructors" : true, @@ -4408,6 +4478,11 @@ "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.network.models.SharingScope", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true }, { "name" : "com.azure.resourcemanager.network.models.GatewayLoadBalancerTunnelProtocol", "allDeclaredConstructors" : true, @@ -4778,6 +4853,21 @@ "allDeclaredConstructors" : true, "allDeclaredFields" : true, "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.network.models.NicTypeInResponse", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.network.models.NicTypeInRequest", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true +}, { + "name" : "com.azure.resourcemanager.network.models.InboundSecurityRuleType", + "allDeclaredConstructors" : true, + "allDeclaredFields" : true, + "allDeclaredMethods" : true }, { "name" : "com.azure.resourcemanager.network.models.InboundSecurityRulesProtocol", "allDeclaredConstructors" : true, diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AdminRuleCollectionsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AdminRuleCollectionsCreateOrUpdateSamples.java index 29e86d7b8e795..216c0b403d85c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AdminRuleCollectionsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AdminRuleCollectionsCreateOrUpdateSamples.java @@ -6,6 +6,7 @@ import com.azure.resourcemanager.network.fluent.models.AdminRuleCollectionInner; import com.azure.resourcemanager.network.models.NetworkManagerSecurityGroupItem; + import java.util.Arrays; /** @@ -13,20 +14,22 @@ */ public final class AdminRuleCollectionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkManagerAdminRuleCollectionPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerAdminRuleCollectionPut.json */ /** * Sample code: Create or Update an admin rule collection. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createOrUpdateAnAdminRuleCollection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AdminRuleCollectionsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AdminRuleCollectionsDeleteSamples.java index 3aa70b45da3b8..fe78f5065f496 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AdminRuleCollectionsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AdminRuleCollectionsDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class AdminRuleCollectionsDeleteSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkManagerAdminRuleCollectionDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerAdminRuleCollectionDelete.json */ /** * Sample code: Deletes an admin rule collection. @@ -18,7 +17,11 @@ public final class AdminRuleCollectionsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deletesAnAdminRuleCollection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getAdminRuleCollections().delete("rg1", "testNetworkManager", - "myTestSecurityConfig", "testRuleCollection", false, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getAdminRuleCollections() + .delete("rg1", "testNetworkManager", "myTestSecurityConfig", "testRuleCollection", false, + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AdminRuleCollectionsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AdminRuleCollectionsGetSamples.java index 6673d854db8e1..03ccf6b0b510c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AdminRuleCollectionsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AdminRuleCollectionsGetSamples.java @@ -9,8 +9,7 @@ */ public final class AdminRuleCollectionsGetSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkManagerAdminRuleCollectionGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerAdminRuleCollectionGet.json */ /** * Sample code: Gets security admin rule collection. @@ -18,7 +17,11 @@ public final class AdminRuleCollectionsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getsSecurityAdminRuleCollection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getAdminRuleCollections().getWithResponse("rg1", - "testNetworkManager", "myTestSecurityConfig", "testRuleCollection", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getAdminRuleCollections() + .getWithResponse("rg1", "testNetworkManager", "myTestSecurityConfig", "testRuleCollection", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AdminRuleCollectionsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AdminRuleCollectionsListSamples.java index a4f50f46a0c7b..826ae0548136b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AdminRuleCollectionsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AdminRuleCollectionsListSamples.java @@ -9,8 +9,7 @@ */ public final class AdminRuleCollectionsListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkManagerAdminRuleCollectionList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerAdminRuleCollectionList.json */ /** * Sample code: List security admin rule collections. @@ -18,7 +17,10 @@ public final class AdminRuleCollectionsListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listSecurityAdminRuleCollections(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getAdminRuleCollections().list("rg1", "testNetworkManager", - "myTestSecurityConfig", null, null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getAdminRuleCollections() + .list("rg1", "testNetworkManager", "myTestSecurityConfig", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AdminRulesCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AdminRulesCreateOrUpdateSamples.java index b46731e02bde3..3dbdc5908a5ad 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AdminRulesCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AdminRulesCreateOrUpdateSamples.java @@ -11,6 +11,7 @@ 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; /** @@ -18,42 +19,49 @@ */ public final class AdminRulesCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkManagerAdminRulePut. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerAdminRulePut.json */ /** * Sample code: Create an admin rule. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createAnAdminRule(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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); } /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkManagerDefaultAdminRulePut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerDefaultAdminRulePut.json */ /** * Sample code: Create a default admin rule. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createADefaultAdminRule(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getAdminRules().createOrUpdateWithResponse("rg1", - "testNetworkManager", "myTestSecurityConfig", "testRuleCollection", "SampleDefaultAdminRule", - new DefaultAdminRule().withFlag("AllowVnetInbound"), com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getAdminRules() + .createOrUpdateWithResponse("rg1", "testNetworkManager", "myTestSecurityConfig", "testRuleCollection", + "SampleDefaultAdminRule", new DefaultAdminRule().withFlag("AllowVnetInbound"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AdminRulesDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AdminRulesDeleteSamples.java index 429b9133d55d3..35f1a082d6be3 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AdminRulesDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AdminRulesDeleteSamples.java @@ -9,9 +9,7 @@ */ public final class AdminRulesDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkManagerAdminRuleDelete - * .json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerAdminRuleDelete.json */ /** * Sample code: Deletes an admin rule. @@ -19,7 +17,11 @@ public final class AdminRulesDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deletesAnAdminRule(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getAdminRules().delete("rg1", "testNetworkManager", - "myTestSecurityConfig", "testRuleCollection", "SampleAdminRule", false, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getAdminRules() + .delete("rg1", "testNetworkManager", "myTestSecurityConfig", "testRuleCollection", "SampleAdminRule", false, + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AdminRulesGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AdminRulesGetSamples.java index 7cb0d8499bbc9..ca5aa2274ddd5 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AdminRulesGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AdminRulesGetSamples.java @@ -9,8 +9,7 @@ */ public final class AdminRulesGetSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkManagerDefaultAdminRuleGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerDefaultAdminRuleGet.json */ /** * Sample code: Gets security default admin rule. @@ -18,14 +17,16 @@ public final class AdminRulesGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getsSecurityDefaultAdminRule(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getAdminRules().getWithResponse("rg1", "testNetworkManager", - "myTestSecurityConfig", "testRuleCollection", "SampleDefaultAdminRule", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getAdminRules() + .getWithResponse("rg1", "testNetworkManager", "myTestSecurityConfig", "testRuleCollection", + "SampleDefaultAdminRule", com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkManagerAdminRuleGet. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerAdminRuleGet.json */ /** * Sample code: Gets security admin rule. @@ -33,7 +34,11 @@ public static void getsSecurityDefaultAdminRule(com.azure.resourcemanager.AzureR * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getsSecurityAdminRule(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getAdminRules().getWithResponse("rg1", "testNetworkManager", - "myTestSecurityConfig", "testRuleCollection", "SampleAdminRule", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getAdminRules() + .getWithResponse("rg1", "testNetworkManager", "myTestSecurityConfig", "testRuleCollection", + "SampleAdminRule", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AdminRulesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AdminRulesListSamples.java index 075417613551f..4db661fb0d333 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AdminRulesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AdminRulesListSamples.java @@ -9,9 +9,7 @@ */ public final class AdminRulesListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkManagerAdminRuleList. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerAdminRuleList.json */ /** * Sample code: List security admin rules. @@ -19,7 +17,11 @@ public final class AdminRulesListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listSecurityAdminRules(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getAdminRules().list("rg1", "testNetworkManager", - "myTestSecurityConfig", "testRuleCollection", null, null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getAdminRules() + .list("rg1", "testNetworkManager", "myTestSecurityConfig", "testRuleCollection", null, null, + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateEndpointConnectionsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateEndpointConnectionsDeleteSamples.java index c79916f40bb0e..63df528fdf196 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateEndpointConnectionsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateEndpointConnectionsDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class ApplicationGatewayPrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ApplicationGatewayPrivateEndpointConnectionDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayPrivateEndpointConnectionDelete.json */ /** * Sample code: Delete Application Gateway Private Endpoint Connection. @@ -19,7 +18,10 @@ public final class ApplicationGatewayPrivateEndpointConnectionsDeleteSamples { */ public static void deleteApplicationGatewayPrivateEndpointConnection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getApplicationGatewayPrivateEndpointConnections().delete("rg1", - "appgw", "connection1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getApplicationGatewayPrivateEndpointConnections() + .delete("rg1", "appgw", "connection1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateEndpointConnectionsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateEndpointConnectionsGetSamples.java index bd808903cda8f..d372700b3213c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateEndpointConnectionsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateEndpointConnectionsGetSamples.java @@ -9,8 +9,7 @@ */ public final class ApplicationGatewayPrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ApplicationGatewayPrivateEndpointConnectionGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayPrivateEndpointConnectionGet.json */ /** * Sample code: Get Application Gateway Private Endpoint Connection. @@ -19,7 +18,10 @@ public final class ApplicationGatewayPrivateEndpointConnectionsGetSamples { */ public static void getApplicationGatewayPrivateEndpointConnection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getApplicationGatewayPrivateEndpointConnections() + azure.networks() + .manager() + .serviceClient() + .getApplicationGatewayPrivateEndpointConnections() .getWithResponse("rg1", "appgw", "connection1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateEndpointConnectionsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateEndpointConnectionsListSamples.java index 9b3d4938c723b..84d0de9893fa6 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateEndpointConnectionsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateEndpointConnectionsListSamples.java @@ -9,8 +9,7 @@ */ public final class ApplicationGatewayPrivateEndpointConnectionsListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ApplicationGatewayPrivateEndpointConnectionList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayPrivateEndpointConnectionList.json */ /** * Sample code: Lists all private endpoint connections on application gateway. @@ -19,7 +18,10 @@ public final class ApplicationGatewayPrivateEndpointConnectionsListSamples { */ public static void listsAllPrivateEndpointConnectionsOnApplicationGateway(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getApplicationGatewayPrivateEndpointConnections().list("rg1", - "appgw", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getApplicationGatewayPrivateEndpointConnections() + .list("rg1", "appgw", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateEndpointConnectionsUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateEndpointConnectionsUpdateSamples.java index 460b2331f528b..f90b5824b71ed 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateEndpointConnectionsUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateEndpointConnectionsUpdateSamples.java @@ -12,8 +12,7 @@ */ public final class ApplicationGatewayPrivateEndpointConnectionsUpdateSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ApplicationGatewayPrivateEndpointConnectionUpdate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayPrivateEndpointConnectionUpdate.json */ /** * Sample code: Update Application Gateway Private Endpoint Connection. @@ -22,11 +21,15 @@ public final class ApplicationGatewayPrivateEndpointConnectionsUpdateSamples { */ public static void updateApplicationGatewayPrivateEndpointConnection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getApplicationGatewayPrivateEndpointConnections() + azure.networks() + .manager() + .serviceClient() + .getApplicationGatewayPrivateEndpointConnections() .update("rg1", "appgw", "connection1", new ApplicationGatewayPrivateEndpointConnectionInner().withName("connection1") - .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState() - .withStatus("Approved").withDescription("approved it for some reason.")), + .withPrivateLinkServiceConnectionState( + new PrivateLinkServiceConnectionState().withStatus("Approved") + .withDescription("approved it for some reason.")), com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateLinkResourcesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateLinkResourcesListSamples.java index 5ad956e14ab23..e04df4580ff30 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateLinkResourcesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayPrivateLinkResourcesListSamples.java @@ -9,8 +9,7 @@ */ public final class ApplicationGatewayPrivateLinkResourcesListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ApplicationGatewayPrivateLinkResourceList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayPrivateLinkResourceList.json */ /** * Sample code: Lists all private link resources on application gateway. @@ -19,7 +18,10 @@ public final class ApplicationGatewayPrivateLinkResourcesListSamples { */ public static void listsAllPrivateLinkResourcesOnApplicationGateway(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getApplicationGatewayPrivateLinkResources().list("rg1", "appgw", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getApplicationGatewayPrivateLinkResources() + .list("rg1", "appgw", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayWafDynamicManifestsDefaultGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayWafDynamicManifestsDefaultGetSamples.java index 8913c7ade467c..2758bc379c989 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayWafDynamicManifestsDefaultGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayWafDynamicManifestsDefaultGetSamples.java @@ -9,8 +9,7 @@ */ public final class ApplicationGatewayWafDynamicManifestsDefaultGetSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * GetApplicationGatewayWafDynamicManifestsDefault.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/GetApplicationGatewayWafDynamicManifestsDefault.json */ /** * Sample code: Gets WAF default manifest. @@ -18,7 +17,10 @@ public final class ApplicationGatewayWafDynamicManifestsDefaultGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getsWAFDefaultManifest(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getApplicationGatewayWafDynamicManifestsDefaults() + azure.networks() + .manager() + .serviceClient() + .getApplicationGatewayWafDynamicManifestsDefaults() .getWithResponse("westus", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayWafDynamicManifestsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayWafDynamicManifestsGetSamples.java index 763834fff7582..47c1abeb8788b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayWafDynamicManifestsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewayWafDynamicManifestsGetSamples.java @@ -9,8 +9,7 @@ */ public final class ApplicationGatewayWafDynamicManifestsGetSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * GetApplicationGatewayWafDynamicManifests.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/GetApplicationGatewayWafDynamicManifests.json */ /** * Sample code: Gets WAF manifests. @@ -18,7 +17,10 @@ public final class ApplicationGatewayWafDynamicManifestsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getsWAFManifests(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getApplicationGatewayWafDynamicManifests().get("westus", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getApplicationGatewayWafDynamicManifests() + .get("westus", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysBackendHealthOnDemandSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysBackendHealthOnDemandSamples.java index 175833fdc788c..967f10c8b3c2f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysBackendHealthOnDemandSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysBackendHealthOnDemandSamples.java @@ -13,8 +13,7 @@ */ public final class ApplicationGatewaysBackendHealthOnDemandSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ApplicationGatewayBackendHealthTest.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayBackendHealthTest.json */ /** * Sample code: Test Backend Health. @@ -22,13 +21,19 @@ public final class ApplicationGatewaysBackendHealthOnDemandSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void testBackendHealth(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getApplicationGateways().backendHealthOnDemand("rg1", "appgw", - new ApplicationGatewayOnDemandProbe().withProtocol(ApplicationGatewayProtocol.HTTP).withPath("/") - .withTimeout(30).withPickHostnameFromBackendHttpSettings(true) + azure.networks() + .manager() + .serviceClient() + .getApplicationGateways() + .backendHealthOnDemand("rg1", "appgw", new ApplicationGatewayOnDemandProbe() + .withProtocol(ApplicationGatewayProtocol.HTTP) + .withPath("/") + .withTimeout(30) + .withPickHostnameFromBackendHttpSettings(true) .withBackendAddressPool(new SubResource().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendaddressPools/MFAnalyticsPool")) .withBackendHttpSettings(new SubResource().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendHttpSettingsCollection/MFPoolSettings")), - null, com.azure.core.util.Context.NONE); + null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysBackendHealthSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysBackendHealthSamples.java index d162e0103efc0..57d2abf99d250 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysBackendHealthSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysBackendHealthSamples.java @@ -9,8 +9,7 @@ */ public final class ApplicationGatewaysBackendHealthSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ApplicationGatewayBackendHealthGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayBackendHealthGet.json */ /** * Sample code: Get Backend Health. @@ -18,7 +17,10 @@ public final class ApplicationGatewaysBackendHealthSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getBackendHealth(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getApplicationGateways().backendHealth("appgw", "appgw", null, - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getApplicationGateways() + .backendHealth("appgw", "appgw", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysCreateOrUpdateSamples.java index 254b76246d283..016e45f8055f1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysCreateOrUpdateSamples.java @@ -39,6 +39,7 @@ 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; @@ -48,23 +49,26 @@ */ public final class ApplicationGatewaysCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ApplicationGatewayCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayCreate.json */ /** * Sample code: Create Application Gateway. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createApplicationGateway(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getApplicationGateways().createOrUpdate("rg1", "appgw", - new ApplicationGatewayInner().withLocation("eastus").withIdentity(new ManagedServiceIdentity() - .withType(ResourceIdentityType.USER_ASSIGNED) - .withUserAssignedIdentities(mapOf( - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", - new ManagedServiceIdentityUserAssignedIdentities()))) + azure.networks() + .manager() + .serviceClient() + .getApplicationGateways() + .createOrUpdate("rg1", "appgw", new ApplicationGatewayInner().withLocation("eastus") + .withIdentity(new ManagedServiceIdentity().withType(ResourceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", + new ManagedServiceIdentityUserAssignedIdentities()))) .withSku(new ApplicationGatewaySku().withName(ApplicationGatewaySkuName.STANDARD_V2) - .withTier(ApplicationGatewayTier.STANDARD_V2).withCapacity(3)) + .withTier(ApplicationGatewayTier.STANDARD_V2) + .withCapacity(3)) .withGatewayIpConfigurations(Arrays.asList(new ApplicationGatewayIpConfigurationInner() .withName("appgwipc") .withSubnet(new SubResource().withId( @@ -76,7 +80,8 @@ public static void createApplicationGateway(com.azure.resourcemanager.AzureResou .withTrustedClientCertificates(Arrays .asList(new ApplicationGatewayTrustedClientCertificate().withName("clientcert").withData("****"))) .withSslCertificates(Arrays.asList( - new ApplicationGatewaySslCertificateInner().withName("sslcert").withData("****") + new ApplicationGatewaySslCertificateInner().withName("sslcert") + .withData("****") .withPassword("fakeTokenPlaceholder"), new ApplicationGatewaySslCertificateInner().withName("sslcert2") .withKeyVaultSecretId("fakeTokenPlaceholder"))) @@ -89,17 +94,21 @@ public static void createApplicationGateway(com.azure.resourcemanager.AzureResou .withBackendAddressPools( Arrays.asList( new ApplicationGatewayBackendAddressPool().withName("appgwpool") - .withBackendAddresses(Arrays.asList(new ApplicationGatewayBackendAddress() - .withIpAddress("10.0.1.1"), + .withBackendAddresses(Arrays.asList( + new ApplicationGatewayBackendAddress().withIpAddress("10.0.1.1"), new ApplicationGatewayBackendAddress().withIpAddress("10.0.1.2"))), new ApplicationGatewayBackendAddressPool().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool1") - .withName("appgwpool1").withBackendAddresses( + .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))) + .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/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendIPConfigurations/appgwfip")) @@ -117,19 +126,20 @@ public static void createApplicationGateway(com.azure.resourcemanager.AzureResou .withFrontendPort(new SubResource().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendPorts/appgwfp80")) .withProtocol(ApplicationGatewayProtocol.HTTP))) - .withSslProfiles(Arrays.asList(new ApplicationGatewaySslProfile() - .withName("sslProfile1") + .withSslProfiles(Arrays.asList(new ApplicationGatewaySslProfile().withName("sslProfile1") .withTrustedClientCertificates(Arrays.asList(new SubResource().withId( "/subscriptions/subid/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)) + .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) + .withName("appgwrule") + .withRuleType(ApplicationGatewayRequestRoutingRuleType.BASIC) + .withPriority(10) .withBackendAddressPool(new SubResource().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/backendAddressPools/appgwpool")) .withBackendHttpSettings(new SubResource().withId( @@ -142,9 +152,12 @@ public static void createApplicationGateway(com.azure.resourcemanager.AzureResou Arrays .asList(new ApplicationGatewayRewriteRuleSet().withName("rewriteRuleSet1") .withRewriteRules(Arrays.asList(new ApplicationGatewayRewriteRule() - .withName("Set X-Forwarded-For").withRuleSequence(102) + .withName("Set X-Forwarded-For") + .withRuleSequence(102) .withConditions(Arrays.asList(new ApplicationGatewayRewriteRuleCondition() - .withVariable("http_req_Authorization").withPattern("^Bearer").withIgnoreCase(true) + .withVariable("http_req_Authorization") + .withPattern("^Bearer") + .withIgnoreCase(true) .withNegate(false))) .withActionSet(new ApplicationGatewayRewriteRuleActionSet() .withRequestHeaderConfigurations(Arrays.asList( @@ -158,7 +171,7 @@ public static void createApplicationGateway(com.azure.resourcemanager.AzureResou new ApplicationGatewayUrlConfiguration().withModifiedPath("/abc"))))))) .withGlobalConfiguration(new ApplicationGatewayGlobalConfiguration().withEnableRequestBuffering(true) .withEnableResponseBuffering(true)), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } // Use "Map.of" if available diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysDeleteSamples.java index 830e417cf15bc..247f19a3237ec 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class ApplicationGatewaysDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ApplicationGatewayDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayDelete.json */ /** * Sample code: Delete ApplicationGateway. @@ -18,7 +17,10 @@ public final class ApplicationGatewaysDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteApplicationGateway(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getApplicationGateways().delete("rg1", "appgw", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getApplicationGateways() + .delete("rg1", "appgw", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysGetByResourceGroupSamples.java index c42f1cba8e058..88f034bc4feb6 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class ApplicationGatewaysGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ApplicationGatewayGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayGet.json */ /** * Sample code: Get ApplicationGateway. @@ -18,7 +17,10 @@ public final class ApplicationGatewaysGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getApplicationGateway(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getApplicationGateways().getByResourceGroupWithResponse("rg1", - "appgw", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getApplicationGateways() + .getByResourceGroupWithResponse("rg1", "appgw", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysGetSslPredefinedPolicySamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysGetSslPredefinedPolicySamples.java index 2372607dd7740..f9b36e9146d13 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysGetSslPredefinedPolicySamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysGetSslPredefinedPolicySamples.java @@ -9,8 +9,7 @@ */ public final class ApplicationGatewaysGetSslPredefinedPolicySamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json */ /** * Sample code: Get Available Ssl Predefined Policy by name. @@ -18,7 +17,10 @@ public final class ApplicationGatewaysGetSslPredefinedPolicySamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getAvailableSslPredefinedPolicyByName(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getApplicationGateways() + azure.networks() + .manager() + .serviceClient() + .getApplicationGateways() .getSslPredefinedPolicyWithResponse("AppGwSslPolicy20150501", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableRequestHeadersSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableRequestHeadersSamples.java index 534a1ed3809ea..2c1a66a073360 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableRequestHeadersSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableRequestHeadersSamples.java @@ -9,8 +9,7 @@ */ public final class ApplicationGatewaysListAvailableRequestHeadersSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ApplicationGatewayAvailableRequestHeadersGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayAvailableRequestHeadersGet.json */ /** * Sample code: Get Available Request Headers. @@ -18,7 +17,10 @@ public final class ApplicationGatewaysListAvailableRequestHeadersSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getAvailableRequestHeaders(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getApplicationGateways() + azure.networks() + .manager() + .serviceClient() + .getApplicationGateways() .listAvailableRequestHeadersWithResponse(com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableResponseHeadersSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableResponseHeadersSamples.java index 4082aaf790c96..26e7fa21497bd 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableResponseHeadersSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableResponseHeadersSamples.java @@ -9,8 +9,7 @@ */ public final class ApplicationGatewaysListAvailableResponseHeadersSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ApplicationGatewayAvailableResponseHeadersGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayAvailableResponseHeadersGet.json */ /** * Sample code: Get Available Response Headers. @@ -18,7 +17,10 @@ public final class ApplicationGatewaysListAvailableResponseHeadersSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getAvailableResponseHeaders(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getApplicationGateways() + azure.networks() + .manager() + .serviceClient() + .getApplicationGateways() .listAvailableResponseHeadersWithResponse(com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableServerVariablesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableServerVariablesSamples.java index f0a2ccc736730..35028cc0e1488 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableServerVariablesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableServerVariablesSamples.java @@ -9,8 +9,7 @@ */ public final class ApplicationGatewaysListAvailableServerVariablesSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ApplicationGatewayAvailableServerVariablesGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayAvailableServerVariablesGet.json */ /** * Sample code: Get Available Server Variables. @@ -18,7 +17,10 @@ public final class ApplicationGatewaysListAvailableServerVariablesSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getAvailableServerVariables(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getApplicationGateways() + azure.networks() + .manager() + .serviceClient() + .getApplicationGateways() .listAvailableServerVariablesWithResponse(com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableSslOptionsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableSslOptionsSamples.java index 88d9a79732fb7..05368471c4f4c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableSslOptionsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableSslOptionsSamples.java @@ -9,8 +9,7 @@ */ public final class ApplicationGatewaysListAvailableSslOptionsSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ApplicationGatewayAvailableSslOptionsGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayAvailableSslOptionsGet.json */ /** * Sample code: Get Available Ssl Options. @@ -18,7 +17,10 @@ public final class ApplicationGatewaysListAvailableSslOptionsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getAvailableSslOptions(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getApplicationGateways() + azure.networks() + .manager() + .serviceClient() + .getApplicationGateways() .listAvailableSslOptionsWithResponse(com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableSslPredefinedPoliciesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableSslPredefinedPoliciesSamples.java index 05d216c4000e7..1629b80a2c33a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableSslPredefinedPoliciesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableSslPredefinedPoliciesSamples.java @@ -9,8 +9,7 @@ */ public final class ApplicationGatewaysListAvailableSslPredefinedPoliciesSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json */ /** * Sample code: Get Available Ssl Predefined Policies. @@ -18,7 +17,10 @@ public final class ApplicationGatewaysListAvailableSslPredefinedPoliciesSamples * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getAvailableSslPredefinedPolicies(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getApplicationGateways() + azure.networks() + .manager() + .serviceClient() + .getApplicationGateways() .listAvailableSslPredefinedPolicies(com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableWafRuleSetsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableWafRuleSetsSamples.java index aeb8d4cb56810..432899fe952e9 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableWafRuleSetsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListAvailableWafRuleSetsSamples.java @@ -9,8 +9,7 @@ */ public final class ApplicationGatewaysListAvailableWafRuleSetsSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ApplicationGatewayAvailableWafRuleSetsGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayAvailableWafRuleSetsGet.json */ /** * Sample code: Get Available Waf Rule Sets. @@ -18,7 +17,10 @@ public final class ApplicationGatewaysListAvailableWafRuleSetsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getAvailableWafRuleSets(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getApplicationGateways() + azure.networks() + .manager() + .serviceClient() + .getApplicationGateways() .listAvailableWafRuleSetsWithResponse(com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListByResourceGroupSamples.java index 2e6715ab72c4e..8b876f8ca57ad 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class ApplicationGatewaysListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ApplicationGatewayList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayList.json */ /** * Sample code: Lists all application gateways in a resource group. @@ -19,7 +18,10 @@ public final class ApplicationGatewaysListByResourceGroupSamples { */ public static void listsAllApplicationGatewaysInAResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getApplicationGateways().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getApplicationGateways() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListSamples.java index 0da3fa00fd628..cbe62bef8da90 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysListSamples.java @@ -9,9 +9,7 @@ */ public final class ApplicationGatewaysListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ApplicationGatewayListAll. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayListAll.json */ /** * Sample code: Lists all application gateways in a subscription. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysStartSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysStartSamples.java index 8e8eabebe7fc6..5b94cf0a917fe 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysStartSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysStartSamples.java @@ -9,8 +9,7 @@ */ public final class ApplicationGatewaysStartSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ApplicationGatewayStart.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayStart.json */ /** * Sample code: Start Application Gateway. @@ -18,7 +17,10 @@ public final class ApplicationGatewaysStartSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void startApplicationGateway(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getApplicationGateways().start("rg1", "appgw", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getApplicationGateways() + .start("rg1", "appgw", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysStopSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysStopSamples.java index fff2f7a818ee4..fd54619f51497 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysStopSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysStopSamples.java @@ -9,8 +9,7 @@ */ public final class ApplicationGatewaysStopSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ApplicationGatewayStop.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayStop.json */ /** * Sample code: Stop Application Gateway. @@ -18,7 +17,10 @@ public final class ApplicationGatewaysStopSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void stopApplicationGateway(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getApplicationGateways().stop("rg1", "appgw", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getApplicationGateways() + .stop("rg1", "appgw", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysUpdateTagsSamples.java index 5d832f4ed821b..d7e94cfd9d048 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationGatewaysUpdateTagsSamples.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.network.generated; import com.azure.resourcemanager.network.models.TagsObject; + import java.util.HashMap; import java.util.Map; @@ -13,18 +14,20 @@ */ public final class ApplicationGatewaysUpdateTagsSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ApplicationGatewayUpdateTags. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationGatewayUpdateTags.json */ /** * Sample code: Update Application Gateway tags. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updateApplicationGatewayTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getApplicationGateways().updateTagsWithResponse("rg1", "AppGw", - new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsCreateOrUpdateSamples.java index f5dd9c57c2171..d45e968cd30b3 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsCreateOrUpdateSamples.java @@ -11,8 +11,7 @@ */ public final class ApplicationSecurityGroupsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ApplicationSecurityGroupCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationSecurityGroupCreate.json */ /** * Sample code: Create application security group. @@ -20,7 +19,11 @@ public final class ApplicationSecurityGroupsCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createApplicationSecurityGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getApplicationSecurityGroups().createOrUpdate("rg1", "test-asg", - new ApplicationSecurityGroupInner().withLocation("westus"), com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getApplicationSecurityGroups() + .createOrUpdate("rg1", "test-asg", new ApplicationSecurityGroupInner().withLocation("westus"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsDeleteSamples.java index b55efa2df6186..795c3c8322313 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class ApplicationSecurityGroupsDeleteSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ApplicationSecurityGroupDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationSecurityGroupDelete.json */ /** * Sample code: Delete application security group. @@ -18,7 +17,10 @@ public final class ApplicationSecurityGroupsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteApplicationSecurityGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getApplicationSecurityGroups().delete("rg1", "test-asg", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getApplicationSecurityGroups() + .delete("rg1", "test-asg", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsGetByResourceGroupSamples.java index a225d7abb9051..690996d73fed9 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsGetByResourceGroupSamples.java @@ -9,9 +9,7 @@ */ public final class ApplicationSecurityGroupsGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ApplicationSecurityGroupGet. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationSecurityGroupGet.json */ /** * Sample code: Get application security group. @@ -19,7 +17,10 @@ public final class ApplicationSecurityGroupsGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getApplicationSecurityGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getApplicationSecurityGroups().getByResourceGroupWithResponse("rg1", - "test-asg", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getApplicationSecurityGroups() + .getByResourceGroupWithResponse("rg1", "test-asg", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsListByResourceGroupSamples.java index 6c293707e5cba..c0ab5aa678e5a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsListByResourceGroupSamples.java @@ -9,9 +9,7 @@ */ public final class ApplicationSecurityGroupsListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ApplicationSecurityGroupList. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationSecurityGroupList.json */ /** * Sample code: List load balancers in resource group. @@ -19,7 +17,10 @@ public final class ApplicationSecurityGroupsListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listLoadBalancersInResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getApplicationSecurityGroups().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getApplicationSecurityGroups() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsListSamples.java index ca1ffa1721953..d267c8f634dcc 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsListSamples.java @@ -9,8 +9,7 @@ */ public final class ApplicationSecurityGroupsListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ApplicationSecurityGroupListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationSecurityGroupListAll.json */ /** * Sample code: List all application security groups. @@ -18,7 +17,10 @@ public final class ApplicationSecurityGroupsListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listAllApplicationSecurityGroups(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getApplicationSecurityGroups() + azure.networks() + .manager() + .serviceClient() + .getApplicationSecurityGroups() .list(com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsUpdateTagsSamples.java index aaca2b51088dd..67e3e02c0a67e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ApplicationSecurityGroupsUpdateTagsSamples.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.network.generated; import com.azure.resourcemanager.network.models.TagsObject; + import java.util.HashMap; import java.util.Map; @@ -13,18 +14,20 @@ */ public final class ApplicationSecurityGroupsUpdateTagsSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ApplicationSecurityGroupUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ApplicationSecurityGroupUpdateTags.json */ /** * Sample code: Update application security group tags. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updateApplicationSecurityGroupTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getApplicationSecurityGroups().updateTagsWithResponse("rg1", - "test-asg", new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), - com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AvailableDelegationsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AvailableDelegationsListSamples.java index 2caa20c33403b..0e036315ba8ed 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AvailableDelegationsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AvailableDelegationsListSamples.java @@ -9,8 +9,7 @@ */ public final class AvailableDelegationsListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * AvailableDelegationsSubscriptionGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AvailableDelegationsSubscriptionGet.json */ /** * Sample code: Get available delegations. @@ -18,7 +17,10 @@ public final class AvailableDelegationsListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getAvailableDelegations(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getAvailableDelegations().list("westcentralus", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getAvailableDelegations() + .list("westcentralus", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AvailableEndpointServicesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AvailableEndpointServicesListSamples.java index accbe46c84783..68f09a4f0d57c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AvailableEndpointServicesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AvailableEndpointServicesListSamples.java @@ -9,8 +9,7 @@ */ public final class AvailableEndpointServicesListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/EndpointServicesList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/EndpointServicesList.json */ /** * Sample code: EndpointServicesList. @@ -18,7 +17,10 @@ public final class AvailableEndpointServicesListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void endpointServicesList(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getAvailableEndpointServices().list("westus", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getAvailableEndpointServices() + .list("westus", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AvailablePrivateEndpointTypesListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AvailablePrivateEndpointTypesListByResourceGroupSamples.java index 95905eed5db45..ad0b156df9d9c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AvailablePrivateEndpointTypesListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AvailablePrivateEndpointTypesListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class AvailablePrivateEndpointTypesListByResourceGroupSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * AvailablePrivateEndpointTypesResourceGroupGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AvailablePrivateEndpointTypesResourceGroupGet.json */ /** * Sample code: Get available PrivateEndpoint types in the resource group. @@ -19,7 +18,10 @@ public final class AvailablePrivateEndpointTypesListByResourceGroupSamples { */ public static void getAvailablePrivateEndpointTypesInTheResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getAvailablePrivateEndpointTypes().listByResourceGroup("regionName", - "rg1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getAvailablePrivateEndpointTypes() + .listByResourceGroup("regionName", "rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AvailablePrivateEndpointTypesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AvailablePrivateEndpointTypesListSamples.java index 8fe8c20bb672d..af34b4f05225e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AvailablePrivateEndpointTypesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AvailablePrivateEndpointTypesListSamples.java @@ -9,8 +9,7 @@ */ public final class AvailablePrivateEndpointTypesListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * AvailablePrivateEndpointTypesGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AvailablePrivateEndpointTypesGet.json */ /** * Sample code: Get available PrivateEndpoint types. @@ -18,7 +17,10 @@ public final class AvailablePrivateEndpointTypesListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getAvailablePrivateEndpointTypes(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getAvailablePrivateEndpointTypes().list("regionName", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getAvailablePrivateEndpointTypes() + .list("regionName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AvailableResourceGroupDelegationsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AvailableResourceGroupDelegationsListSamples.java index d9e888a777794..1387795798434 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AvailableResourceGroupDelegationsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AvailableResourceGroupDelegationsListSamples.java @@ -9,8 +9,7 @@ */ public final class AvailableResourceGroupDelegationsListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * AvailableDelegationsResourceGroupGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AvailableDelegationsResourceGroupGet.json */ /** * Sample code: Get available delegations in the resource group. @@ -18,7 +17,10 @@ public final class AvailableResourceGroupDelegationsListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getAvailableDelegationsInTheResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getAvailableResourceGroupDelegations().list("westcentralus", "rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getAvailableResourceGroupDelegations() + .list("westcentralus", "rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AvailableServiceAliasesListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AvailableServiceAliasesListByResourceGroupSamples.java index 2771e3490d89b..162b0bda4a6ef 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AvailableServiceAliasesListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AvailableServiceAliasesListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class AvailableServiceAliasesListByResourceGroupSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * AvailableServiceAliasesListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AvailableServiceAliasesListByResourceGroup.json */ /** * Sample code: Get available service aliases in the resource group. @@ -19,7 +18,10 @@ public final class AvailableServiceAliasesListByResourceGroupSamples { */ public static void getAvailableServiceAliasesInTheResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getAvailableServiceAliases().listByResourceGroup("rg1", - "westcentralus", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getAvailableServiceAliases() + .listByResourceGroup("rg1", "westcentralus", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AvailableServiceAliasesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AvailableServiceAliasesListSamples.java index fdded1fe77dc2..d24bf7172756b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AvailableServiceAliasesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AvailableServiceAliasesListSamples.java @@ -9,9 +9,7 @@ */ public final class AvailableServiceAliasesListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/AvailableServiceAliasesList. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AvailableServiceAliasesList.json */ /** * Sample code: Get available service aliases. @@ -19,7 +17,10 @@ public final class AvailableServiceAliasesListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getAvailableServiceAliases(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getAvailableServiceAliases().list("westcentralus", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getAvailableServiceAliases() + .list("westcentralus", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallFqdnTagsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallFqdnTagsListSamples.java index 6041112f383b4..a39a0b36973df 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallFqdnTagsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallFqdnTagsListSamples.java @@ -9,8 +9,7 @@ */ public final class AzureFirewallFqdnTagsListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * AzureFirewallFqdnTagsListBySubscription.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallFqdnTagsListBySubscription.json */ /** * Sample code: List all Azure Firewall FQDN Tags for a given subscription. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsCreateOrUpdateSamples.java index 2a26745d21f6d..f1acfb983b72e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsCreateOrUpdateSamples.java @@ -26,6 +26,7 @@ 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; @@ -35,52 +36,56 @@ */ public final class AzureFirewallsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/AzureFirewallPutWithIpGroups. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallPutWithIpGroups.json */ /** * Sample code: Create Azure Firewall With IpGroups. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createAzureFirewallWithIpGroups(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getAzureFirewalls() + azure.networks() + .manager() + .serviceClient() + .getAzureFirewalls() .createOrUpdate("rg1", "azurefirewall", - new AzureFirewallInner().withLocation("West US").withTags(mapOf("key1", "fakeTokenPlaceholder")) + new AzureFirewallInner().withLocation("West US") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) .withZones(Arrays.asList()) - .withApplicationRuleCollections(Arrays - .asList(new AzureFirewallApplicationRuleCollection().withName("apprulecoll").withPriority(110) + .withApplicationRuleCollections( + Arrays.asList(new AzureFirewallApplicationRuleCollection().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))) + .withProtocolType(AzureFirewallApplicationRuleProtocolType.HTTPS) + .withPort(443))) .withTargetFqdns(Arrays.asList("www.test.com")))))) - .withNatRuleCollections( - Arrays - .asList( - new AzureFirewallNatRuleCollection().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"))))) + .withNatRuleCollections(Arrays.asList(new AzureFirewallNatRuleCollection().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().withName("netrulecoll").withPriority(112) + Arrays.asList(new AzureFirewallNetworkRuleCollection().withName("netrulecoll") + .withPriority(112) .withAction(new AzureFirewallRCAction().withType(AzureFirewallRCActionType.DENY)) .withRules(Arrays.asList( new AzureFirewallNetworkRule().withName("L4-traffic") @@ -90,7 +95,8 @@ public static void createAzureFirewallWithIpGroups(com.azure.resourcemanager.Azu 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") + 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")) @@ -102,58 +108,63 @@ public static void createAzureFirewallWithIpGroups(com.azure.resourcemanager.Azu "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/AzureFirewallSubnet")) .withPublicIpAddress(new SubResource().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName")))) - .withThreatIntelMode(AzureFirewallThreatIntelMode.ALERT).withSku(new AzureFirewallSku() - .withName(AzureFirewallSkuName.AZFW_VNET).withTier(AzureFirewallSkuTier.STANDARD)), + .withThreatIntelMode(AzureFirewallThreatIntelMode.ALERT) + .withSku(new AzureFirewallSku().withName(AzureFirewallSkuName.AZFW_VNET) + .withTier(AzureFirewallSkuTier.STANDARD)), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/AzureFirewallPutWithZones. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallPutWithZones.json */ /** * Sample code: Create Azure Firewall With Zones. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createAzureFirewallWithZones(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getAzureFirewalls() + azure.networks() + .manager() + .serviceClient() + .getAzureFirewalls() .createOrUpdate("rg1", "azurefirewall", - new AzureFirewallInner().withLocation("West US 2").withTags(mapOf("key1", "fakeTokenPlaceholder")) + new AzureFirewallInner().withLocation("West US 2") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) .withZones(Arrays.asList("1", "2", "3")) - .withApplicationRuleCollections(Arrays - .asList(new AzureFirewallApplicationRuleCollection().withName("apprulecoll").withPriority(110) + .withApplicationRuleCollections( + Arrays.asList(new AzureFirewallApplicationRuleCollection().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))) + .withProtocolType(AzureFirewallApplicationRuleProtocolType.HTTPS) + .withPort(443))) .withTargetFqdns(Arrays.asList("www.test.com")))))) - .withNatRuleCollections( - Arrays - .asList( - new AzureFirewallNatRuleCollection().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"))))) + .withNatRuleCollections(Arrays.asList(new AzureFirewallNatRuleCollection().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().withName("netrulecoll").withPriority(112) + Arrays.asList(new AzureFirewallNetworkRuleCollection().withName("netrulecoll") + .withPriority(112) .withAction(new AzureFirewallRCAction().withType(AzureFirewallRCActionType.DENY)) .withRules(Arrays.asList( new AzureFirewallNetworkRule().withName("L4-traffic") @@ -163,7 +174,8 @@ public static void createAzureFirewallWithZones(com.azure.resourcemanager.AzureR 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") + 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")) @@ -175,57 +187,63 @@ public static void createAzureFirewallWithZones(com.azure.resourcemanager.AzureR "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/AzureFirewallSubnet")) .withPublicIpAddress(new SubResource().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName")))) - .withThreatIntelMode(AzureFirewallThreatIntelMode.ALERT).withSku(new AzureFirewallSku() - .withName(AzureFirewallSkuName.AZFW_VNET).withTier(AzureFirewallSkuTier.STANDARD)), + .withThreatIntelMode(AzureFirewallThreatIntelMode.ALERT) + .withSku(new AzureFirewallSku().withName(AzureFirewallSkuName.AZFW_VNET) + .withTier(AzureFirewallSkuTier.STANDARD)), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/AzureFirewallPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallPut.json */ /** * Sample code: Create Azure Firewall. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createAzureFirewall(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getAzureFirewalls() + azure.networks() + .manager() + .serviceClient() + .getAzureFirewalls() .createOrUpdate("rg1", "azurefirewall", - new AzureFirewallInner().withLocation("West US").withTags(mapOf("key1", "fakeTokenPlaceholder")) + new AzureFirewallInner().withLocation("West US") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) .withZones(Arrays.asList()) - .withApplicationRuleCollections(Arrays - .asList(new AzureFirewallApplicationRuleCollection().withName("apprulecoll").withPriority(110) + .withApplicationRuleCollections( + Arrays.asList(new AzureFirewallApplicationRuleCollection().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))) + .withProtocolType(AzureFirewallApplicationRuleProtocolType.HTTPS) + .withPort(443))) .withTargetFqdns(Arrays.asList("www.test.com")))))) - .withNatRuleCollections( - Arrays - .asList( - new AzureFirewallNatRuleCollection().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"))))) + .withNatRuleCollections(Arrays.asList(new AzureFirewallNatRuleCollection().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().withName("netrulecoll").withPriority(112) + Arrays.asList(new AzureFirewallNetworkRuleCollection().withName("netrulecoll") + .withPriority(112) .withAction(new AzureFirewallRCAction().withType(AzureFirewallRCActionType.DENY)) .withRules(Arrays.asList( new AzureFirewallNetworkRule().withName("L4-traffic") @@ -235,7 +253,8 @@ public static void createAzureFirewall(com.azure.resourcemanager.AzureResourceMa 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") + 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")) @@ -247,58 +266,64 @@ public static void createAzureFirewall(com.azure.resourcemanager.AzureResourceMa "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/AzureFirewallSubnet")) .withPublicIpAddress(new SubResource().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName")))) - .withThreatIntelMode(AzureFirewallThreatIntelMode.ALERT).withSku(new AzureFirewallSku() - .withName(AzureFirewallSkuName.AZFW_VNET).withTier(AzureFirewallSkuTier.STANDARD)), + .withThreatIntelMode(AzureFirewallThreatIntelMode.ALERT) + .withSku(new AzureFirewallSku().withName(AzureFirewallSkuName.AZFW_VNET) + .withTier(AzureFirewallSkuTier.STANDARD)), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * AzureFirewallPutWithAdditionalProperties.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallPutWithAdditionalProperties.json */ /** * Sample code: Create Azure Firewall With Additional Properties. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createAzureFirewallWithAdditionalProperties(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getAzureFirewalls() + azure.networks() + .manager() + .serviceClient() + .getAzureFirewalls() .createOrUpdate("rg1", "azurefirewall", - new AzureFirewallInner().withLocation("West US").withTags(mapOf("key1", "fakeTokenPlaceholder")) + new AzureFirewallInner().withLocation("West US") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) .withZones(Arrays.asList()) - .withApplicationRuleCollections(Arrays - .asList(new AzureFirewallApplicationRuleCollection().withName("apprulecoll").withPriority(110) + .withApplicationRuleCollections( + Arrays.asList(new AzureFirewallApplicationRuleCollection().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))) + .withProtocolType(AzureFirewallApplicationRuleProtocolType.HTTPS) + .withPort(443))) .withTargetFqdns(Arrays.asList("www.test.com")))))) - .withNatRuleCollections( - Arrays - .asList( - new AzureFirewallNatRuleCollection().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"))))) + .withNatRuleCollections(Arrays.asList(new AzureFirewallNatRuleCollection().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().withName("netrulecoll").withPriority(112) + Arrays.asList(new AzureFirewallNetworkRuleCollection().withName("netrulecoll") + .withPriority(112) .withAction(new AzureFirewallRCAction().withType(AzureFirewallRCActionType.DENY)) .withRules(Arrays.asList( new AzureFirewallNetworkRule().withName("L4-traffic") @@ -308,7 +333,8 @@ public static void createAzureFirewall(com.azure.resourcemanager.AzureResourceMa 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") + 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")) @@ -328,75 +354,85 @@ public static void createAzureFirewall(com.azure.resourcemanager.AzureResourceMa } /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/AzureFirewallPutInHub.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallPutInHub.json */ /** * Sample code: Create Azure Firewall in virtual Hub. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createAzureFirewallInVirtualHub(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1")) - .withFirewallPolicy(new SubResource().withId( - "/subscriptions/subid/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); + azure.networks() + .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/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1")) + .withFirewallPolicy(new SubResource().withId( + "/subscriptions/subid/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: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * AzureFirewallPutWithMgmtSubnet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallPutWithMgmtSubnet.json */ /** * Sample code: Create Azure Firewall With management subnet. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createAzureFirewallWithManagementSubnet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getAzureFirewalls() + azure.networks() + .manager() + .serviceClient() + .getAzureFirewalls() .createOrUpdate("rg1", "azurefirewall", - new AzureFirewallInner().withLocation("West US").withTags(mapOf("key1", "fakeTokenPlaceholder")) + new AzureFirewallInner().withLocation("West US") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) .withZones(Arrays.asList()) - .withApplicationRuleCollections(Arrays - .asList(new AzureFirewallApplicationRuleCollection().withName("apprulecoll").withPriority(110) + .withApplicationRuleCollections( + Arrays.asList(new AzureFirewallApplicationRuleCollection().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))) + .withProtocolType(AzureFirewallApplicationRuleProtocolType.HTTPS) + .withPort(443))) .withTargetFqdns(Arrays.asList("www.test.com")))))) - .withNatRuleCollections( - Arrays - .asList( - new AzureFirewallNatRuleCollection().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"))))) + .withNatRuleCollections(Arrays.asList(new AzureFirewallNatRuleCollection().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().withName("netrulecoll").withPriority(112) + Arrays.asList(new AzureFirewallNetworkRuleCollection().withName("netrulecoll") + .withPriority(112) .withAction(new AzureFirewallRCAction().withType(AzureFirewallRCActionType.DENY)) .withRules(Arrays.asList( new AzureFirewallNetworkRule().withName("L4-traffic") @@ -406,7 +442,8 @@ public static void createAzureFirewallWithManagementSubnet(com.azure.resourceman 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") + 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")) @@ -425,8 +462,9 @@ public static void createAzureFirewallWithManagementSubnet(com.azure.resourceman "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/AzureFirewallManagementSubnet")) .withPublicIpAddress(new SubResource().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/managementPipName"))) - .withThreatIntelMode(AzureFirewallThreatIntelMode.ALERT).withSku(new AzureFirewallSku() - .withName(AzureFirewallSkuName.AZFW_VNET).withTier(AzureFirewallSkuTier.STANDARD)), + .withThreatIntelMode(AzureFirewallThreatIntelMode.ALERT) + .withSku(new AzureFirewallSku().withName(AzureFirewallSkuName.AZFW_VNET) + .withTier(AzureFirewallSkuTier.STANDARD)), com.azure.core.util.Context.NONE); } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsDeleteSamples.java index 9686b31135bd5..f47bd69b9b85e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class AzureFirewallsDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/AzureFirewallDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallDelete.json */ /** * Sample code: Delete Azure Firewall. @@ -18,7 +17,10 @@ public final class AzureFirewallsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteAzureFirewall(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getAzureFirewalls().delete("rg1", "azurefirewall", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getAzureFirewalls() + .delete("rg1", "azurefirewall", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsGetByResourceGroupSamples.java index 6e0cbbb347cd3..741a380d4273d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class AzureFirewallsGetByResourceGroupSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * AzureFirewallGetWithAdditionalProperties.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallGetWithAdditionalProperties.json */ /** * Sample code: Get Azure Firewall With Additional Properties. @@ -18,14 +17,15 @@ public final class AzureFirewallsGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getAzureFirewallWithAdditionalProperties(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getAzureFirewalls().getByResourceGroupWithResponse("rg1", - "azurefirewall", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getAzureFirewalls() + .getByResourceGroupWithResponse("rg1", "azurefirewall", com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/AzureFirewallGetWithIpGroups. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallGetWithIpGroups.json */ /** * Sample code: Get Azure Firewall With IpGroups. @@ -33,14 +33,15 @@ public static void getAzureFirewallWithAdditionalProperties(com.azure.resourcema * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getAzureFirewallWithIpGroups(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getAzureFirewalls().getByResourceGroupWithResponse("rg1", - "azurefirewall", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getAzureFirewalls() + .getByResourceGroupWithResponse("rg1", "azurefirewall", com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/AzureFirewallGetWithZones. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallGetWithZones.json */ /** * Sample code: Get Azure Firewall With Zones. @@ -48,13 +49,15 @@ public static void getAzureFirewallWithIpGroups(com.azure.resourcemanager.AzureR * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getAzureFirewallWithZones(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getAzureFirewalls().getByResourceGroupWithResponse("rg1", - "azurefirewall", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getAzureFirewalls() + .getByResourceGroupWithResponse("rg1", "azurefirewall", com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * AzureFirewallGetWithMgmtSubnet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallGetWithMgmtSubnet.json */ /** * Sample code: Get Azure Firewall With management subnet. @@ -62,13 +65,15 @@ public static void getAzureFirewallWithZones(com.azure.resourcemanager.AzureReso * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getAzureFirewallWithManagementSubnet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getAzureFirewalls().getByResourceGroupWithResponse("rg1", - "azurefirewall", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getAzureFirewalls() + .getByResourceGroupWithResponse("rg1", "azurefirewall", com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/AzureFirewallGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallGet.json */ /** * Sample code: Get Azure Firewall. @@ -76,7 +81,10 @@ public static void getAzureFirewallWithManagementSubnet(com.azure.resourcemanage * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getAzureFirewall(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getAzureFirewalls().getByResourceGroupWithResponse("rg1", - "azurefirewall", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getAzureFirewalls() + .getByResourceGroupWithResponse("rg1", "azurefirewall", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsListByResourceGroupSamples.java index 7e827e01654bf..8a8aa8c04bab8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class AzureFirewallsListByResourceGroupSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * AzureFirewallListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallListByResourceGroup.json */ /** * Sample code: List all Azure Firewalls for a given resource group. @@ -19,7 +18,10 @@ public final class AzureFirewallsListByResourceGroupSamples { */ public static void listAllAzureFirewallsForAGivenResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getAzureFirewalls().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getAzureFirewalls() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsListLearnedPrefixesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsListLearnedPrefixesSamples.java index 3932dd181f088..a761602cf66e3 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsListLearnedPrefixesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsListLearnedPrefixesSamples.java @@ -9,8 +9,7 @@ */ public final class AzureFirewallsListLearnedPrefixesSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * AzureFirewallListLearnedIPPrefixes.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallListLearnedIPPrefixes.json */ /** * Sample code: AzureFirewallListLearnedPrefixes. @@ -18,7 +17,10 @@ public final class AzureFirewallsListLearnedPrefixesSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void azureFirewallListLearnedPrefixes(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getAzureFirewalls().listLearnedPrefixes("rg1", "azureFirewall1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getAzureFirewalls() + .listLearnedPrefixes("rg1", "azureFirewall1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsListSamples.java index 235ee6ca1fe81..e95918f43e77c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsListSamples.java @@ -9,8 +9,7 @@ */ public final class AzureFirewallsListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * AzureFirewallListBySubscription.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallListBySubscription.json */ /** * Sample code: List all Azure Firewalls for a given subscription. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsPacketCaptureSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsPacketCaptureSamples.java index a863af40b2d6c..a924b13bcf960 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsPacketCaptureSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsPacketCaptureSamples.java @@ -9,6 +9,7 @@ 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; /** @@ -16,28 +17,34 @@ */ public final class AzureFirewallsPacketCaptureSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/AzureFirewallPacketCapture. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallPacketCapture.json */ /** * Sample code: AzureFirewallPacketCapture. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void azureFirewallPacketCapture(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsUpdateTagsSamples.java index e4e18f7bd84f1..049f8e40b7da1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/AzureFirewallsUpdateTagsSamples.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.network.generated; import com.azure.resourcemanager.network.models.TagsObject; + import java.util.HashMap; import java.util.Map; @@ -13,17 +14,20 @@ */ public final class AzureFirewallsUpdateTagsSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/AzureFirewallUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureFirewallUpdateTags.json */ /** * Sample code: Update Azure Firewall Tags. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updateAzureFirewallTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getAzureFirewalls().updateTags("azfwtest", "fw1", - new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsCreateOrUpdateSamples.java index 12fd8b5e6aa80..3cc538ff6ec55 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsCreateOrUpdateSamples.java @@ -9,6 +9,7 @@ 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; /** @@ -16,61 +17,70 @@ */ public final class BastionHostsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/BastionHostDeveloperPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/BastionHostDeveloperPut.json */ /** * Sample code: Create Developer Bastion Host. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createDeveloperBastionHost(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getBastionHosts().createOrUpdate("rg2", "bastionhostdeveloper", - new BastionHostInner().withIpConfigurations(Arrays.asList()) - .withVirtualNetwork(new SubResource().withId( - "/subscriptions/subid/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); + azure.networks() + .manager() + .serviceClient() + .getBastionHosts() + .createOrUpdate("rg2", "bastionhostdeveloper", + new BastionHostInner().withIpConfigurations(Arrays.asList()) + .withVirtualNetwork(new SubResource().withId( + "/subscriptions/subid/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: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/BastionHostPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/BastionHostPut.json */ /** * Sample code: Create Bastion Host. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createBastionHost(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getBastionHosts().createOrUpdate("rg1", "bastionhosttenant", - new BastionHostInner().withIpConfigurations(Arrays.asList(new BastionHostIpConfiguration() - .withName("bastionHostIpConfiguration") - .withSubnet(new SubResource().withId( - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet")) - .withPublicIpAddress(new SubResource().withId( - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName")))), - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getBastionHosts() + .createOrUpdate("rg1", "bastionhosttenant", + new BastionHostInner().withIpConfigurations(Arrays.asList(new BastionHostIpConfiguration() + .withName("bastionHostIpConfiguration") + .withSubnet(new SubResource().withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet")) + .withPublicIpAddress(new SubResource().withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName")))), + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/BastionHostPutWithZones.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/BastionHostPutWithZones.json */ /** * Sample code: Create Bastion Host With Zones. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createBastionHostWithZones(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getBastionHosts().createOrUpdate("rg1", "bastionhosttenant", - new BastionHostInner().withIpConfigurations(Arrays.asList(new BastionHostIpConfiguration() - .withName("bastionHostIpConfiguration") - .withSubnet(new SubResource().withId( - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet")) - .withPublicIpAddress(new SubResource().withId( - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName")))), - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getBastionHosts() + .createOrUpdate("rg1", "bastionhosttenant", + new BastionHostInner().withIpConfigurations(Arrays.asList(new BastionHostIpConfiguration() + .withName("bastionHostIpConfiguration") + .withSubnet(new SubResource().withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet")) + .withPublicIpAddress(new SubResource().withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pipName")))), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsDeleteSamples.java index 1db3516719fda..a85055983883a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsDeleteSamples.java @@ -9,9 +9,7 @@ */ public final class BastionHostsDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/BastionHostDeveloperDelete. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/BastionHostDeveloperDelete.json */ /** * Sample code: Delete Developer Bastion Host. @@ -19,13 +17,15 @@ public final class BastionHostsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteDeveloperBastionHost(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getBastionHosts().delete("rg2", "bastionhostdeveloper", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getBastionHosts() + .delete("rg2", "bastionhostdeveloper", com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/BastionHostDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/BastionHostDelete.json */ /** * Sample code: Delete Bastion Host. @@ -33,7 +33,10 @@ public static void deleteDeveloperBastionHost(com.azure.resourcemanager.AzureRes * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteBastionHost(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getBastionHosts().delete("rg1", "bastionhosttenant", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getBastionHosts() + .delete("rg1", "bastionhosttenant", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsGetByResourceGroupSamples.java index 02481306bbec3..64e79399644ab 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class BastionHostsGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/BastionHostDeveloperGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/BastionHostDeveloperGet.json */ /** * Sample code: Get Developer Bastion Host. @@ -18,13 +17,15 @@ public final class BastionHostsGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getDeveloperBastionHost(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getBastionHosts().getByResourceGroupWithResponse("rg1", - "bastionhostdeveloper'", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getBastionHosts() + .getByResourceGroupWithResponse("rg1", "bastionhostdeveloper'", com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/BastionHostGetWithZones.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/BastionHostGetWithZones.json */ /** * Sample code: Get Bastion Host With Zones. @@ -32,13 +33,15 @@ public static void getDeveloperBastionHost(com.azure.resourcemanager.AzureResour * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getBastionHostWithZones(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getBastionHosts().getByResourceGroupWithResponse("rg1", - "bastionhosttenant'", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getBastionHosts() + .getByResourceGroupWithResponse("rg1", "bastionhosttenant'", com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/BastionHostGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/BastionHostGet.json */ /** * Sample code: Get Bastion Host. @@ -46,7 +49,10 @@ public static void getBastionHostWithZones(com.azure.resourcemanager.AzureResour * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getBastionHost(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getBastionHosts().getByResourceGroupWithResponse("rg1", - "bastionhosttenant'", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getBastionHosts() + .getByResourceGroupWithResponse("rg1", "bastionhosttenant'", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsListByResourceGroupSamples.java index 65067bc92c0f4..93dda9fdd5ae8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class BastionHostsListByResourceGroupSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * BastionHostListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/BastionHostListByResourceGroup.json */ /** * Sample code: List all Bastion Hosts for a given resource group. @@ -18,7 +17,10 @@ public final class BastionHostsListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listAllBastionHostsForAGivenResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getBastionHosts().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getBastionHosts() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsListSamples.java index 7aca2c27cb543..6bc58352dbc34 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsListSamples.java @@ -9,9 +9,7 @@ */ public final class BastionHostsListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/BastionHostListBySubscription - * .json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/BastionHostListBySubscription.json */ /** * Sample code: List all Bastion Hosts for a given subscription. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsUpdateTagsSamples.java index 2c487462f2db4..e4d099c337e6b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/BastionHostsUpdateTagsSamples.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.network.generated; import com.azure.resourcemanager.network.models.TagsObject; + import java.util.HashMap; import java.util.Map; @@ -13,17 +14,20 @@ */ public final class BastionHostsUpdateTagsSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/BastionHostPatch.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/BastionHostPatch.json */ /** * Sample code: Patch Bastion Host. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void patchBastionHost(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getBastionHosts().updateTags("rg1", "bastionhosttenant", - new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/BgpServiceCommunitiesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/BgpServiceCommunitiesListSamples.java index ba78b1134024a..d036fe81beec1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/BgpServiceCommunitiesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/BgpServiceCommunitiesListSamples.java @@ -9,8 +9,7 @@ */ public final class BgpServiceCommunitiesListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ServiceCommunityList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceCommunityList.json */ /** * Sample code: ServiceCommunityList. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConfigurationPolicyGroupsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConfigurationPolicyGroupsCreateOrUpdateSamples.java index f198f2a641a61..5aeba21f63ee9 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConfigurationPolicyGroupsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConfigurationPolicyGroupsCreateOrUpdateSamples.java @@ -7,6 +7,7 @@ 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; /** @@ -14,26 +15,28 @@ */ public final class ConfigurationPolicyGroupsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ConfigurationPolicyGroupPut. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ConfigurationPolicyGroupPut.json */ /** * Sample code: ConfigurationPolicyGroupPut. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void configurationPolicyGroupPut(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConfigurationPolicyGroupsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConfigurationPolicyGroupsDeleteSamples.java index d1aba8e5f4ede..3a3998ac4c6c5 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConfigurationPolicyGroupsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConfigurationPolicyGroupsDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class ConfigurationPolicyGroupsDeleteSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ConfigurationPolicyGroupDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ConfigurationPolicyGroupDelete.json */ /** * Sample code: ConfigurationPolicyGroupDelete. @@ -18,7 +17,10 @@ public final class ConfigurationPolicyGroupsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void configurationPolicyGroupDelete(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getConfigurationPolicyGroups().delete("rg1", - "vpnServerConfiguration1", "policyGroup1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getConfigurationPolicyGroups() + .delete("rg1", "vpnServerConfiguration1", "policyGroup1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConfigurationPolicyGroupsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConfigurationPolicyGroupsGetSamples.java index 727891815eb45..621019c8468c3 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConfigurationPolicyGroupsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConfigurationPolicyGroupsGetSamples.java @@ -9,9 +9,7 @@ */ public final class ConfigurationPolicyGroupsGetSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ConfigurationPolicyGroupGet. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ConfigurationPolicyGroupGet.json */ /** * Sample code: ConfigurationPolicyGroupGet. @@ -19,7 +17,10 @@ public final class ConfigurationPolicyGroupsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void configurationPolicyGroupGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getConfigurationPolicyGroups().getWithResponse("rg1", - "vpnServerConfiguration1", "policyGroup1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getConfigurationPolicyGroups() + .getWithResponse("rg1", "vpnServerConfiguration1", "policyGroup1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConfigurationPolicyGroupsListByVpnServerConfigurationSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConfigurationPolicyGroupsListByVpnServerConfigurationSamples.java index c2e6a004f80cc..0775a8f16755d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConfigurationPolicyGroupsListByVpnServerConfigurationSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConfigurationPolicyGroupsListByVpnServerConfigurationSamples.java @@ -9,8 +9,7 @@ */ public final class ConfigurationPolicyGroupsListByVpnServerConfigurationSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ConfigurationPolicyGroupListByVpnServerConfiguration.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ConfigurationPolicyGroupListByVpnServerConfiguration.json */ /** * Sample code: ConfigurationPolicyGroupListByVpnServerConfiguration. @@ -19,7 +18,10 @@ public final class ConfigurationPolicyGroupsListByVpnServerConfigurationSamples */ public static void configurationPolicyGroupListByVpnServerConfiguration(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getConfigurationPolicyGroups().listByVpnServerConfiguration("rg1", - "vpnServerConfiguration1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getConfigurationPolicyGroups() + .listByVpnServerConfiguration("rg1", "vpnServerConfiguration1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsCreateOrUpdateSamples.java index f7534d18dc0b2..3dd0c73a19702 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsCreateOrUpdateSamples.java @@ -10,10 +10,15 @@ 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; /** @@ -21,61 +26,116 @@ */ public final class ConnectionMonitorsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkWatcherConnectionMonitorCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherConnectionMonitorCreate.json */ /** * Sample code: Create connection monitor V1. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createConnectionMonitorV1(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getConnectionMonitors().createOrUpdate("rg1", "nw1", "cm1", - new ConnectionMonitorInner().withLocation("eastus") + azure.networks() + .manager() + .serviceClient() + .getConnectionMonitors() + .createOrUpdate("rg1", "nw1", "cm1", new ConnectionMonitorInner().withLocation("eastus") .withEndpoints(Arrays.asList( - new ConnectionMonitorEndpoint().withName("source").withResourceId( - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/ct1"), + new ConnectionMonitorEndpoint().withName("source") + .withResourceId( + "/subscriptions/subid/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) + .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); + .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: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherConnectionMonitorCreateWithArcNetwork.json + */ + /** + * Sample code: Create connection monitor with Arc Network. + * + * @param azure The entry point for accessing resource management APIs in Azure. + */ + public static void createConnectionMonitorWithArcNetwork(com.azure.resourcemanager.AzureResourceManager azure) { + azure.networks() + .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: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkWatcherConnectionMonitorV2Create.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherConnectionMonitorV2Create.json */ /** * Sample code: Create connection monitor V2. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createConnectionMonitorV2(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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) + azure.networks() + .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); + .withOutputs(Arrays.asList()), null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsDeleteSamples.java index d52089c3e4865..0df5e9257024b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class ConnectionMonitorsDeleteSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkWatcherConnectionMonitorDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherConnectionMonitorDelete.json */ /** * Sample code: Delete connection monitor. @@ -18,7 +17,10 @@ public final class ConnectionMonitorsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteConnectionMonitor(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getConnectionMonitors().delete("rg1", "nw1", "cm1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getConnectionMonitors() + .delete("rg1", "nw1", "cm1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsGetSamples.java index 5c4499cd14d9b..de1e6f590ed3f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsGetSamples.java @@ -9,8 +9,7 @@ */ public final class ConnectionMonitorsGetSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkWatcherConnectionMonitorGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherConnectionMonitorGet.json */ /** * Sample code: Get connection monitor. @@ -18,7 +17,10 @@ public final class ConnectionMonitorsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getConnectionMonitor(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getConnectionMonitors().getWithResponse("rg1", "nw1", "cm1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getConnectionMonitors() + .getWithResponse("rg1", "nw1", "cm1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsListSamples.java index 203a0699a752d..77fad41fc2f75 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsListSamples.java @@ -9,8 +9,7 @@ */ public final class ConnectionMonitorsListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkWatcherConnectionMonitorList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherConnectionMonitorList.json */ /** * Sample code: List connection monitors. @@ -18,7 +17,10 @@ public final class ConnectionMonitorsListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listConnectionMonitors(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getConnectionMonitors().list("rg1", "nw1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getConnectionMonitors() + .list("rg1", "nw1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsQuerySamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsQuerySamples.java index 0677ac8535b58..e143633bb3b47 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsQuerySamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsQuerySamples.java @@ -9,8 +9,7 @@ */ public final class ConnectionMonitorsQuerySamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkWatcherConnectionMonitorQuery.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherConnectionMonitorQuery.json */ /** * Sample code: Query connection monitor. @@ -18,7 +17,10 @@ public final class ConnectionMonitorsQuerySamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void queryConnectionMonitor(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getConnectionMonitors().query("rg1", "nw1", "cm1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getConnectionMonitors() + .query("rg1", "nw1", "cm1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsStartSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsStartSamples.java index 8247ae4dcfd6b..36799a43b4392 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsStartSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsStartSamples.java @@ -9,8 +9,7 @@ */ public final class ConnectionMonitorsStartSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkWatcherConnectionMonitorStart.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherConnectionMonitorStart.json */ /** * Sample code: Start connection monitor. @@ -18,7 +17,10 @@ public final class ConnectionMonitorsStartSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void startConnectionMonitor(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getConnectionMonitors().start("rg1", "nw1", "cm1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getConnectionMonitors() + .start("rg1", "nw1", "cm1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsStopSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsStopSamples.java index 40419598da66b..a2d7624cefef5 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsStopSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsStopSamples.java @@ -9,8 +9,7 @@ */ public final class ConnectionMonitorsStopSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkWatcherConnectionMonitorStop.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherConnectionMonitorStop.json */ /** * Sample code: Stop connection monitor. @@ -18,7 +17,10 @@ public final class ConnectionMonitorsStopSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void stopConnectionMonitor(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getConnectionMonitors().stop("rg1", "nw1", "cm1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getConnectionMonitors() + .stop("rg1", "nw1", "cm1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsUpdateTagsSamples.java index b7baac6c488c6..d9f89f1c50ead 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectionMonitorsUpdateTagsSamples.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.network.generated; import com.azure.resourcemanager.network.models.TagsObject; + import java.util.HashMap; import java.util.Map; @@ -13,17 +14,20 @@ */ public final class ConnectionMonitorsUpdateTagsSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkWatcherConnectionMonitorUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherConnectionMonitorUpdateTags.json */ /** * Sample code: Update connection monitor tags. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updateConnectionMonitorTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getConnectionMonitors().updateTagsWithResponse("rg1", "nw1", "cm1", - new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectivityConfigurationsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectivityConfigurationsCreateOrUpdateSamples.java index 4e02e3d795212..8c144a54c37c4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectivityConfigurationsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectivityConfigurationsCreateOrUpdateSamples.java @@ -12,6 +12,7 @@ import com.azure.resourcemanager.network.models.Hub; import com.azure.resourcemanager.network.models.IsGlobal; import com.azure.resourcemanager.network.models.UseHubGateway; + import java.util.Arrays; /** @@ -19,28 +20,31 @@ */ public final class ConnectivityConfigurationsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkManagerConnectivityConfigurationPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectivityConfigurationPut.json */ /** * Sample code: ConnectivityConfigurationsPut. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void connectivityConfigurationsPut(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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) - .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); + azure.networks() + .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) + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectivityConfigurationsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectivityConfigurationsDeleteSamples.java index 5a52220a04d97..0c49ceb3e9fb6 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectivityConfigurationsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectivityConfigurationsDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class ConnectivityConfigurationsDeleteSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkManagerConnectivityConfigurationDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectivityConfigurationDelete.json */ /** * Sample code: ConnectivityConfigurationsDelete. @@ -18,7 +17,11 @@ public final class ConnectivityConfigurationsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void connectivityConfigurationsDelete(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getConnectivityConfigurations().delete("myResourceGroup", - "testNetworkManager", "myTestConnectivityConfig", false, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getConnectivityConfigurations() + .delete("myResourceGroup", "testNetworkManager", "myTestConnectivityConfig", false, + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectivityConfigurationsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectivityConfigurationsGetSamples.java index cb8b2282dd1b3..1207af13f9bb1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectivityConfigurationsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectivityConfigurationsGetSamples.java @@ -9,8 +9,7 @@ */ public final class ConnectivityConfigurationsGetSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkManagerConnectivityConfigurationGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectivityConfigurationGet.json */ /** * Sample code: ConnectivityConfigurationsGet. @@ -18,7 +17,11 @@ public final class ConnectivityConfigurationsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void connectivityConfigurationsGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getConnectivityConfigurations().getWithResponse("myResourceGroup", - "testNetworkManager", "myTestConnectivityConfig", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getConnectivityConfigurations() + .getWithResponse("myResourceGroup", "testNetworkManager", "myTestConnectivityConfig", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectivityConfigurationsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectivityConfigurationsListSamples.java index 020373a44274e..d1d9943026e77 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectivityConfigurationsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ConnectivityConfigurationsListSamples.java @@ -9,8 +9,7 @@ */ public final class ConnectivityConfigurationsListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkManagerConnectivityConfigurationList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectivityConfigurationList.json */ /** * Sample code: ConnectivityConfigurationsList. @@ -18,7 +17,10 @@ public final class ConnectivityConfigurationsListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void connectivityConfigurationsList(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getConnectivityConfigurations().list("myResourceGroup", - "testNetworkManager", null, null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getConnectivityConfigurations() + .list("myResourceGroup", "testNetworkManager", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/CustomIpPrefixesCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/CustomIpPrefixesCreateOrUpdateSamples.java index 789e3418abea9..4f39651052f81 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/CustomIpPrefixesCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/CustomIpPrefixesCreateOrUpdateSamples.java @@ -11,8 +11,7 @@ */ public final class CustomIpPrefixesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * CustomIpPrefixCreateCustomizedValues.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CustomIpPrefixCreateCustomizedValues.json */ /** * Sample code: Create custom IP prefix allocation method. @@ -20,7 +19,12 @@ public final class CustomIpPrefixesCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createCustomIPPrefixAllocationMethod(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getCustomIpPrefixes().createOrUpdate("rg1", "test-customipprefix", - new CustomIpPrefixInner().withLocation("westus").withCidr("0.0.0.0/24"), com.azure.core.util.Context.NONE); + azure.networks() + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/CustomIpPrefixesDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/CustomIpPrefixesDeleteSamples.java index 627f055392895..74a30cfbabebd 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/CustomIpPrefixesDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/CustomIpPrefixesDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class CustomIpPrefixesDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/CustomIpPrefixDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CustomIpPrefixDelete.json */ /** * Sample code: Delete custom IP prefix. @@ -18,7 +17,10 @@ public final class CustomIpPrefixesDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteCustomIPPrefix(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getCustomIpPrefixes().delete("rg1", "test-customipprefix", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getCustomIpPrefixes() + .delete("rg1", "test-customipprefix", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/CustomIpPrefixesGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/CustomIpPrefixesGetByResourceGroupSamples.java index 89f6725d87fe4..8fb10185b2a51 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/CustomIpPrefixesGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/CustomIpPrefixesGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class CustomIpPrefixesGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/CustomIpPrefixGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CustomIpPrefixGet.json */ /** * Sample code: Get custom IP prefix. @@ -18,7 +17,10 @@ public final class CustomIpPrefixesGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getCustomIPPrefix(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getCustomIpPrefixes().getByResourceGroupWithResponse("rg1", - "test-customipprefix", null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getCustomIpPrefixes() + .getByResourceGroupWithResponse("rg1", "test-customipprefix", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/CustomIpPrefixesListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/CustomIpPrefixesListByResourceGroupSamples.java index ced99fddfc4b8..df3d593efa490 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/CustomIpPrefixesListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/CustomIpPrefixesListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class CustomIpPrefixesListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/CustomIpPrefixList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CustomIpPrefixList.json */ /** * Sample code: List resource group Custom IP prefixes. @@ -18,7 +17,10 @@ public final class CustomIpPrefixesListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listResourceGroupCustomIPPrefixes(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getCustomIpPrefixes().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getCustomIpPrefixes() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/CustomIpPrefixesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/CustomIpPrefixesListSamples.java index ff7e2f5b43af4..0003deb71a1b3 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/CustomIpPrefixesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/CustomIpPrefixesListSamples.java @@ -9,8 +9,7 @@ */ public final class CustomIpPrefixesListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/CustomIpPrefixListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CustomIpPrefixListAll.json */ /** * Sample code: List all custom IP prefixes. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/CustomIpPrefixesUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/CustomIpPrefixesUpdateTagsSamples.java index da659f8e6b0e9..ddff4bba298e4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/CustomIpPrefixesUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/CustomIpPrefixesUpdateTagsSamples.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.network.generated; import com.azure.resourcemanager.network.models.TagsObject; + import java.util.HashMap; import java.util.Map; @@ -13,18 +14,20 @@ */ public final class CustomIpPrefixesUpdateTagsSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/CustomIpPrefixUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CustomIpPrefixUpdateTags.json */ /** * Sample code: Update public IP address tags. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updatePublicIPAddressTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getCustomIpPrefixes().updateTagsWithResponse("rg1", - "test-customipprefix", new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), - com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosCustomPoliciesCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosCustomPoliciesCreateOrUpdateSamples.java index f08ed45807b92..158bc3fad44f6 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosCustomPoliciesCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosCustomPoliciesCreateOrUpdateSamples.java @@ -11,8 +11,7 @@ */ public final class DdosCustomPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/DdosCustomPolicyCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DdosCustomPolicyCreate.json */ /** * Sample code: Create DDoS custom policy. @@ -20,8 +19,11 @@ public final class DdosCustomPoliciesCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createDDoSCustomPolicy(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getDdosCustomPolicies().createOrUpdate("rg1", - "test-ddos-custom-policy", new DdosCustomPolicyInner().withLocation("centraluseuap"), - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getDdosCustomPolicies() + .createOrUpdate("rg1", "test-ddos-custom-policy", new DdosCustomPolicyInner().withLocation("centraluseuap"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosCustomPoliciesDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosCustomPoliciesDeleteSamples.java index 24e6bb5248573..dc5b2fb042b1a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosCustomPoliciesDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosCustomPoliciesDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class DdosCustomPoliciesDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/DdosCustomPolicyDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DdosCustomPolicyDelete.json */ /** * Sample code: Delete DDoS custom policy. @@ -18,7 +17,10 @@ public final class DdosCustomPoliciesDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteDDoSCustomPolicy(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getDdosCustomPolicies().delete("rg1", "test-ddos-custom-policy", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getDdosCustomPolicies() + .delete("rg1", "test-ddos-custom-policy", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosCustomPoliciesGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosCustomPoliciesGetByResourceGroupSamples.java index c2ab56ef5e257..1e3804858bd0d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosCustomPoliciesGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosCustomPoliciesGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class DdosCustomPoliciesGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/DdosCustomPolicyGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DdosCustomPolicyGet.json */ /** * Sample code: Get DDoS custom policy. @@ -18,7 +17,10 @@ public final class DdosCustomPoliciesGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getDDoSCustomPolicy(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getDdosCustomPolicies().getByResourceGroupWithResponse("rg1", - "test-ddos-custom-policy", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getDdosCustomPolicies() + .getByResourceGroupWithResponse("rg1", "test-ddos-custom-policy", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosCustomPoliciesUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosCustomPoliciesUpdateTagsSamples.java index 75d366caf9448..37ba4ec2692fc 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosCustomPoliciesUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosCustomPoliciesUpdateTagsSamples.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.network.generated; import com.azure.resourcemanager.network.models.TagsObject; + import java.util.HashMap; import java.util.Map; @@ -13,19 +14,20 @@ */ public final class DdosCustomPoliciesUpdateTagsSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/DdosCustomPolicyUpdateTags. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DdosCustomPolicyUpdateTags.json */ /** * Sample code: DDoS Custom policy Update tags. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void dDoSCustomPolicyUpdateTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getDdosCustomPolicies().updateTagsWithResponse("rg1", - "test-ddos-custom-policy", new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), - com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansCreateOrUpdateSamples.java index 7e8da4593215c..908ec8345c5c1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansCreateOrUpdateSamples.java @@ -11,8 +11,7 @@ */ public final class DdosProtectionPlansCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/DdosProtectionPlanCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DdosProtectionPlanCreate.json */ /** * Sample code: Create DDoS protection plan. @@ -20,7 +19,11 @@ public final class DdosProtectionPlansCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createDDoSProtectionPlan(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getDdosProtectionPlans().createOrUpdate("rg1", "test-plan", - new DdosProtectionPlanInner().withLocation("westus"), com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getDdosProtectionPlans() + .createOrUpdate("rg1", "test-plan", new DdosProtectionPlanInner().withLocation("westus"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansDeleteSamples.java index 6049de28236b8..950fc1e75d854 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class DdosProtectionPlansDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/DdosProtectionPlanDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DdosProtectionPlanDelete.json */ /** * Sample code: Delete DDoS protection plan. @@ -18,7 +17,10 @@ public final class DdosProtectionPlansDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteDDoSProtectionPlan(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getDdosProtectionPlans().delete("rg1", "test-plan", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getDdosProtectionPlans() + .delete("rg1", "test-plan", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansGetByResourceGroupSamples.java index f57c390f391c1..d86b9648966ab 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class DdosProtectionPlansGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/DdosProtectionPlanGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DdosProtectionPlanGet.json */ /** * Sample code: Get DDoS protection plan. @@ -18,7 +17,10 @@ public final class DdosProtectionPlansGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getDDoSProtectionPlan(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getDdosProtectionPlans().getByResourceGroupWithResponse("rg1", - "test-plan", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getDdosProtectionPlans() + .getByResourceGroupWithResponse("rg1", "test-plan", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansListByResourceGroupSamples.java index 89ac2086ec90a..f1222d2e0392c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class DdosProtectionPlansListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/DdosProtectionPlanList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DdosProtectionPlanList.json */ /** * Sample code: List DDoS protection plans in resource group. @@ -18,7 +17,10 @@ public final class DdosProtectionPlansListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listDDoSProtectionPlansInResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getDdosProtectionPlans().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getDdosProtectionPlans() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansListSamples.java index d1064e2144930..f1e4a178f9ff3 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansListSamples.java @@ -9,9 +9,7 @@ */ public final class DdosProtectionPlansListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/DdosProtectionPlanListAll. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DdosProtectionPlanListAll.json */ /** * Sample code: List all DDoS protection plans. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansUpdateTagsSamples.java index 27930945e3c25..f69f7dbaa8f78 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DdosProtectionPlansUpdateTagsSamples.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.network.generated; import com.azure.resourcemanager.network.models.TagsObject; + import java.util.HashMap; import java.util.Map; @@ -13,18 +14,20 @@ */ public final class DdosProtectionPlansUpdateTagsSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/DdosProtectionPlanUpdateTags. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DdosProtectionPlanUpdateTags.json */ /** * Sample code: DDoS protection plan Update tags. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void dDoSProtectionPlanUpdateTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getDdosProtectionPlans().updateTagsWithResponse("rg1", "test-plan", - new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DefaultSecurityRulesGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DefaultSecurityRulesGetSamples.java index 690e346b8f547..e0edc3955a56b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DefaultSecurityRulesGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DefaultSecurityRulesGetSamples.java @@ -9,8 +9,7 @@ */ public final class DefaultSecurityRulesGetSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/DefaultSecurityRuleGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DefaultSecurityRuleGet.json */ /** * Sample code: DefaultSecurityRuleGet. @@ -18,7 +17,10 @@ public final class DefaultSecurityRulesGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void defaultSecurityRuleGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getDefaultSecurityRules().getWithResponse("testrg", "nsg1", - "AllowVnetInBound", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getDefaultSecurityRules() + .getWithResponse("testrg", "nsg1", "AllowVnetInBound", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DefaultSecurityRulesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DefaultSecurityRulesListSamples.java index ab3669d56ed55..b8738694b396d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DefaultSecurityRulesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DefaultSecurityRulesListSamples.java @@ -9,8 +9,7 @@ */ public final class DefaultSecurityRulesListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/DefaultSecurityRuleList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DefaultSecurityRuleList.json */ /** * Sample code: DefaultSecurityRuleList. @@ -18,7 +17,10 @@ public final class DefaultSecurityRulesListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void defaultSecurityRuleList(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getDefaultSecurityRules().list("testrg", "nsg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getDefaultSecurityRules() + .list("testrg", "nsg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationCreateOrUpdateSamples.java index eeb2335c7b818..baec9e0c4dd74 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationCreateOrUpdateSamples.java @@ -9,6 +9,7 @@ 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; /** @@ -16,40 +17,38 @@ */ public final class DscpConfigurationCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/DscpConfigurationCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DscpConfigurationCreate.json */ /** * Sample code: Create DSCP Configuration. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createDSCPConfiguration(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getDscpConfigurations() + azure.networks() + .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))), + 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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationDeleteSamples.java index dbce7644bdf53..4d1c80f66256c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class DscpConfigurationDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/DscpConfigurationDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DscpConfigurationDelete.json */ /** * Sample code: Delete DSCP Configuration. @@ -18,7 +17,10 @@ public final class DscpConfigurationDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteDSCPConfiguration(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getDscpConfigurations().delete("rg1", "mydscpConfig", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getDscpConfigurations() + .delete("rg1", "mydscpConfig", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationGetByResourceGroupSamples.java index 9bfcc095583b9..9fd23ae87e781 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class DscpConfigurationGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/DscpConfigurationGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DscpConfigurationGet.json */ /** * Sample code: Get Dscp Configuration. @@ -18,7 +17,10 @@ public final class DscpConfigurationGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getDscpConfiguration(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getDscpConfigurations().getByResourceGroupWithResponse("rg1", - "mydscpConfig", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getDscpConfigurations() + .getByResourceGroupWithResponse("rg1", "mydscpConfig", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationListByResourceGroupSamples.java index f6efbfc6fb21b..5d7b45e379420 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class DscpConfigurationListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/DscpConfigurationList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DscpConfigurationList.json */ /** * Sample code: Get Dscp Configuration. @@ -18,7 +17,10 @@ public final class DscpConfigurationListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getDscpConfiguration(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getDscpConfigurations().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getDscpConfigurations() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationListSamples.java index 42ad0b795e7dd..db93b00f6afa0 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/DscpConfigurationListSamples.java @@ -9,8 +9,7 @@ */ public final class DscpConfigurationListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/DscpConfigurationListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/DscpConfigurationListAll.json */ /** * Sample code: List all network interfaces. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitAuthorizationsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitAuthorizationsCreateOrUpdateSamples.java index 6accf0f2c3627..419af7f60d4d1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitAuthorizationsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitAuthorizationsCreateOrUpdateSamples.java @@ -11,8 +11,7 @@ */ public final class ExpressRouteCircuitAuthorizationsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRouteCircuitAuthorizationCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitAuthorizationCreate.json */ /** * Sample code: Create ExpressRouteCircuit Authorization. @@ -20,8 +19,11 @@ public final class ExpressRouteCircuitAuthorizationsCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createExpressRouteCircuitAuthorization(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteCircuitAuthorizations().createOrUpdate("rg1", - "circuitName", "authorizatinName", new ExpressRouteCircuitAuthorizationInner(), - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRouteCircuitAuthorizations() + .createOrUpdate("rg1", "circuitName", "authorizatinName", new ExpressRouteCircuitAuthorizationInner(), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitAuthorizationsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitAuthorizationsDeleteSamples.java index 8c8a86f591bee..033ad4a84cda9 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitAuthorizationsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitAuthorizationsDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRouteCircuitAuthorizationsDeleteSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRouteCircuitAuthorizationDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitAuthorizationDelete.json */ /** * Sample code: Delete ExpressRouteCircuit Authorization. @@ -18,7 +17,10 @@ public final class ExpressRouteCircuitAuthorizationsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteExpressRouteCircuitAuthorization(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteCircuitAuthorizations().delete("rg1", "circuitName", - "authorizationName", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRouteCircuitAuthorizations() + .delete("rg1", "circuitName", "authorizationName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitAuthorizationsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitAuthorizationsGetSamples.java index 6bed8974c4f36..0c643afe0b649 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitAuthorizationsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitAuthorizationsGetSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRouteCircuitAuthorizationsGetSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRouteCircuitAuthorizationGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitAuthorizationGet.json */ /** * Sample code: Get ExpressRouteCircuit Authorization. @@ -18,7 +17,10 @@ public final class ExpressRouteCircuitAuthorizationsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getExpressRouteCircuitAuthorization(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteCircuitAuthorizations().getWithResponse("rg1", - "circuitName", "authorizationName", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRouteCircuitAuthorizations() + .getWithResponse("rg1", "circuitName", "authorizationName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitAuthorizationsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitAuthorizationsListSamples.java index a70f620a9359c..959dc9d22a769 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitAuthorizationsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitAuthorizationsListSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRouteCircuitAuthorizationsListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRouteCircuitAuthorizationList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitAuthorizationList.json */ /** * Sample code: List ExpressRouteCircuit Authorization. @@ -18,7 +17,10 @@ public final class ExpressRouteCircuitAuthorizationsListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listExpressRouteCircuitAuthorization(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteCircuitAuthorizations().list("rg1", "circuitName", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRouteCircuitAuthorizations() + .list("rg1", "circuitName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitConnectionsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitConnectionsCreateOrUpdateSamples.java index c5e7bca694dd7..7d3f4943a3cb0 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitConnectionsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitConnectionsCreateOrUpdateSamples.java @@ -13,8 +13,7 @@ */ public final class ExpressRouteCircuitConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRouteCircuitConnectionCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitConnectionCreate.json */ /** * Sample code: ExpressRouteCircuitConnectionCreate. @@ -22,14 +21,19 @@ public final class ExpressRouteCircuitConnectionsCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void expressRouteCircuitConnectionCreate(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteCircuitConnections().createOrUpdate("rg1", - "ExpressRouteARMCircuitA", "AzurePrivatePeering", "circuitConnectionUSAUS", - new ExpressRouteCircuitConnectionInner().withExpressRouteCircuitPeering(new SubResource().withId( - "/subscriptions/subid1/resourceGroups/dedharcktinit/providers/Microsoft.Network/expressRouteCircuits/dedharcktlocal/peerings/AzurePrivatePeering")) - .withPeerExpressRouteCircuitPeering(new SubResource().withId( - "/subscriptions/subid2/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); + azure.networks() + .manager() + .serviceClient() + .getExpressRouteCircuitConnections() + .createOrUpdate("rg1", "ExpressRouteARMCircuitA", "AzurePrivatePeering", "circuitConnectionUSAUS", + new ExpressRouteCircuitConnectionInner().withExpressRouteCircuitPeering(new SubResource().withId( + "/subscriptions/subid1/resourceGroups/dedharcktinit/providers/Microsoft.Network/expressRouteCircuits/dedharcktlocal/peerings/AzurePrivatePeering")) + .withPeerExpressRouteCircuitPeering(new SubResource().withId( + "/subscriptions/subid2/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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitConnectionsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitConnectionsDeleteSamples.java index 74fe54e97a26b..8d4433937d723 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitConnectionsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitConnectionsDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRouteCircuitConnectionsDeleteSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRouteCircuitConnectionDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitConnectionDelete.json */ /** * Sample code: Delete ExpressRouteCircuit. @@ -18,8 +17,11 @@ public final class ExpressRouteCircuitConnectionsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteExpressRouteCircuit(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteCircuitConnections().delete("rg1", - "ExpressRouteARMCircuitA", "AzurePrivatePeering", "circuitConnectionUSAUS", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRouteCircuitConnections() + .delete("rg1", "ExpressRouteARMCircuitA", "AzurePrivatePeering", "circuitConnectionUSAUS", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitConnectionsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitConnectionsGetSamples.java index 16ba487e1b702..fd94509fbd1c8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitConnectionsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitConnectionsGetSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRouteCircuitConnectionsGetSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRouteCircuitConnectionGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitConnectionGet.json */ /** * Sample code: ExpressRouteCircuitConnectionGet. @@ -18,8 +17,11 @@ public final class ExpressRouteCircuitConnectionsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void expressRouteCircuitConnectionGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteCircuitConnections().getWithResponse("rg1", - "ExpressRouteARMCircuitA", "AzurePrivatePeering", "circuitConnectionUSAUS", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRouteCircuitConnections() + .getWithResponse("rg1", "ExpressRouteARMCircuitA", "AzurePrivatePeering", "circuitConnectionUSAUS", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitConnectionsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitConnectionsListSamples.java index bc4b509f24e81..c0c4666005b35 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitConnectionsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitConnectionsListSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRouteCircuitConnectionsListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRouteCircuitConnectionList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitConnectionList.json */ /** * Sample code: List ExpressRouteCircuit Connection. @@ -18,7 +17,10 @@ public final class ExpressRouteCircuitConnectionsListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listExpressRouteCircuitConnection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteCircuitConnections().list("rg1", - "ExpressRouteARMCircuitA", "AzurePrivatePeering", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRouteCircuitConnections() + .list("rg1", "ExpressRouteARMCircuitA", "AzurePrivatePeering", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitPeeringsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitPeeringsCreateOrUpdateSamples.java index 7fc5a81b55dd2..562dc0ae0766a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitPeeringsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitPeeringsCreateOrUpdateSamples.java @@ -11,8 +11,7 @@ */ public final class ExpressRouteCircuitPeeringsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRouteCircuitPeeringCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitPeeringCreate.json */ /** * Sample code: Create ExpressRouteCircuit Peerings. @@ -20,10 +19,15 @@ public final class ExpressRouteCircuitPeeringsCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createExpressRouteCircuitPeerings(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitPeeringsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitPeeringsDeleteSamples.java index 788b350205d03..d117c744f9d5f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitPeeringsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitPeeringsDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRouteCircuitPeeringsDeleteSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRouteCircuitPeeringDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitPeeringDelete.json */ /** * Sample code: Delete ExpressRouteCircuit Peerings. @@ -18,7 +17,10 @@ public final class ExpressRouteCircuitPeeringsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteExpressRouteCircuitPeerings(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteCircuitPeerings().delete("rg1", "circuitName", - "peeringName", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRouteCircuitPeerings() + .delete("rg1", "circuitName", "peeringName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitPeeringsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitPeeringsGetSamples.java index b6023f7a958f8..092080663fd2f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitPeeringsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitPeeringsGetSamples.java @@ -9,9 +9,7 @@ */ public final class ExpressRouteCircuitPeeringsGetSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ExpressRouteCircuitPeeringGet - * .json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitPeeringGet.json */ /** * Sample code: Get ExpressRouteCircuit Peering. @@ -19,7 +17,10 @@ public final class ExpressRouteCircuitPeeringsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getExpressRouteCircuitPeering(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteCircuitPeerings().getWithResponse("rg1", - "circuitName", "MicrosoftPeering", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRouteCircuitPeerings() + .getWithResponse("rg1", "circuitName", "MicrosoftPeering", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitPeeringsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitPeeringsListSamples.java index 2ae5a702eee2c..adb2ae3688ea6 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitPeeringsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitPeeringsListSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRouteCircuitPeeringsListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRouteCircuitPeeringList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitPeeringList.json */ /** * Sample code: List ExpressRouteCircuit Peerings. @@ -18,7 +17,10 @@ public final class ExpressRouteCircuitPeeringsListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listExpressRouteCircuitPeerings(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteCircuitPeerings().list("rg1", "circuitName", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRouteCircuitPeerings() + .list("rg1", "circuitName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsCreateOrUpdateSamples.java index a4945a06f336d..2bf41c5187ba5 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsCreateOrUpdateSamples.java @@ -10,6 +10,7 @@ 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; /** @@ -17,45 +18,55 @@ */ public final class ExpressRouteCircuitsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ExpressRouteCircuitCreate. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitCreate.json */ /** * Sample code: Create ExpressRouteCircuit. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createExpressRouteCircuit(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRouteCircuitCreateOnExpressRoutePort.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json */ /** * Sample code: Create ExpressRouteCircuit on ExpressRoutePort. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createExpressRouteCircuitOnExpressRoutePort(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteCircuits() + azure.networks() + .manager() + .serviceClient() + .getExpressRouteCircuits() .createOrUpdate("rg1", "expressRouteCircuit1", new ExpressRouteCircuitInner().withLocation("westus") .withSku(new ExpressRouteCircuitSku().withName("Premium_MeteredData") - .withTier(ExpressRouteCircuitSkuTier.PREMIUM).withFamily(ExpressRouteCircuitSkuFamily.METERED_DATA)) + .withTier(ExpressRouteCircuitSkuTier.PREMIUM) + .withFamily(ExpressRouteCircuitSkuFamily.METERED_DATA)) .withExpressRoutePort(new SubResource().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRoutePorts/portName")) - .withBandwidthInGbps(10.0F).withAuthorizationKey("fakeTokenPlaceholder"), - com.azure.core.util.Context.NONE); + .withBandwidthInGbps(10.0F) + .withAuthorizationKey("fakeTokenPlaceholder") + .withEnableDirectPortRateLimit(false), com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsDeleteSamples.java index 56bf8139e249d..26374f3ed0567 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsDeleteSamples.java @@ -9,9 +9,7 @@ */ public final class ExpressRouteCircuitsDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ExpressRouteCircuitDelete. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitDelete.json */ /** * Sample code: Delete ExpressRouteCircuit. @@ -19,7 +17,10 @@ public final class ExpressRouteCircuitsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteExpressRouteCircuit(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteCircuits().delete("rg1", "circuitName", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRouteCircuits() + .delete("rg1", "circuitName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsGetByResourceGroupSamples.java index d61fdb117d89f..5522980fe5fb0 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRouteCircuitsGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ExpressRouteCircuitGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitGet.json */ /** * Sample code: Get ExpressRouteCircuit. @@ -18,7 +17,10 @@ public final class ExpressRouteCircuitsGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getExpressRouteCircuit(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteCircuits().getByResourceGroupWithResponse("rg1", - "circuitName", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRouteCircuits() + .getByResourceGroupWithResponse("rg1", "circuitName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsGetPeeringStatsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsGetPeeringStatsSamples.java index 8e76ee323a5ec..11494b10401f2 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsGetPeeringStatsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsGetPeeringStatsSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRouteCircuitsGetPeeringStatsSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRouteCircuitPeeringStats.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitPeeringStats.json */ /** * Sample code: Get ExpressRoute Circuit Peering Traffic Stats. @@ -18,7 +17,10 @@ public final class ExpressRouteCircuitsGetPeeringStatsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getExpressRouteCircuitPeeringTrafficStats(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteCircuits().getPeeringStatsWithResponse("rg1", - "circuitName", "peeringName", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRouteCircuits() + .getPeeringStatsWithResponse("rg1", "circuitName", "peeringName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsGetStatsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsGetStatsSamples.java index 9c113ef9f792b..f7a98bda5df97 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsGetStatsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsGetStatsSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRouteCircuitsGetStatsSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ExpressRouteCircuitStats.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitStats.json */ /** * Sample code: Get ExpressRoute Circuit Traffic Stats. @@ -18,7 +17,10 @@ public final class ExpressRouteCircuitsGetStatsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getExpressRouteCircuitTrafficStats(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteCircuits().getStatsWithResponse("rg1", "circuitName", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRouteCircuits() + .getStatsWithResponse("rg1", "circuitName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListArpTableSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListArpTableSamples.java index 01c88ac8c5be4..ec03b42a89b60 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListArpTableSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListArpTableSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRouteCircuitsListArpTableSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRouteCircuitARPTableList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitARPTableList.json */ /** * Sample code: List ARP Table. @@ -18,7 +17,10 @@ public final class ExpressRouteCircuitsListArpTableSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listARPTable(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteCircuits().listArpTable("rg1", "circuitName", - "peeringName", "devicePath", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRouteCircuits() + .listArpTable("rg1", "circuitName", "peeringName", "devicePath", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListByResourceGroupSamples.java index c577d7ba983c0..02619509908a6 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRouteCircuitsListByResourceGroupSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRouteCircuitListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitListByResourceGroup.json */ /** * Sample code: List ExpressRouteCircuits in a resource group. @@ -18,7 +17,10 @@ public final class ExpressRouteCircuitsListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listExpressRouteCircuitsInAResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteCircuits().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRouteCircuits() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListRoutesTableSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListRoutesTableSamples.java index eb9bd445b742c..7b143ca98aa16 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListRoutesTableSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListRoutesTableSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRouteCircuitsListRoutesTableSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRouteCircuitRouteTableList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitRouteTableList.json */ /** * Sample code: List Route Tables. @@ -18,7 +17,10 @@ public final class ExpressRouteCircuitsListRoutesTableSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listRouteTables(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteCircuits().listRoutesTable("rg1", "circuitName", - "peeringName", "devicePath", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRouteCircuits() + .listRoutesTable("rg1", "circuitName", "peeringName", "devicePath", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListRoutesTableSummarySamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListRoutesTableSummarySamples.java index 22723036ab7fa..a27ae04972c68 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListRoutesTableSummarySamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListRoutesTableSummarySamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRouteCircuitsListRoutesTableSummarySamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRouteCircuitRouteTableSummaryList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitRouteTableSummaryList.json */ /** * Sample code: List Route Table Summary. @@ -18,7 +17,11 @@ public final class ExpressRouteCircuitsListRoutesTableSummarySamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listRouteTableSummary(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteCircuits().listRoutesTableSummary("rg1", - "circuitName", "peeringName", "devicePath", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRouteCircuits() + .listRoutesTableSummary("rg1", "circuitName", "peeringName", "devicePath", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListSamples.java index 5ad5dafb29084..eddb8f173e8da 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsListSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRouteCircuitsListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRouteCircuitListBySubscription.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitListBySubscription.json */ /** * Sample code: List ExpressRouteCircuits in a subscription. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsUpdateTagsSamples.java index c079a8e6770aa..213a269a08273 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCircuitsUpdateTagsSamples.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.network.generated; import com.azure.resourcemanager.network.models.TagsObject; + import java.util.HashMap; import java.util.Map; @@ -13,18 +14,20 @@ */ public final class ExpressRouteCircuitsUpdateTagsSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ExpressRouteCircuitUpdateTags - * .json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCircuitUpdateTags.json */ /** * Sample code: Update Express Route Circuit Tags. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updateExpressRouteCircuitTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteCircuits().updateTagsWithResponse("ertest", "er1", - new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteConnectionsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteConnectionsCreateOrUpdateSamples.java index 2c397cd2e3a6b..edd707fad8b8b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteConnectionsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteConnectionsCreateOrUpdateSamples.java @@ -9,6 +9,7 @@ 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; /** @@ -16,24 +17,26 @@ */ public final class ExpressRouteConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ExpressRouteConnectionCreate. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteConnectionCreate.json */ /** * Sample code: ExpressRouteConnectionCreate. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void expressRouteConnectionCreate(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteConnections().createOrUpdate("resourceGroupName", - "gateway-2", "connectionName", - new ExpressRouteConnectionInner().withId( - "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/gateway-2/expressRouteConnections/connectionName") + azure.networks() + .manager() + .serviceClient() + .getExpressRouteConnections() + .createOrUpdate("resourceGroupName", "gateway-2", "connectionName", new ExpressRouteConnectionInner() + .withId( + "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/gateway-2/expressRouteConnections/connectionName") .withName("connectionName") .withExpressRouteCircuitPeering(new ExpressRouteCircuitPeeringId().withId( "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering")) - .withAuthorizationKey("fakeTokenPlaceholder").withRoutingWeight(2) + .withAuthorizationKey("fakeTokenPlaceholder") + .withRoutingWeight(2) .withRoutingConfiguration(new RoutingConfiguration().withAssociatedRouteTable(new SubResource().withId( "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualHubs/hub1/hubRouteTables/hubRouteTable1")) .withPropagatedRouteTables(new PropagatedRouteTable().withLabels(Arrays.asList("label1", "label2")) @@ -47,6 +50,6 @@ public static void expressRouteConnectionCreate(com.azure.resourcemanager.AzureR "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/routeMaps/routeMap1")) .withOutboundRouteMap(new SubResource().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/routeMaps/routeMap2"))), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteConnectionsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteConnectionsDeleteSamples.java index c33f1a904dda1..e18feab637582 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteConnectionsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteConnectionsDeleteSamples.java @@ -9,9 +9,7 @@ */ public final class ExpressRouteConnectionsDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ExpressRouteConnectionDelete. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteConnectionDelete.json */ /** * Sample code: ExpressRouteConnectionDelete. @@ -19,7 +17,10 @@ public final class ExpressRouteConnectionsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void expressRouteConnectionDelete(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteConnections().delete("resourceGroupName", - "expressRouteGatewayName", "connectionName", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRouteConnections() + .delete("resourceGroupName", "expressRouteGatewayName", "connectionName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteConnectionsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteConnectionsGetSamples.java index 9db994c6624be..26caa5a985e67 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteConnectionsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteConnectionsGetSamples.java @@ -9,9 +9,7 @@ */ public final class ExpressRouteConnectionsGetSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ExpressRouteConnectionGet. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteConnectionGet.json */ /** * Sample code: ExpressRouteConnectionGet. @@ -19,7 +17,11 @@ public final class ExpressRouteConnectionsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void expressRouteConnectionGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteConnections().getWithResponse("resourceGroupName", - "expressRouteGatewayName", "connectionName", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRouteConnections() + .getWithResponse("resourceGroupName", "expressRouteGatewayName", "connectionName", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteConnectionsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteConnectionsListSamples.java index 6554860d5f751..c98a881239acd 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteConnectionsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteConnectionsListSamples.java @@ -9,9 +9,7 @@ */ public final class ExpressRouteConnectionsListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ExpressRouteConnectionList. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteConnectionList.json */ /** * Sample code: ExpressRouteConnectionList. @@ -19,7 +17,10 @@ public final class ExpressRouteConnectionsListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void expressRouteConnectionList(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteConnections().listWithResponse("resourceGroupName", - "expressRouteGatewayName", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRouteConnections() + .listWithResponse("resourceGroupName", "expressRouteGatewayName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionPeeringsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionPeeringsCreateOrUpdateSamples.java index 9cadbd65ebcb6..f003b4dbeafc0 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionPeeringsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionPeeringsCreateOrUpdateSamples.java @@ -12,8 +12,7 @@ */ public final class ExpressRouteCrossConnectionPeeringsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRouteCrossConnectionBgpPeeringCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCrossConnectionBgpPeeringCreate.json */ /** * Sample code: ExpressRouteCrossConnectionBgpPeeringCreate. @@ -22,11 +21,15 @@ public final class ExpressRouteCrossConnectionPeeringsCreateOrUpdateSamples { */ public static void expressRouteCrossConnectionBgpPeeringCreate(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteCrossConnectionPeerings() + azure.networks() + .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) + .withSecondaryPeerAddressPrefix("192.168.18.252/30") + .withVlanId(200) .withIpv6PeeringConfig(new Ipv6ExpressRouteCircuitPeeringConfig() .withPrimaryPeerAddressPrefix("3FFE:FFFF:0:CD30::/126") .withSecondaryPeerAddressPrefix("3FFE:FFFF:0:CD30::4/126")), diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionPeeringsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionPeeringsDeleteSamples.java index 32ed408f460f0..2b4c03935386d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionPeeringsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionPeeringsDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRouteCrossConnectionPeeringsDeleteSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRouteCrossConnectionBgpPeeringDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCrossConnectionBgpPeeringDelete.json */ /** * Sample code: DeleteExpressRouteCrossConnectionBgpPeering. @@ -19,8 +18,11 @@ public final class ExpressRouteCrossConnectionPeeringsDeleteSamples { */ public static void deleteExpressRouteCrossConnectionBgpPeering(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteCrossConnectionPeerings().delete( - "CrossConnection-SiliconValley", "", "AzurePrivatePeering", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRouteCrossConnectionPeerings() + .delete("CrossConnection-SiliconValley", "", "AzurePrivatePeering", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionPeeringsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionPeeringsGetSamples.java index e010c7da4d6f1..9cada1a4842e7 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionPeeringsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionPeeringsGetSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRouteCrossConnectionPeeringsGetSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRouteCrossConnectionBgpPeeringGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCrossConnectionBgpPeeringGet.json */ /** * Sample code: GetExpressRouteCrossConnectionBgpPeering. @@ -18,8 +17,11 @@ public final class ExpressRouteCrossConnectionPeeringsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getExpressRouteCrossConnectionBgpPeering(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteCrossConnectionPeerings().getWithResponse( - "CrossConnection-SiliconValley", "", "AzurePrivatePeering", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRouteCrossConnectionPeerings() + .getWithResponse("CrossConnection-SiliconValley", "", "AzurePrivatePeering", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionPeeringsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionPeeringsListSamples.java index 0557bb03faa9c..4311cd8c10fae 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionPeeringsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionPeeringsListSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRouteCrossConnectionPeeringsListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRouteCrossConnectionBgpPeeringList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCrossConnectionBgpPeeringList.json */ /** * Sample code: ExpressRouteCrossConnectionBgpPeeringList. @@ -18,7 +17,10 @@ public final class ExpressRouteCrossConnectionPeeringsListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void expressRouteCrossConnectionBgpPeeringList(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteCrossConnectionPeerings() + azure.networks() + .manager() + .serviceClient() + .getExpressRouteCrossConnectionPeerings() .list("CrossConnection-SiliconValley", "", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsCreateOrUpdateSamples.java index bb691a4f80d44..12a8979f61797 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsCreateOrUpdateSamples.java @@ -12,8 +12,7 @@ */ public final class ExpressRouteCrossConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRouteCrossConnectionUpdate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCrossConnectionUpdate.json */ /** * Sample code: UpdateExpressRouteCrossConnection. @@ -21,9 +20,13 @@ public final class ExpressRouteCrossConnectionsCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updateExpressRouteCrossConnection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteCrossConnections().createOrUpdate( - "CrossConnection-SiliconValley", "", new ExpressRouteCrossConnectionInner() - .withServiceProviderProvisioningState(ServiceProviderProvisioningState.NOT_PROVISIONED), - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRouteCrossConnections() + .createOrUpdate( + "CrossConnection-SiliconValley", "", new ExpressRouteCrossConnectionInner() + .withServiceProviderProvisioningState(ServiceProviderProvisioningState.NOT_PROVISIONED), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsGetByResourceGroupSamples.java index 8e3a27d8d80d9..f3f6a4f8951b4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRouteCrossConnectionsGetByResourceGroupSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRouteCrossConnectionGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCrossConnectionGet.json */ /** * Sample code: GetExpressRouteCrossConnection. @@ -18,7 +17,11 @@ public final class ExpressRouteCrossConnectionsGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getExpressRouteCrossConnection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteCrossConnections().getByResourceGroupWithResponse( - "CrossConnection-SiliconValley", "", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRouteCrossConnections() + .getByResourceGroupWithResponse("CrossConnection-SiliconValley", "", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListArpTableSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListArpTableSamples.java index a2b411de0fcf6..677fb30825e0f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListArpTableSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListArpTableSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRouteCrossConnectionsListArpTableSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRouteCrossConnectionsArpTable.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCrossConnectionsArpTable.json */ /** * Sample code: GetExpressRouteCrossConnectionsArpTable. @@ -18,8 +17,11 @@ public final class ExpressRouteCrossConnectionsListArpTableSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getExpressRouteCrossConnectionsArpTable(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteCrossConnections().listArpTable( - "CrossConnection-SiliconValley", "", "AzurePrivatePeering", "primary", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRouteCrossConnections() + .listArpTable("CrossConnection-SiliconValley", "", "AzurePrivatePeering", "primary", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListByResourceGroupSamples.java index e7f7fe34656b0..74a339940b5c2 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRouteCrossConnectionsListByResourceGroupSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRouteCrossConnectionListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCrossConnectionListByResourceGroup.json */ /** * Sample code: ExpressRouteCrossConnectionListByResourceGroup. @@ -19,7 +18,10 @@ public final class ExpressRouteCrossConnectionsListByResourceGroupSamples { */ public static void expressRouteCrossConnectionListByResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteCrossConnections() + azure.networks() + .manager() + .serviceClient() + .getExpressRouteCrossConnections() .listByResourceGroup("CrossConnection-SiliconValley", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListRoutesTableSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListRoutesTableSamples.java index 762c5bb9b0a93..6684ee5cc3bde 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListRoutesTableSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListRoutesTableSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRouteCrossConnectionsListRoutesTableSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRouteCrossConnectionsRouteTable.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCrossConnectionsRouteTable.json */ /** * Sample code: GetExpressRouteCrossConnectionsRouteTable. @@ -18,8 +17,11 @@ public final class ExpressRouteCrossConnectionsListRoutesTableSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getExpressRouteCrossConnectionsRouteTable(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteCrossConnections().listRoutesTable( - "CrossConnection-SiliconValley", "", "AzurePrivatePeering", "primary", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRouteCrossConnections() + .listRoutesTable("CrossConnection-SiliconValley", "", "AzurePrivatePeering", "primary", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListRoutesTableSummarySamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListRoutesTableSummarySamples.java index d6c405cb106cb..09e5480fc5da8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListRoutesTableSummarySamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListRoutesTableSummarySamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRouteCrossConnectionsListRoutesTableSummarySamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRouteCrossConnectionsRouteTableSummary.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCrossConnectionsRouteTableSummary.json */ /** * Sample code: GetExpressRouteCrossConnectionsRouteTableSummary. @@ -19,8 +18,11 @@ public final class ExpressRouteCrossConnectionsListRoutesTableSummarySamples { */ public static void getExpressRouteCrossConnectionsRouteTableSummary(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteCrossConnections().listRoutesTableSummary( - "CrossConnection-SiliconValley", "", "AzurePrivatePeering", "primary", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRouteCrossConnections() + .listRoutesTableSummary("CrossConnection-SiliconValley", "", "AzurePrivatePeering", + "primary", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListSamples.java index b98670579a93f..7f6f24c21ac61 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsListSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRouteCrossConnectionsListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRouteCrossConnectionList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCrossConnectionList.json */ /** * Sample code: ExpressRouteCrossConnectionList. @@ -18,7 +17,10 @@ public final class ExpressRouteCrossConnectionsListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void expressRouteCrossConnectionList(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteCrossConnections() + azure.networks() + .manager() + .serviceClient() + .getExpressRouteCrossConnections() .list(com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsUpdateTagsSamples.java index 455334f1c1970..25e81dbad84fd 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteCrossConnectionsUpdateTagsSamples.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.network.generated; import com.azure.resourcemanager.network.models.TagsObject; + import java.util.HashMap; import java.util.Map; @@ -13,18 +14,20 @@ */ public final class ExpressRouteCrossConnectionsUpdateTagsSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRouteCrossConnectionUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteCrossConnectionUpdateTags.json */ /** * Sample code: UpdateExpressRouteCrossConnectionTags. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updateExpressRouteCrossConnectionTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteCrossConnections().updateTagsWithResponse( - "CrossConnection-SiliconValley", "", - new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysCreateOrUpdateSamples.java index 4247b351a3134..3a46f400d564c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysCreateOrUpdateSamples.java @@ -14,9 +14,7 @@ */ public final class ExpressRouteGatewaysCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ExpressRouteGatewayCreate. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteGatewayCreate.json */ /** * Sample code: ExpressRouteGatewayCreate. @@ -24,7 +22,10 @@ public final class ExpressRouteGatewaysCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void expressRouteGatewayCreate(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteGateways() + azure.networks() + .manager() + .serviceClient() + .getExpressRouteGateways() .createOrUpdate("resourceGroupName", "gateway-2", new ExpressRouteGatewayInner().withLocation("westus") .withAutoScaleConfiguration(new ExpressRouteGatewayPropertiesAutoScaleConfiguration() .withBounds(new ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds().withMin(3))) diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysDeleteSamples.java index 3b3470478f756..e11241bd0f8d1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysDeleteSamples.java @@ -9,9 +9,7 @@ */ public final class ExpressRouteGatewaysDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ExpressRouteGatewayDelete. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteGatewayDelete.json */ /** * Sample code: ExpressRouteGatewayDelete. @@ -19,7 +17,10 @@ public final class ExpressRouteGatewaysDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void expressRouteGatewayDelete(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteGateways().delete("resourceGroupName", - "expressRouteGatewayName", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRouteGateways() + .delete("resourceGroupName", "expressRouteGatewayName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysGetByResourceGroupSamples.java index 4d644bd72bfeb..ddb73d084d549 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRouteGatewaysGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ExpressRouteGatewayGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteGatewayGet.json */ /** * Sample code: ExpressRouteGatewayGet. @@ -18,7 +17,11 @@ public final class ExpressRouteGatewaysGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void expressRouteGatewayGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteGateways().getByResourceGroupWithResponse( - "resourceGroupName", "expressRouteGatewayName", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRouteGateways() + .getByResourceGroupWithResponse("resourceGroupName", "expressRouteGatewayName", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysListByResourceGroupSamples.java index 56599dae21b43..b1ba83e6fefe6 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRouteGatewaysListByResourceGroupSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRouteGatewayListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteGatewayListByResourceGroup.json */ /** * Sample code: ExpressRouteGatewayListByResourceGroup. @@ -18,7 +17,10 @@ public final class ExpressRouteGatewaysListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void expressRouteGatewayListByResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteGateways() + azure.networks() + .manager() + .serviceClient() + .getExpressRouteGateways() .listByResourceGroupWithResponse("resourceGroupName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysListBySubscriptionSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysListBySubscriptionSamples.java index 90b6a17865872..f829a882fb398 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysListBySubscriptionSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysListBySubscriptionSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRouteGatewaysListBySubscriptionSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRouteGatewayListBySubscription.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteGatewayListBySubscription.json */ /** * Sample code: ExpressRouteGatewayListBySubscription. @@ -18,7 +17,10 @@ public final class ExpressRouteGatewaysListBySubscriptionSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void expressRouteGatewayListBySubscription(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteGateways() + azure.networks() + .manager() + .serviceClient() + .getExpressRouteGateways() .listBySubscriptionWithResponse(com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysUpdateTagsSamples.java index 2f01292f659b1..ea8fd95d538d0 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteGatewaysUpdateTagsSamples.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.network.generated; import com.azure.resourcemanager.network.models.TagsObject; + import java.util.HashMap; import java.util.Map; @@ -13,19 +14,20 @@ */ public final class ExpressRouteGatewaysUpdateTagsSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ExpressRouteGatewayUpdateTags - * .json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteGatewayUpdateTags.json */ /** * Sample code: ExpressRouteGatewayUpdate. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void expressRouteGatewayUpdate(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteGateways().updateTags("resourceGroupName", - "expressRouteGatewayName", new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), - com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteLinksGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteLinksGetSamples.java index 5e27a458cd4fe..8ad1a94f8d2db 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteLinksGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteLinksGetSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRouteLinksGetSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ExpressRouteLinkGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteLinkGet.json */ /** * Sample code: ExpressRouteLinkGet. @@ -18,7 +17,10 @@ public final class ExpressRouteLinksGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void expressRouteLinkGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteLinks().getWithResponse("rg1", "portName", "linkName", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRouteLinks() + .getWithResponse("rg1", "portName", "linkName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteLinksListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteLinksListSamples.java index 78aa250f87df8..a454703ce3587 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteLinksListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteLinksListSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRouteLinksListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ExpressRouteLinkList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteLinkList.json */ /** * Sample code: ExpressRouteLinkGet. @@ -18,7 +17,10 @@ public final class ExpressRouteLinksListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void expressRouteLinkGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteLinks().list("rg1", "portName", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRouteLinks() + .list("rg1", "portName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortAuthorizationsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortAuthorizationsCreateOrUpdateSamples.java index b3d9566bd13c6..6122a1380e822 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortAuthorizationsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortAuthorizationsCreateOrUpdateSamples.java @@ -11,8 +11,7 @@ */ public final class ExpressRoutePortAuthorizationsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRoutePortAuthorizationCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortAuthorizationCreate.json */ /** * Sample code: Create ExpressRoutePort Authorization. @@ -20,8 +19,11 @@ public final class ExpressRoutePortAuthorizationsCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createExpressRoutePortAuthorization(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRoutePortAuthorizations().createOrUpdate("rg1", - "expressRoutePortName", "authorizatinName", new ExpressRoutePortAuthorizationInner(), - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRoutePortAuthorizations() + .createOrUpdate("rg1", "expressRoutePortName", "authorizatinName", new ExpressRoutePortAuthorizationInner(), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortAuthorizationsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortAuthorizationsDeleteSamples.java index 2ebdea06370e0..6c21ecec69933 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortAuthorizationsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortAuthorizationsDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRoutePortAuthorizationsDeleteSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRoutePortAuthorizationDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortAuthorizationDelete.json */ /** * Sample code: Delete ExpressRoutePort Authorization. @@ -18,7 +17,10 @@ public final class ExpressRoutePortAuthorizationsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteExpressRoutePortAuthorization(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRoutePortAuthorizations().delete("rg1", - "expressRoutePortName", "authorizationName", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRoutePortAuthorizations() + .delete("rg1", "expressRoutePortName", "authorizationName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortAuthorizationsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortAuthorizationsGetSamples.java index 9200be4593651..cec6ae8cea81e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortAuthorizationsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortAuthorizationsGetSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRoutePortAuthorizationsGetSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRoutePortAuthorizationGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortAuthorizationGet.json */ /** * Sample code: Get ExpressRoutePort Authorization. @@ -18,7 +17,10 @@ public final class ExpressRoutePortAuthorizationsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getExpressRoutePortAuthorization(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRoutePortAuthorizations().getWithResponse("rg1", - "expressRoutePortName", "authorizationName", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRoutePortAuthorizations() + .getWithResponse("rg1", "expressRoutePortName", "authorizationName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortAuthorizationsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortAuthorizationsListSamples.java index 3a1aff0536bf2..34b8913b96916 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortAuthorizationsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortAuthorizationsListSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRoutePortAuthorizationsListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRoutePortAuthorizationList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortAuthorizationList.json */ /** * Sample code: List ExpressRoutePort Authorization. @@ -18,7 +17,10 @@ public final class ExpressRoutePortAuthorizationsListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listExpressRoutePortAuthorization(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRoutePortAuthorizations().list("rg1", - "expressRoutePortName", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRoutePortAuthorizations() + .list("rg1", "expressRoutePortName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsCreateOrUpdateSamples.java index 509c7a2e8dff0..12a48ba371222 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsCreateOrUpdateSamples.java @@ -9,6 +9,7 @@ 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; /** @@ -16,39 +17,46 @@ */ public final class ExpressRoutePortsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ExpressRoutePortUpdateLink. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortUpdateLink.json */ /** * Sample code: ExpressRoutePortUpdateLink. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void expressRoutePortUpdateLink(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRoutePorts().createOrUpdate("rg1", "portName", - new ExpressRoutePortInner().withLocation("westus").withPeeringLocation("peeringLocationName") - .withBandwidthInGbps(100).withEncapsulation(ExpressRoutePortsEncapsulation.QINQ) + azure.networks() + .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); + .withBillingType(ExpressRoutePortsBillingType.UNLIMITED_DATA), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ExpressRoutePortCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortCreate.json */ /** * Sample code: ExpressRoutePortCreate. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void expressRoutePortCreate(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsDeleteSamples.java index a236ac4e4b324..4e19c85cbecae 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRoutePortsDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ExpressRoutePortDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortDelete.json */ /** * Sample code: ExpressRoutePortDelete. @@ -18,7 +17,10 @@ public final class ExpressRoutePortsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void expressRoutePortDelete(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRoutePorts().delete("rg1", "portName", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRoutePorts() + .delete("rg1", "portName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsGenerateLoaSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsGenerateLoaSamples.java index d671b4d30a8a1..e0dca2badb59e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsGenerateLoaSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsGenerateLoaSamples.java @@ -11,9 +11,7 @@ */ public final class ExpressRoutePortsGenerateLoaSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/GenerateExpressRoutePortsLOA. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/GenerateExpressRoutePortsLOA.json */ /** * Sample code: GenerateExpressRoutePortLOA. @@ -21,8 +19,12 @@ public final class ExpressRoutePortsGenerateLoaSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void generateExpressRoutePortLOA(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRoutePorts().generateLoaWithResponse("rg1", "portName", - new GenerateExpressRoutePortsLoaRequest().withCustomerName("customerName"), - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRoutePorts() + .generateLoaWithResponse("rg1", "portName", + new GenerateExpressRoutePortsLoaRequest().withCustomerName("customerName"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsGetByResourceGroupSamples.java index e556f7b294883..de1f7952f84f0 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRoutePortsGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ExpressRoutePortGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortGet.json */ /** * Sample code: ExpressRoutePortGet. @@ -18,7 +17,10 @@ public final class ExpressRoutePortsGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void expressRoutePortGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRoutePorts().getByResourceGroupWithResponse("rg1", - "portName", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRoutePorts() + .getByResourceGroupWithResponse("rg1", "portName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsListByResourceGroupSamples.java index bce80431bf1fe..6b1fd89e53d3b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRoutePortsListByResourceGroupSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ExpressRoutePortListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortListByResourceGroup.json */ /** * Sample code: ExpressRoutePortListByResourceGroup. @@ -18,7 +17,10 @@ public final class ExpressRoutePortsListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void expressRoutePortListByResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRoutePorts().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRoutePorts() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsListSamples.java index e90083c175263..8ca7989b5f123 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsListSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRoutePortsListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ExpressRoutePortList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortList.json */ /** * Sample code: ExpressRoutePortList. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsLocationsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsLocationsGetSamples.java index 326e45e0f2032..906d6d947291a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsLocationsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsLocationsGetSamples.java @@ -9,9 +9,7 @@ */ public final class ExpressRoutePortsLocationsGetSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ExpressRoutePortsLocationGet. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortsLocationGet.json */ /** * Sample code: ExpressRoutePortsLocationGet. @@ -19,7 +17,10 @@ public final class ExpressRoutePortsLocationsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void expressRoutePortsLocationGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRoutePortsLocations().getWithResponse("locationName", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRoutePortsLocations() + .getWithResponse("locationName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsLocationsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsLocationsListSamples.java index 4c030c3a2d135..121b2d36983ea 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsLocationsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsLocationsListSamples.java @@ -9,9 +9,7 @@ */ public final class ExpressRoutePortsLocationsListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ExpressRoutePortsLocationList - * .json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortsLocationList.json */ /** * Sample code: ExpressRoutePortsLocationList. @@ -19,7 +17,10 @@ public final class ExpressRoutePortsLocationsListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void expressRoutePortsLocationList(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRoutePortsLocations() + azure.networks() + .manager() + .serviceClient() + .getExpressRoutePortsLocations() .list(com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsUpdateTagsSamples.java index 67922272b94a7..150bcd5f46f72 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRoutePortsUpdateTagsSamples.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.network.generated; import com.azure.resourcemanager.network.models.TagsObject; + import java.util.HashMap; import java.util.Map; @@ -13,18 +14,20 @@ */ public final class ExpressRoutePortsUpdateTagsSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ExpressRoutePortUpdateTags. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRoutePortUpdateTags.json */ /** * Sample code: ExpressRoutePortUpdateTags. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void expressRoutePortUpdateTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRoutePorts().updateTagsWithResponse("rg1", "portName", - new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteProviderPortsLocationListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteProviderPortsLocationListSamples.java index 0cfccd13c758b..9d904fac046f6 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteProviderPortsLocationListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteProviderPortsLocationListSamples.java @@ -9,9 +9,7 @@ */ public final class ExpressRouteProviderPortsLocationListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/expressRouteProviderPortList. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/expressRouteProviderPortList.json */ /** * Sample code: ExpressRouteProviderPortList. @@ -19,7 +17,10 @@ public final class ExpressRouteProviderPortsLocationListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void expressRouteProviderPortList(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteProviderPortsLocations().listWithResponse(null, - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getExpressRouteProviderPortsLocations() + .listWithResponse(null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteServiceProvidersListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteServiceProvidersListSamples.java index 01dcd402d478c..6b3300141e344 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteServiceProvidersListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ExpressRouteServiceProvidersListSamples.java @@ -9,8 +9,7 @@ */ public final class ExpressRouteServiceProvidersListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ExpressRouteProviderList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ExpressRouteProviderList.json */ /** * Sample code: List ExpressRoute providers. @@ -18,7 +17,10 @@ public final class ExpressRouteServiceProvidersListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listExpressRouteProviders(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getExpressRouteServiceProviders() + azure.networks() + .manager() + .serviceClient() + .getExpressRouteServiceProviders() .list(com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesCreateOrUpdateSamples.java index 7176188113977..5d6945b1ce22c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesCreateOrUpdateSamples.java @@ -26,6 +26,7 @@ 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; @@ -35,56 +36,66 @@ */ public final class FirewallPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/FirewallPolicyPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyPut.json */ /** * Sample code: Create FirewallPolicy. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createFirewallPolicy(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getFirewallPolicies().createOrUpdate("rg1", "firewallPolicy", - new FirewallPolicyInner().withLocation("West US").withTags(mapOf("key1", "fakeTokenPlaceholder")) + azure.networks() + .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") + .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/subid/resourcegroups/rg1/providers/microsoft.operationalinsights/workspaces/workspace1")), - new FirewallPolicyLogAnalyticsWorkspace().withRegion("eastus") - .withWorkspaceId(new SubResource().withId( - "/subscriptions/subid/resourcegroups/rg1/providers/microsoft.operationalinsights/workspaces/workspace2")))) + new FirewallPolicyLogAnalyticsWorkspace().withRegion("eastus") + .withWorkspaceId(new SubResource().withId( + "/subscriptions/subid/resourcegroups/rg1/providers/microsoft.operationalinsights/workspaces/workspace2")))) .withDefaultWorkspaceId(new SubResource().withId( "/subscriptions/subid/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) + .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( + .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"))) + .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); + com.azure.core.util.Context.NONE); } // Use "Map.of" if available diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesDeleteSamples.java index 7f4b22539b784..43168922b5920 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class FirewallPoliciesDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/FirewallPolicyDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyDelete.json */ /** * Sample code: Delete Firewall Policy. @@ -18,7 +17,10 @@ public final class FirewallPoliciesDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteFirewallPolicy(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getFirewallPolicies().delete("rg1", "firewallPolicy", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getFirewallPolicies() + .delete("rg1", "firewallPolicy", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesGetByResourceGroupSamples.java index 714901400abbe..121b485b1cb29 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class FirewallPoliciesGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/FirewallPolicyGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyGet.json */ /** * Sample code: Get FirewallPolicy. @@ -18,7 +17,10 @@ public final class FirewallPoliciesGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getFirewallPolicy(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getFirewallPolicies().getByResourceGroupWithResponse("rg1", - "firewallPolicy", null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getFirewallPolicies() + .getByResourceGroupWithResponse("rg1", "firewallPolicy", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesListByResourceGroupSamples.java index 81077d077e930..58f649e67b76c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class FirewallPoliciesListByResourceGroupSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * FirewallPolicyListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyListByResourceGroup.json */ /** * Sample code: List all Firewall Policies for a given resource group. @@ -19,7 +18,10 @@ public final class FirewallPoliciesListByResourceGroupSamples { */ public static void listAllFirewallPoliciesForAGivenResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getFirewallPolicies().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getFirewallPolicies() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesListSamples.java index 109a85e6f633f..38d1ad53f9f99 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesListSamples.java @@ -9,8 +9,7 @@ */ public final class FirewallPoliciesListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * FirewallPolicyListBySubscription.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyListBySubscription.json */ /** * Sample code: List all Firewall Policies for a given subscription. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesUpdateTagsSamples.java index 8e68a23fcbf50..03451fc3fec31 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPoliciesUpdateTagsSamples.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.network.generated; import com.azure.resourcemanager.network.models.TagsObject; + import java.util.HashMap; import java.util.Map; @@ -13,19 +14,21 @@ */ public final class FirewallPoliciesUpdateTagsSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/FirewallPolicyPatch.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyPatch.json */ /** * Sample code: Update FirewallPolicy Tags. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updateFirewallPolicyTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getFirewallPolicies().updateTagsWithResponse("myResourceGroup", - "firewallPolicy", - new TagsObject().withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")), - com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyDeploymentsDeploySamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyDeploymentsDeploySamples.java new file mode 100644 index 0000000000000..6938531dd0655 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyDeploymentsDeploySamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for FirewallPolicyDeployments Deploy. + */ +public final class FirewallPolicyDeploymentsDeploySamples { + /* + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyDraftDeploy.json + */ + /** + * Sample code: deploy firewall policy draft. + * + * @param azure The entry point for accessing resource management APIs in Azure. + */ + public static void deployFirewallPolicyDraft(com.azure.resourcemanager.AzureResourceManager azure) { + azure.networks() + .manager() + .serviceClient() + .getFirewallPolicyDeployments() + .deploy("rg1", "firewallPolicy", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyDraftsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyDraftsCreateOrUpdateSamples.java new file mode 100644 index 0000000000000..6b7d5c5770354 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyDraftsCreateOrUpdateSamples.java @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest 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: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyDraftPut.json + */ + /** + * Sample code: create or update firewall policy draft. + * + * @param azure The entry point for accessing resource management APIs in Azure. + */ + public static void createOrUpdateFirewallPolicyDraft(com.azure.resourcemanager.AzureResourceManager azure) { + azure.networks() + .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/subid/resourcegroups/rg1/providers/microsoft.operationalinsights/workspaces/workspace1")), + new FirewallPolicyLogAnalyticsWorkspace().withRegion("eastus") + .withWorkspaceId(new SubResource().withId( + "/subscriptions/subid/resourcegroups/rg1/providers/microsoft.operationalinsights/workspaces/workspace2")))) + .withDefaultWorkspaceId(new SubResource().withId( + "/subscriptions/subid/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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyDraftsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyDraftsDeleteSamples.java new file mode 100644 index 0000000000000..d868504f2d8f1 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyDraftsDeleteSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for FirewallPolicyDrafts Delete. + */ +public final class FirewallPolicyDraftsDeleteSamples { + /* + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyDraftDelete.json + */ + /** + * Sample code: delete firewall policy draft. + * + * @param azure The entry point for accessing resource management APIs in Azure. + */ + public static void deleteFirewallPolicyDraft(com.azure.resourcemanager.AzureResourceManager azure) { + azure.networks() + .manager() + .serviceClient() + .getFirewallPolicyDrafts() + .deleteWithResponse("rg1", "firewallPolicy", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyDraftsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyDraftsGetSamples.java new file mode 100644 index 0000000000000..b28ad7dd0eeaf --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyDraftsGetSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for FirewallPolicyDrafts Get. + */ +public final class FirewallPolicyDraftsGetSamples { + /* + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyDraftGet.json + */ + /** + * Sample code: get firewall policy draft. + * + * @param azure The entry point for accessing resource management APIs in Azure. + */ + public static void getFirewallPolicyDraft(com.azure.resourcemanager.AzureResourceManager azure) { + azure.networks() + .manager() + .serviceClient() + .getFirewallPolicyDrafts() + .getWithResponse("rg1", "firewallPolicy", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesFilterValuesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesFilterValuesListSamples.java index 03e5168494694..9a9f71234effe 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesFilterValuesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesFilterValuesListSamples.java @@ -11,8 +11,7 @@ */ public final class FirewallPolicyIdpsSignaturesFilterValuesListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * FirewallPolicyQuerySignatureOverridesFilterValues.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyQuerySignatureOverridesFilterValues.json */ /** * Sample code: query signature overrides. @@ -20,8 +19,11 @@ public final class FirewallPolicyIdpsSignaturesFilterValuesListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void querySignatureOverrides(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getFirewallPolicyIdpsSignaturesFilterValues().listWithResponse("rg1", - "firewallPolicy", new SignatureOverridesFilterValuesQuery().withFilterName("severity"), - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getFirewallPolicyIdpsSignaturesFilterValues() + .listWithResponse("rg1", "firewallPolicy", + new SignatureOverridesFilterValuesQuery().withFilterName("severity"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesListSamples.java index ebd4752eaf38a..ea047a49a4e94 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesListSamples.java @@ -8,6 +8,7 @@ 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; /** @@ -15,20 +16,23 @@ */ public final class FirewallPolicyIdpsSignaturesListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * FirewallPolicyQuerySignatureOverrides.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyQuerySignatureOverrides.json */ /** * Sample code: query signature overrides. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void querySignatureOverrides(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getFirewallPolicyIdpsSignatures() + azure.networks() + .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); + .withResultsPerPage(20) + .withSkip(0), com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesOverridesGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesOverridesGetSamples.java index ed9ab5d259f03..68b1e0a4e20f2 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesOverridesGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesOverridesGetSamples.java @@ -9,8 +9,7 @@ */ public final class FirewallPolicyIdpsSignaturesOverridesGetSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * FirewallPolicySignatureOverridesGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicySignatureOverridesGet.json */ /** * Sample code: get signature overrides. @@ -18,7 +17,10 @@ public final class FirewallPolicyIdpsSignaturesOverridesGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getSignatureOverrides(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getFirewallPolicyIdpsSignaturesOverrides().getWithResponse("rg1", - "firewallPolicy", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getFirewallPolicyIdpsSignaturesOverrides() + .getWithResponse("rg1", "firewallPolicy", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesOverridesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesOverridesListSamples.java index 672a4ab6ae9a0..9ced2b757ab5f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesOverridesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesOverridesListSamples.java @@ -9,8 +9,7 @@ */ public final class FirewallPolicyIdpsSignaturesOverridesListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * FirewallPolicySignatureOverridesList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicySignatureOverridesList.json */ /** * Sample code: get signature overrides. @@ -18,7 +17,10 @@ public final class FirewallPolicyIdpsSignaturesOverridesListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getSignatureOverrides(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getFirewallPolicyIdpsSignaturesOverrides().listWithResponse("rg1", - "firewallPolicy", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getFirewallPolicyIdpsSignaturesOverrides() + .listWithResponse("rg1", "firewallPolicy", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesOverridesPatchSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesOverridesPatchSamples.java index 3a60e761c739c..28db303d28e0f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesOverridesPatchSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesOverridesPatchSamples.java @@ -6,6 +6,7 @@ import com.azure.resourcemanager.network.fluent.models.SignaturesOverridesInner; import com.azure.resourcemanager.network.models.SignaturesOverridesProperties; + import java.util.HashMap; import java.util.Map; @@ -14,19 +15,23 @@ */ public final class FirewallPolicyIdpsSignaturesOverridesPatchSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * FirewallPolicySignatureOverridesPatch.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicySignatureOverridesPatch.json */ /** * Sample code: patch signature overrides. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void patchSignatureOverrides(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getFirewallPolicyIdpsSignaturesOverrides() - .patchWithResponse("rg1", "firewallPolicy", new SignaturesOverridesInner().withName("default").withId( - "/subscriptions/e747cc13-97d4-4a79-b463-42d7f4e558f2/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/signatureOverrides/default") - .withType("Microsoft.Network/firewallPolicies/signatureOverrides").withProperties( + azure.networks() + .manager() + .serviceClient() + .getFirewallPolicyIdpsSignaturesOverrides() + .patchWithResponse("rg1", "firewallPolicy", new SignaturesOverridesInner().withName("default") + .withId( + "/subscriptions/e747cc13-97d4-4a79-b463-42d7f4e558f2/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/signatureOverrides/default") + .withType("Microsoft.Network/firewallPolicies/signatureOverrides") + .withProperties( new SignaturesOverridesProperties().withSignatures(mapOf("2000105", "Off", "2000106", "Deny"))), com.azure.core.util.Context.NONE); } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesOverridesPutSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesOverridesPutSamples.java index 31024199e7bb9..e82d787f73e2e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesOverridesPutSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyIdpsSignaturesOverridesPutSamples.java @@ -6,6 +6,7 @@ import com.azure.resourcemanager.network.fluent.models.SignaturesOverridesInner; import com.azure.resourcemanager.network.models.SignaturesOverridesProperties; + import java.util.HashMap; import java.util.Map; @@ -14,19 +15,23 @@ */ public final class FirewallPolicyIdpsSignaturesOverridesPutSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * FirewallPolicySignatureOverridesPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicySignatureOverridesPut.json */ /** * Sample code: put signature overrides. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void putSignatureOverrides(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getFirewallPolicyIdpsSignaturesOverrides() - .putWithResponse("rg1", "firewallPolicy", new SignaturesOverridesInner().withName("default").withId( - "/subscriptions/e747cc13-97d4-4a79-b463-42d7f4e558f2/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/signatureOverrides/default") - .withType("Microsoft.Network/firewallPolicies/signatureOverrides").withProperties( + azure.networks() + .manager() + .serviceClient() + .getFirewallPolicyIdpsSignaturesOverrides() + .putWithResponse("rg1", "firewallPolicy", new SignaturesOverridesInner().withName("default") + .withId( + "/subscriptions/e747cc13-97d4-4a79-b463-42d7f4e558f2/resourceGroups/rg1/providers/Microsoft.Network/firewallPolicies/firewallPolicy/signatureOverrides/default") + .withType("Microsoft.Network/firewallPolicies/signatureOverrides") + .withProperties( new SignaturesOverridesProperties().withSignatures(mapOf("2000105", "Off", "2000106", "Deny"))), com.azure.core.util.Context.NONE); } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupDraftsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupDraftsCreateOrUpdateSamples.java new file mode 100644 index 0000000000000..b2943e30f83fc --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupDraftsCreateOrUpdateSamples.java @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest 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: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupDraftPut.json + */ + /** + * Sample code: create or update rule collection group draft. + * + * @param azure The entry point for accessing resource management APIs in Azure. + */ + public static void createOrUpdateRuleCollectionGroupDraft(com.azure.resourcemanager.AzureResourceManager azure) { + azure.networks() + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupDraftsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupDraftsDeleteSamples.java new file mode 100644 index 0000000000000..49e4e69a83cbc --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupDraftsDeleteSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for FirewallPolicyRuleCollectionGroupDrafts Delete. + */ +public final class FirewallPolicyRuleCollectionGroupDraftsDeleteSamples { + /* + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupDraftDelete.json + */ + /** + * Sample code: delete firewall rule collection group draft. + * + * @param azure The entry point for accessing resource management APIs in Azure. + */ + public static void deleteFirewallRuleCollectionGroupDraft(com.azure.resourcemanager.AzureResourceManager azure) { + azure.networks() + .manager() + .serviceClient() + .getFirewallPolicyRuleCollectionGroupDrafts() + .deleteWithResponse("rg1", "firewallPolicy", "ruleCollectionGroup1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupDraftsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupDraftsGetSamples.java new file mode 100644 index 0000000000000..4c744e60f9f1c --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupDraftsGetSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for FirewallPolicyRuleCollectionGroupDrafts Get. + */ +public final class FirewallPolicyRuleCollectionGroupDraftsGetSamples { + /* + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupDraftGet.json + */ + /** + * Sample code: get rule collection group draft. + * + * @param azure The entry point for accessing resource management APIs in Azure. + */ + public static void getRuleCollectionGroupDraft(com.azure.resourcemanager.AzureResourceManager azure) { + azure.networks() + .manager() + .serviceClient() + .getFirewallPolicyRuleCollectionGroupDrafts() + .getWithResponse("rg1", "firewallPolicy", "ruleCollectionGroup1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupsCreateOrUpdateSamples.java index f27e29ded4ddd..f8e41295daa06 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupsCreateOrUpdateSamples.java @@ -18,6 +18,7 @@ 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; /** @@ -25,135 +26,153 @@ */ public final class FirewallPolicyRuleCollectionGroupsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * FirewallPolicyRuleCollectionGroupPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupPut.json */ /** * Sample code: Create Firewall Policy Rule Collection Group. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createFirewallPolicyRuleCollectionGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * FirewallPolicyRuleCollectionGroupWithWebCategoriesPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesPut.json */ /** * Sample code: Create Firewall Policy Rule Collection Group With Web Categories. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createFirewallPolicyRuleCollectionGroupWithWebCategories(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * FirewallPolicyNatRuleCollectionGroupPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyNatRuleCollectionGroupPut.json */ /** * Sample code: Create Firewall Policy Nat Rule Collection Group. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createFirewallPolicyNatRuleCollectionGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * FirewallPolicyRuleCollectionGroupWithIpGroupsPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsPut.json */ /** * Sample code: Create Firewall Policy Rule Collection Group With IP Groups. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createFirewallPolicyRuleCollectionGroupWithIPGroups(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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/subid/providers/Microsoft.Network/resourceGroup/rg1/ipGroups/ipGroups1")) - .withDestinationIpGroups(Arrays.asList( - "/subscriptions/subid/providers/Microsoft.Network/resourceGroup/rg1/ipGroups/ipGroups2")))))), - com.azure.core.util.Context.NONE); + azure.networks() + .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/subid/providers/Microsoft.Network/resourceGroup/rg1/ipGroups/ipGroups1")) + .withDestinationIpGroups(Arrays.asList( + "/subscriptions/subid/providers/Microsoft.Network/resourceGroup/rg1/ipGroups/ipGroups2")))))), + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * FirewallPolicyRuleCollectionGroupWithHttpHeadersToInsert.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupWithHttpHeadersToInsert.json */ /** * Sample code: Create Firewall Policy Rule Collection Group With http header to insert. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createFirewallPolicyRuleCollectionGroupWithHttpHeaderToInsert( com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getFirewallPolicyRuleCollectionGroups() + azure.networks() + .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") + .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))) + .withProtocolType(FirewallPolicyRuleApplicationProtocolType.HTTP) + .withPort(80))) .withFqdnTags(Arrays.asList("WindowsVirtualDesktop")) .withHttpHeadersToInsert(Arrays.asList(new FirewallPolicyHttpHeaderToInsert() .withHeaderName("Restrict-Access-To-Tenants") diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupsDeleteSamples.java index dcd853a794410..57f6d0820c16c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupsDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class FirewallPolicyRuleCollectionGroupsDeleteSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * FirewallPolicyRuleCollectionGroupDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupDelete.json */ /** * Sample code: Delete FirewallPolicyRuleCollectionGroup. @@ -18,7 +17,10 @@ public final class FirewallPolicyRuleCollectionGroupsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteFirewallPolicyRuleCollectionGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getFirewallPolicyRuleCollectionGroups().delete("rg1", - "firewallPolicy", "ruleCollectionGroup1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getFirewallPolicyRuleCollectionGroups() + .delete("rg1", "firewallPolicy", "ruleCollectionGroup1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupsGetSamples.java index bd55b46fccff9..235ff70049fa2 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupsGetSamples.java @@ -9,8 +9,7 @@ */ public final class FirewallPolicyRuleCollectionGroupsGetSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * FirewallPolicyNatRuleCollectionGroupGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyNatRuleCollectionGroupGet.json */ /** * Sample code: Get FirewallPolicyNatRuleCollectionGroup. @@ -18,13 +17,15 @@ public final class FirewallPolicyRuleCollectionGroupsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getFirewallPolicyNatRuleCollectionGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getFirewallPolicyRuleCollectionGroups().getWithResponse("rg1", - "firewallPolicy", "ruleCollectionGroup1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getFirewallPolicyRuleCollectionGroups() + .getWithResponse("rg1", "firewallPolicy", "ruleCollectionGroup1", com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json */ /** * Sample code: Get FirewallPolicyRuleCollectionGroup With Web Categories. @@ -33,13 +34,15 @@ public static void getFirewallPolicyNatRuleCollectionGroup(com.azure.resourceman */ public static void getFirewallPolicyRuleCollectionGroupWithWebCategories(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getFirewallPolicyRuleCollectionGroups().getWithResponse("rg1", - "firewallPolicy", "ruleCollectionGroup1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getFirewallPolicyRuleCollectionGroups() + .getWithResponse("rg1", "firewallPolicy", "ruleCollectionGroup1", com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * FirewallPolicyRuleCollectionGroupGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupGet.json */ /** * Sample code: Get FirewallPolicyRuleCollectionGroup. @@ -47,13 +50,15 @@ public static void getFirewallPolicyNatRuleCollectionGroup(com.azure.resourceman * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getFirewallPolicyRuleCollectionGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getFirewallPolicyRuleCollectionGroups().getWithResponse("rg1", - "firewallPolicy", "ruleCollectionGroup1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getFirewallPolicyRuleCollectionGroups() + .getWithResponse("rg1", "firewallPolicy", "ruleCollectionGroup1", com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json */ /** * Sample code: Get FirewallPolicyRuleCollectionGroup With IpGroups. @@ -62,7 +67,10 @@ public static void getFirewallPolicyRuleCollectionGroup(com.azure.resourcemanage */ public static void getFirewallPolicyRuleCollectionGroupWithIpGroups(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getFirewallPolicyRuleCollectionGroups().getWithResponse("rg1", - "firewallPolicy", "ruleGroup1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getFirewallPolicyRuleCollectionGroups() + .getWithResponse("rg1", "firewallPolicy", "ruleGroup1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupsListSamples.java index d1d996dcbc9b1..ce6cfddd66cc2 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FirewallPolicyRuleCollectionGroupsListSamples.java @@ -9,8 +9,7 @@ */ public final class FirewallPolicyRuleCollectionGroupsListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * FirewallPolicyRuleCollectionGroupList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupList.json */ /** * Sample code: List all FirewallPolicyRuleCollectionGroups for a given FirewallPolicy. @@ -19,13 +18,15 @@ public final class FirewallPolicyRuleCollectionGroupsListSamples { */ public static void listAllFirewallPolicyRuleCollectionGroupsForAGivenFirewallPolicy( com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getFirewallPolicyRuleCollectionGroups().list("rg1", "firewallPolicy", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getFirewallPolicyRuleCollectionGroups() + .list("rg1", "firewallPolicy", com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * FirewallPolicyRuleCollectionGroupWithIpGroupsList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsList.json */ /** * Sample code: List all FirewallPolicyRuleCollectionGroups with IpGroups for a given FirewallPolicy. @@ -34,13 +35,15 @@ public static void listAllFirewallPolicyRuleCollectionGroupsForAGivenFirewallPol */ public static void listAllFirewallPolicyRuleCollectionGroupsWithIpGroupsForAGivenFirewallPolicy( com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getFirewallPolicyRuleCollectionGroups().list("rg1", "firewallPolicy", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getFirewallPolicyRuleCollectionGroups() + .list("rg1", "firewallPolicy", com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * FirewallPolicyRuleCollectionGroupWithWebCategoriesList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesList.json */ /** * Sample code: List all FirewallPolicyRuleCollectionGroup With Web Categories. @@ -49,7 +52,10 @@ public static void listAllFirewallPolicyRuleCollectionGroupsWithIpGroupsForAGive */ public static void listAllFirewallPolicyRuleCollectionGroupWithWebCategories( com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getFirewallPolicyRuleCollectionGroups().list("rg1", "firewallPolicy", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getFirewallPolicyRuleCollectionGroups() + .list("rg1", "firewallPolicy", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsCreateOrUpdateSamples.java index 7c7a4cfaec779..10cc825723273 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsCreateOrUpdateSamples.java @@ -13,9 +13,7 @@ */ public final class FlowLogsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkWatcherFlowLogCreate. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherFlowLogCreate.json */ /** * Sample code: Create or update flow log. @@ -23,14 +21,17 @@ public final class FlowLogsCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createOrUpdateFlowLog(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getFlowLogs().createOrUpdate("rg1", "nw1", "fl", new FlowLogInner() - .withLocation("centraluseuap") - .withTargetResourceId( - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/desmondcentral-nsg") - .withStorageId( - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/nwtest1mgvbfmqsigdxe") - .withEnabled(true) - .withFormat(new FlowLogFormatParameters().withType(FlowLogFormatType.JSON).withVersion(1)), - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getFlowLogs() + .createOrUpdate("rg1", "nw1", "fl", new FlowLogInner().withLocation("centraluseuap") + .withTargetResourceId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/desmondcentral-nsg") + .withStorageId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/nwtest1mgvbfmqsigdxe") + .withEnabled(true) + .withFormat(new FlowLogFormatParameters().withType(FlowLogFormatType.JSON).withVersion(1)), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsDeleteSamples.java index 11c066392edae..fc459b3f29b77 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsDeleteSamples.java @@ -9,9 +9,7 @@ */ public final class FlowLogsDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkWatcherFlowLogDelete. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherFlowLogDelete.json */ /** * Sample code: Delete flow log. @@ -19,7 +17,10 @@ public final class FlowLogsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteFlowLog(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getFlowLogs().delete("rg1", "nw1", "fl", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getFlowLogs() + .delete("rg1", "nw1", "fl", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsGetSamples.java index c4310a9385e34..173019ebb13d0 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsGetSamples.java @@ -9,8 +9,7 @@ */ public final class FlowLogsGetSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkWatcherFlowLogGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherFlowLogGet.json */ /** * Sample code: Get flow log. @@ -18,7 +17,10 @@ public final class FlowLogsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getFlowLog(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getFlowLogs().getWithResponse("rg1", "nw1", "flowLog1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getFlowLogs() + .getWithResponse("rg1", "nw1", "flowLog1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsListSamples.java index 8032ba76c0351..2edc35d14cbc1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsListSamples.java @@ -9,9 +9,7 @@ */ public final class FlowLogsListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkWatcherFlowLogList. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherFlowLogList.json */ /** * Sample code: List connection monitors. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsUpdateTagsSamples.java index 6ad1eb7f31ffb..53d2acd4510da 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/FlowLogsUpdateTagsSamples.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.network.generated; import com.azure.resourcemanager.network.models.TagsObject; + import java.util.HashMap; import java.util.Map; @@ -13,17 +14,20 @@ */ public final class FlowLogsUpdateTagsSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkWatcherFlowLogUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherFlowLogUpdateTags.json */ /** * Sample code: Update flow log tags. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updateFlowLogTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getFlowLogs().updateTagsWithResponse("rg1", "nw", "fl", - new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/HubRouteTablesCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/HubRouteTablesCreateOrUpdateSamples.java index dac64604855ff..2d897d937a0d3 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/HubRouteTablesCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/HubRouteTablesCreateOrUpdateSamples.java @@ -6,6 +6,7 @@ import com.azure.resourcemanager.network.fluent.models.HubRouteTableInner; import com.azure.resourcemanager.network.models.HubRoute; + import java.util.Arrays; /** @@ -13,22 +14,25 @@ */ public final class HubRouteTablesCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/HubRouteTablePut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/HubRouteTablePut.json */ /** * Sample code: RouteTablePut. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void routeTablePut(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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/subid/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azureFirewall1"))) - .withLabels(Arrays.asList("label1", "label2")), - com.azure.core.util.Context.NONE); + azure.networks() + .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/subid/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azureFirewall1"))) + .withLabels(Arrays.asList("label1", "label2")), com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/HubRouteTablesDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/HubRouteTablesDeleteSamples.java index 9ac957bbd71e5..b4ef9a4d79567 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/HubRouteTablesDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/HubRouteTablesDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class HubRouteTablesDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/HubRouteTableDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/HubRouteTableDelete.json */ /** * Sample code: RouteTableDelete. @@ -18,7 +17,10 @@ public final class HubRouteTablesDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void routeTableDelete(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getHubRouteTables().delete("rg1", "virtualHub1", "hubRouteTable1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getHubRouteTables() + .delete("rg1", "virtualHub1", "hubRouteTable1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/HubRouteTablesGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/HubRouteTablesGetSamples.java index c31787b982aa1..5968c1ec32d39 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/HubRouteTablesGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/HubRouteTablesGetSamples.java @@ -9,8 +9,7 @@ */ public final class HubRouteTablesGetSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/HubRouteTableGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/HubRouteTableGet.json */ /** * Sample code: RouteTableGet. @@ -18,7 +17,10 @@ public final class HubRouteTablesGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void routeTableGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getHubRouteTables().getWithResponse("rg1", "virtualHub1", - "hubRouteTable1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getHubRouteTables() + .getWithResponse("rg1", "virtualHub1", "hubRouteTable1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/HubRouteTablesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/HubRouteTablesListSamples.java index b2210e8fc5bdf..7557975f0bb71 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/HubRouteTablesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/HubRouteTablesListSamples.java @@ -9,8 +9,7 @@ */ public final class HubRouteTablesListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/HubRouteTableList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/HubRouteTableList.json */ /** * Sample code: RouteTableList. @@ -18,7 +17,10 @@ public final class HubRouteTablesListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void routeTableList(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getHubRouteTables().list("rg1", "virtualHub1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getHubRouteTables() + .list("rg1", "virtualHub1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/HubVirtualNetworkConnectionsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/HubVirtualNetworkConnectionsCreateOrUpdateSamples.java index 8f371afaf70fb..eb17d0e611382 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/HubVirtualNetworkConnectionsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/HubVirtualNetworkConnectionsCreateOrUpdateSamples.java @@ -12,6 +12,7 @@ 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; /** @@ -19,16 +20,18 @@ */ public final class HubVirtualNetworkConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * HubVirtualNetworkConnectionPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/HubVirtualNetworkConnectionPut.json */ /** * Sample code: HubVirtualNetworkConnectionPut. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void hubVirtualNetworkConnectionPut(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getHubVirtualNetworkConnections() + azure.networks() + .manager() + .serviceClient() + .getHubVirtualNetworkConnections() .createOrUpdate("rg1", "virtualHub1", "connection1", new HubVirtualNetworkConnectionInner() .withRemoteVirtualNetwork(new SubResource().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/SpokeVnet1")) diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/HubVirtualNetworkConnectionsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/HubVirtualNetworkConnectionsDeleteSamples.java index d61dad9965cdd..3062431d5473b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/HubVirtualNetworkConnectionsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/HubVirtualNetworkConnectionsDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class HubVirtualNetworkConnectionsDeleteSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * HubVirtualNetworkConnectionDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/HubVirtualNetworkConnectionDelete.json */ /** * Sample code: HubVirtualNetworkConnectionDelete. @@ -18,7 +17,10 @@ public final class HubVirtualNetworkConnectionsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void hubVirtualNetworkConnectionDelete(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getHubVirtualNetworkConnections().delete("rg1", "virtualHub1", - "connection1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getHubVirtualNetworkConnections() + .delete("rg1", "virtualHub1", "connection1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/HubVirtualNetworkConnectionsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/HubVirtualNetworkConnectionsGetSamples.java index 3d05ea589cddc..8f6eaaacadf14 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/HubVirtualNetworkConnectionsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/HubVirtualNetworkConnectionsGetSamples.java @@ -9,8 +9,7 @@ */ public final class HubVirtualNetworkConnectionsGetSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * HubVirtualNetworkConnectionGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/HubVirtualNetworkConnectionGet.json */ /** * Sample code: HubVirtualNetworkConnectionGet. @@ -18,7 +17,10 @@ public final class HubVirtualNetworkConnectionsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void hubVirtualNetworkConnectionGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getHubVirtualNetworkConnections().getWithResponse("rg1", - "virtualHub1", "connection1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getHubVirtualNetworkConnections() + .getWithResponse("rg1", "virtualHub1", "connection1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/HubVirtualNetworkConnectionsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/HubVirtualNetworkConnectionsListSamples.java index b3ef55d531372..098c7c7313884 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/HubVirtualNetworkConnectionsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/HubVirtualNetworkConnectionsListSamples.java @@ -9,8 +9,7 @@ */ public final class HubVirtualNetworkConnectionsListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * HubVirtualNetworkConnectionList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/HubVirtualNetworkConnectionList.json */ /** * Sample code: HubVirtualNetworkConnectionList. @@ -18,7 +17,10 @@ public final class HubVirtualNetworkConnectionsListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void hubVirtualNetworkConnectionList(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getHubVirtualNetworkConnections().list("rg1", "virtualHub1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getHubVirtualNetworkConnections() + .list("rg1", "virtualHub1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/InboundNatRulesCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/InboundNatRulesCreateOrUpdateSamples.java index d85f53259f3f0..9e53f8e1855f9 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/InboundNatRulesCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/InboundNatRulesCreateOrUpdateSamples.java @@ -13,8 +13,7 @@ */ public final class InboundNatRulesCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/InboundNatRuleCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/InboundNatRuleCreate.json */ /** * Sample code: InboundNatRuleCreate. @@ -22,11 +21,19 @@ public final class InboundNatRulesCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void inboundNatRuleCreate(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getInboundNatRules().createOrUpdate("testrg", "lb1", "natRule1.1", - new InboundNatRuleInner().withFrontendIpConfiguration(new SubResource().withId( - "/subscriptions/subid/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); + azure.networks() + .manager() + .serviceClient() + .getInboundNatRules() + .createOrUpdate("testrg", "lb1", "natRule1.1", + new InboundNatRuleInner().withFrontendIpConfiguration(new SubResource().withId( + "/subscriptions/subid/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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/InboundNatRulesDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/InboundNatRulesDeleteSamples.java index 9e78136b62b82..8e663fd3556e6 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/InboundNatRulesDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/InboundNatRulesDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class InboundNatRulesDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/InboundNatRuleDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/InboundNatRuleDelete.json */ /** * Sample code: InboundNatRuleDelete. @@ -18,7 +17,10 @@ public final class InboundNatRulesDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void inboundNatRuleDelete(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getInboundNatRules().delete("testrg", "lb1", "natRule1.1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getInboundNatRules() + .delete("testrg", "lb1", "natRule1.1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/InboundNatRulesGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/InboundNatRulesGetSamples.java index c2b6b2c2e35d1..a58d2f2eb8ded 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/InboundNatRulesGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/InboundNatRulesGetSamples.java @@ -9,8 +9,7 @@ */ public final class InboundNatRulesGetSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/InboundNatRuleGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/InboundNatRuleGet.json */ /** * Sample code: InboundNatRuleGet. @@ -18,7 +17,10 @@ public final class InboundNatRulesGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void inboundNatRuleGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getInboundNatRules().getWithResponse("testrg", "lb1", "natRule1.1", - null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getInboundNatRules() + .getWithResponse("testrg", "lb1", "natRule1.1", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/InboundNatRulesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/InboundNatRulesListSamples.java index f2fe654c42003..1133be0850af2 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/InboundNatRulesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/InboundNatRulesListSamples.java @@ -9,8 +9,7 @@ */ public final class InboundNatRulesListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/InboundNatRuleList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/InboundNatRuleList.json */ /** * Sample code: InboundNatRuleList. @@ -18,7 +17,10 @@ public final class InboundNatRulesListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void inboundNatRuleList(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getInboundNatRules().list("testrg", "lb1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getInboundNatRules() + .list("testrg", "lb1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/InboundSecurityRuleOperationCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/InboundSecurityRuleOperationCreateOrUpdateSamples.java index 249f4dcad9d37..f4ab8c045ed4e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/InboundSecurityRuleOperationCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/InboundSecurityRuleOperationCreateOrUpdateSamples.java @@ -5,8 +5,10 @@ package com.azure.resourcemanager.network.generated; import com.azure.resourcemanager.network.fluent.models.InboundSecurityRuleInner; +import com.azure.resourcemanager.network.models.InboundSecurityRuleType; import com.azure.resourcemanager.network.models.InboundSecurityRules; import com.azure.resourcemanager.network.models.InboundSecurityRulesProtocol; + import java.util.Arrays; /** @@ -14,21 +16,27 @@ */ public final class InboundSecurityRuleOperationCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/InboundSecurityRulePut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/InboundSecurityRulePut.json */ /** * Sample code: Create Network Virtual Appliance Inbound Security Rules. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createNetworkVirtualApplianceInboundSecurityRules(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getInboundSecurityRuleOperations().createOrUpdate("rg1", "nva", - "rule1", - new InboundSecurityRuleInner() - .withRules(Arrays.asList(new InboundSecurityRules().withProtocol(InboundSecurityRulesProtocol.TCP) - .withSourceAddressPrefix("50.20.121.5/32").withDestinationPortRange(22))), - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getInboundSecurityRuleOperations() + .createOrUpdate("rg1", "nva", "rule1", + new InboundSecurityRuleInner().withRuleType(InboundSecurityRuleType.PERMANENT) + .withRules(Arrays.asList(new InboundSecurityRules().withName("inboundRule1") + .withProtocol(InboundSecurityRulesProtocol.TCP) + .withSourceAddressPrefix("50.20.121.5/32") + .withDestinationPortRange(22) + .withDestinationPortRanges(Arrays.asList("80-100")) + .withAppliesOn(Arrays.asList("slbip1")))), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsCreateOrUpdateSamples.java index c92cb906b5586..7034e6045e877 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsCreateOrUpdateSamples.java @@ -6,6 +6,7 @@ import com.azure.resourcemanager.network.fluent.models.IpAllocationInner; import com.azure.resourcemanager.network.models.IpAllocationType; + import java.util.HashMap; import java.util.Map; @@ -14,21 +15,24 @@ */ public final class IpAllocationsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/IpAllocationCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/IpAllocationCreate.json */ /** * Sample code: Create IpAllocation. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createIpAllocation(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getIpAllocations().createOrUpdate("rg1", "test-ipallocation", - new IpAllocationInner().withLocation("centraluseuap").withTypePropertiesType(IpAllocationType.HYPERNET) + azure.networks() + .manager() + .serviceClient() + .getIpAllocations() + .createOrUpdate("rg1", "test-ipallocation", new IpAllocationInner().withLocation("centraluseuap") + .withTypePropertiesType(IpAllocationType.HYPERNET) .withPrefix("3.2.5.0/24") .withAllocationTags(mapOf("VNetID", "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/HypernetVnet1")), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } // Use "Map.of" if available diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsDeleteSamples.java index b9cdc4ebb925d..c6079b7bd0ba1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class IpAllocationsDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/IpAllocationDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/IpAllocationDelete.json */ /** * Sample code: Delete IpAllocation. @@ -18,7 +17,10 @@ public final class IpAllocationsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteIpAllocation(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getIpAllocations().delete("rg1", "test-ipallocation", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getIpAllocations() + .delete("rg1", "test-ipallocation", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsGetByResourceGroupSamples.java index 41090399636c8..699a746b2ec5b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class IpAllocationsGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/IpAllocationGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/IpAllocationGet.json */ /** * Sample code: Get IpAllocation. @@ -18,7 +17,10 @@ public final class IpAllocationsGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getIpAllocation(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getIpAllocations().getByResourceGroupWithResponse("rg1", - "test-ipallocation", null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getIpAllocations() + .getByResourceGroupWithResponse("rg1", "test-ipallocation", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsListByResourceGroupSamples.java index 0d5fea70f0221..e15c138d6f015 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class IpAllocationsListByResourceGroupSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * IpAllocationListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/IpAllocationListByResourceGroup.json */ /** * Sample code: List IpAllocations in resource group. @@ -18,7 +17,10 @@ public final class IpAllocationsListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listIpAllocationsInResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getIpAllocations().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getIpAllocations() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsListSamples.java index d08b67f6386d7..ef84b5490aee4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsListSamples.java @@ -9,8 +9,7 @@ */ public final class IpAllocationsListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/IpAllocationList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/IpAllocationList.json */ /** * Sample code: List all IpAllocations. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsUpdateTagsSamples.java index a26ec06e3f515..786ae0842c2ff 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpAllocationsUpdateTagsSamples.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.network.generated; import com.azure.resourcemanager.network.models.TagsObject; + import java.util.HashMap; import java.util.Map; @@ -13,17 +14,20 @@ */ public final class IpAllocationsUpdateTagsSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/IpAllocationUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/IpAllocationUpdateTags.json */ /** * Sample code: Update virtual network tags. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updateVirtualNetworkTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getIpAllocations().updateTagsWithResponse("rg1", "test-ipallocation", - new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsCreateOrUpdateSamples.java index bc29bd4752a7c..80ed4ba8b6048 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsCreateOrUpdateSamples.java @@ -5,6 +5,7 @@ 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; @@ -14,19 +15,23 @@ */ public final class IpGroupsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/IpGroupsCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/IpGroupsCreate.json */ /** * Sample code: CreateOrUpdate_IpGroups. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createOrUpdateIpGroups(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsDeleteSamples.java index 6e2a74d9265ad..2426b15c7a366 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class IpGroupsDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/IpGroupsDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/IpGroupsDelete.json */ /** * Sample code: Delete_IpGroups. @@ -18,7 +17,10 @@ public final class IpGroupsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteIpGroups(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getIpGroups().delete("myResourceGroup", "ipGroups1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getIpGroups() + .delete("myResourceGroup", "ipGroups1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsGetByResourceGroupSamples.java index 9fb1b0e059a50..4dd8971ef1b90 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class IpGroupsGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/IpGroupsGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/IpGroupsGet.json */ /** * Sample code: Get_IpGroups. @@ -18,7 +17,10 @@ public final class IpGroupsGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getIpGroups(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getIpGroups().getByResourceGroupWithResponse("myResourceGroup", - "ipGroups1", null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getIpGroups() + .getByResourceGroupWithResponse("myResourceGroup", "ipGroups1", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsListByResourceGroupSamples.java index 37bca0b02473a..3191e27d6c61e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsListByResourceGroupSamples.java @@ -9,9 +9,7 @@ */ public final class IpGroupsListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/IpGroupsListByResourceGroup. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/IpGroupsListByResourceGroup.json */ /** * Sample code: ListByResourceGroup_IpGroups. @@ -19,7 +17,10 @@ public final class IpGroupsListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listByResourceGroupIpGroups(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getIpGroups().listByResourceGroup("myResourceGroup", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getIpGroups() + .listByResourceGroup("myResourceGroup", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsListSamples.java index 7d49028c2557d..72ca2f683dc6d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsListSamples.java @@ -9,9 +9,7 @@ */ public final class IpGroupsListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/IpGroupsListBySubscription. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/IpGroupsListBySubscription.json */ /** * Sample code: List_IpGroups. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsUpdateGroupsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsUpdateGroupsSamples.java index 6266395ea2b90..2ebcef1c639bc 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsUpdateGroupsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/IpGroupsUpdateGroupsSamples.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.network.generated; import com.azure.resourcemanager.network.models.TagsObject; + import java.util.HashMap; import java.util.Map; @@ -13,19 +14,21 @@ */ public final class IpGroupsUpdateGroupsSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/IpGroupsUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/IpGroupsUpdateTags.json */ /** * Sample code: Update_IpGroups. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updateIpGroups(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getIpGroups().updateGroupsWithResponse("myResourceGroup", - "ipGroups1", - new TagsObject().withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")), - com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerBackendAddressPoolsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerBackendAddressPoolsCreateOrUpdateSamples.java index d0f448119caa0..e33c7df59e46e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerBackendAddressPoolsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerBackendAddressPoolsCreateOrUpdateSamples.java @@ -7,6 +7,7 @@ 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; /** @@ -14,27 +15,28 @@ */ public final class LoadBalancerBackendAddressPoolsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * LBBackendAddressPoolWithBackendAddressesPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LBBackendAddressPoolWithBackendAddressesPut.json */ /** * Sample code: Update load balancer backend pool with backend addresses containing virtual network and IP address. - * + * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updateLoadBalancerBackendPoolWithBackendAddressesContainingVirtualNetworkAndIPAddress( com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLoadBalancerBackendAddressPools().createOrUpdate("testrg", "lb", - "backend", - new BackendAddressPoolInner().withLoadBalancerBackendAddresses(Arrays.asList( - new LoadBalancerBackendAddress().withName("address1") + azure.networks() + .manager() + .serviceClient() + .getLoadBalancerBackendAddressPools() + .createOrUpdate("testrg", "lb", "backend", new BackendAddressPoolInner() + .withLoadBalancerBackendAddresses(Arrays.asList(new LoadBalancerBackendAddress().withName("address1") .withVirtualNetwork(new SubResource().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb")) .withIpAddress("10.0.0.4"), - new LoadBalancerBackendAddress().withName("address2") - .withVirtualNetwork(new SubResource().withId( - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb")) - .withIpAddress("10.0.0.5"))), - com.azure.core.util.Context.NONE); + new LoadBalancerBackendAddress().withName("address2") + .withVirtualNetwork(new SubResource().withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb")) + .withIpAddress("10.0.0.5"))), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerBackendAddressPoolsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerBackendAddressPoolsDeleteSamples.java index 1e50cb6745014..72f758a58dc76 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerBackendAddressPoolsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerBackendAddressPoolsDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class LoadBalancerBackendAddressPoolsDeleteSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * LoadBalancerBackendAddressPoolDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerBackendAddressPoolDelete.json */ /** * Sample code: BackendAddressPoolDelete. @@ -18,7 +17,10 @@ public final class LoadBalancerBackendAddressPoolsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void backendAddressPoolDelete(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLoadBalancerBackendAddressPools().delete("testrg", "lb", - "backend", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getLoadBalancerBackendAddressPools() + .delete("testrg", "lb", "backend", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerBackendAddressPoolsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerBackendAddressPoolsGetSamples.java index 21c0a25a58d2f..78d5cb1a29261 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerBackendAddressPoolsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerBackendAddressPoolsGetSamples.java @@ -9,8 +9,7 @@ */ public final class LoadBalancerBackendAddressPoolsGetSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * LoadBalancerBackendAddressPoolGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerBackendAddressPoolGet.json */ /** * Sample code: LoadBalancerBackendAddressPoolGet. @@ -18,13 +17,15 @@ public final class LoadBalancerBackendAddressPoolsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void loadBalancerBackendAddressPoolGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLoadBalancerBackendAddressPools().getWithResponse("testrg", "lb", - "backend", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getLoadBalancerBackendAddressPools() + .getWithResponse("testrg", "lb", "backend", com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * LBBackendAddressPoolWithBackendAddressesGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LBBackendAddressPoolWithBackendAddressesGet.json */ /** * Sample code: LoadBalancer with BackendAddressPool with BackendAddresses. @@ -33,7 +34,10 @@ public static void loadBalancerBackendAddressPoolGet(com.azure.resourcemanager.A */ public static void loadBalancerWithBackendAddressPoolWithBackendAddresses(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLoadBalancerBackendAddressPools().getWithResponse("testrg", "lb", - "backend", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getLoadBalancerBackendAddressPools() + .getWithResponse("testrg", "lb", "backend", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerBackendAddressPoolsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerBackendAddressPoolsListSamples.java index 88ed7ca9e712b..7756938995ced 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerBackendAddressPoolsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerBackendAddressPoolsListSamples.java @@ -9,8 +9,7 @@ */ public final class LoadBalancerBackendAddressPoolsListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * LBBackendAddressPoolListWithBackendAddressesPoolType.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LBBackendAddressPoolListWithBackendAddressesPoolType.json */ /** * Sample code: Load balancer with BackendAddressPool containing BackendAddresses. @@ -19,13 +18,15 @@ public final class LoadBalancerBackendAddressPoolsListSamples { */ public static void loadBalancerWithBackendAddressPoolContainingBackendAddresses( com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLoadBalancerBackendAddressPools().list("testrg", "lb", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getLoadBalancerBackendAddressPools() + .list("testrg", "lb", com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * LoadBalancerBackendAddressPoolList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerBackendAddressPoolList.json */ /** * Sample code: LoadBalancerBackendAddressPoolList. @@ -33,7 +34,10 @@ public static void loadBalancerWithBackendAddressPoolContainingBackendAddresses( * @param azure The entry point for accessing resource management APIs in Azure. */ public static void loadBalancerBackendAddressPoolList(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLoadBalancerBackendAddressPools().list("testrg", "lb", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getLoadBalancerBackendAddressPools() + .list("testrg", "lb", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerFrontendIpConfigurationsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerFrontendIpConfigurationsGetSamples.java index 12e28ad3befaa..33a2b7f0a9c4c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerFrontendIpConfigurationsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerFrontendIpConfigurationsGetSamples.java @@ -9,8 +9,7 @@ */ public final class LoadBalancerFrontendIpConfigurationsGetSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * LoadBalancerFrontendIPConfigurationGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerFrontendIPConfigurationGet.json */ /** * Sample code: LoadBalancerFrontendIPConfigurationGet. @@ -18,7 +17,10 @@ public final class LoadBalancerFrontendIpConfigurationsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void loadBalancerFrontendIPConfigurationGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLoadBalancerFrontendIpConfigurations().getWithResponse("testrg", - "lb", "frontend", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getLoadBalancerFrontendIpConfigurations() + .getWithResponse("testrg", "lb", "frontend", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerFrontendIpConfigurationsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerFrontendIpConfigurationsListSamples.java index d7461f4181c11..d6e1a3147c5c3 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerFrontendIpConfigurationsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerFrontendIpConfigurationsListSamples.java @@ -9,8 +9,7 @@ */ public final class LoadBalancerFrontendIpConfigurationsListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * LoadBalancerFrontendIPConfigurationList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerFrontendIPConfigurationList.json */ /** * Sample code: LoadBalancerFrontendIPConfigurationList. @@ -18,7 +17,10 @@ public final class LoadBalancerFrontendIpConfigurationsListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void loadBalancerFrontendIPConfigurationList(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLoadBalancerFrontendIpConfigurations().list("testrg", "lb", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getLoadBalancerFrontendIpConfigurations() + .list("testrg", "lb", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerLoadBalancingRulesGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerLoadBalancingRulesGetSamples.java index 473a2ebd30b38..8fab4dfa3e7cf 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerLoadBalancingRulesGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerLoadBalancingRulesGetSamples.java @@ -9,8 +9,7 @@ */ public final class LoadBalancerLoadBalancingRulesGetSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * LoadBalancerLoadBalancingRuleGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerLoadBalancingRuleGet.json */ /** * Sample code: LoadBalancerLoadBalancingRuleGet. @@ -18,7 +17,10 @@ public final class LoadBalancerLoadBalancingRulesGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void loadBalancerLoadBalancingRuleGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLoadBalancerLoadBalancingRules().getWithResponse("testrg", "lb1", - "rule1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getLoadBalancerLoadBalancingRules() + .getWithResponse("testrg", "lb1", "rule1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerLoadBalancingRulesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerLoadBalancingRulesListSamples.java index 58db9e2c77ddb..e1bb3064cf9af 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerLoadBalancingRulesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerLoadBalancingRulesListSamples.java @@ -9,8 +9,7 @@ */ public final class LoadBalancerLoadBalancingRulesListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * LoadBalancerLoadBalancingRuleList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerLoadBalancingRuleList.json */ /** * Sample code: LoadBalancerLoadBalancingRuleList. @@ -18,7 +17,10 @@ public final class LoadBalancerLoadBalancingRulesListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void loadBalancerLoadBalancingRuleList(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLoadBalancerLoadBalancingRules().list("testrg", "lb1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getLoadBalancerLoadBalancingRules() + .list("testrg", "lb1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerNetworkInterfacesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerNetworkInterfacesListSamples.java index c4471ee7836dd..af2f490816ec9 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerNetworkInterfacesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerNetworkInterfacesListSamples.java @@ -9,8 +9,7 @@ */ public final class LoadBalancerNetworkInterfacesListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * LoadBalancerNetworkInterfaceListVmss.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerNetworkInterfaceListVmss.json */ /** * Sample code: LoadBalancerNetworkInterfaceListVmss. @@ -18,13 +17,15 @@ public final class LoadBalancerNetworkInterfacesListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void loadBalancerNetworkInterfaceListVmss(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLoadBalancerNetworkInterfaces().list("testrg", "lb", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getLoadBalancerNetworkInterfaces() + .list("testrg", "lb", com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * LoadBalancerNetworkInterfaceListSimple.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerNetworkInterfaceListSimple.json */ /** * Sample code: LoadBalancerNetworkInterfaceListSimple. @@ -32,7 +33,10 @@ public static void loadBalancerNetworkInterfaceListVmss(com.azure.resourcemanage * @param azure The entry point for accessing resource management APIs in Azure. */ public static void loadBalancerNetworkInterfaceListSimple(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLoadBalancerNetworkInterfaces().list("testrg", "lb", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getLoadBalancerNetworkInterfaces() + .list("testrg", "lb", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerOutboundRulesGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerOutboundRulesGetSamples.java index dec3624bde49d..31f2a49394783 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerOutboundRulesGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerOutboundRulesGetSamples.java @@ -9,9 +9,7 @@ */ public final class LoadBalancerOutboundRulesGetSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/LoadBalancerOutboundRuleGet. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerOutboundRuleGet.json */ /** * Sample code: LoadBalancerOutboundRuleGet. @@ -19,7 +17,10 @@ public final class LoadBalancerOutboundRulesGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void loadBalancerOutboundRuleGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLoadBalancerOutboundRules().getWithResponse("testrg", "lb1", - "rule1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getLoadBalancerOutboundRules() + .getWithResponse("testrg", "lb1", "rule1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerOutboundRulesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerOutboundRulesListSamples.java index 1b035ab1a349e..abcd44e699255 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerOutboundRulesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerOutboundRulesListSamples.java @@ -9,9 +9,7 @@ */ public final class LoadBalancerOutboundRulesListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/LoadBalancerOutboundRuleList. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerOutboundRuleList.json */ /** * Sample code: LoadBalancerOutboundRuleList. @@ -19,7 +17,10 @@ public final class LoadBalancerOutboundRulesListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void loadBalancerOutboundRuleList(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLoadBalancerOutboundRules().list("testrg", "lb1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getLoadBalancerOutboundRules() + .list("testrg", "lb1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerProbesGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerProbesGetSamples.java index 0c5918080f219..80e9f582d19c7 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerProbesGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerProbesGetSamples.java @@ -9,8 +9,7 @@ */ public final class LoadBalancerProbesGetSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/LoadBalancerProbeGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerProbeGet.json */ /** * Sample code: LoadBalancerProbeGet. @@ -18,7 +17,10 @@ public final class LoadBalancerProbesGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void loadBalancerProbeGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLoadBalancerProbes().getWithResponse("testrg", "lb", "probe1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getLoadBalancerProbes() + .getWithResponse("testrg", "lb", "probe1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerProbesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerProbesListSamples.java index d927a40cf3eff..9f628f95b318c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerProbesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancerProbesListSamples.java @@ -9,8 +9,7 @@ */ public final class LoadBalancerProbesListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/LoadBalancerProbeList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerProbeList.json */ /** * Sample code: LoadBalancerProbeList. @@ -18,7 +17,10 @@ public final class LoadBalancerProbesListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void loadBalancerProbeList(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLoadBalancerProbes().list("testrg", "lb", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getLoadBalancerProbes() + .list("testrg", "lb", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersCreateOrUpdateSamples.java index 8a3da95e63718..4770f20e6b291 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersCreateOrUpdateSamples.java @@ -35,8 +35,7 @@ */ public final class LoadBalancersCreateOrUpdateSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * LoadBalancerCreateWithSyncModePropertyOnPool.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerCreateWithSyncModePropertyOnPool.json */ /** * Sample code: Create load balancer with Sync Mode Property on Pool. @@ -45,8 +44,11 @@ public final class LoadBalancersCreateOrUpdateSamples { */ public static void createLoadBalancerWithSyncModePropertyOnPool(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLoadBalancers().createOrUpdate("rg1", "lb", - new LoadBalancerInner().withLocation("eastus") + azure.networks() + .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( @@ -62,23 +64,33 @@ public final class LoadBalancersCreateOrUpdateSamples { "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb")) .withProbe(new SubResource().withId( "/subscriptions/subid/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) + .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/subid/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); + .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: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * LoadBalancerCreateGatewayLoadBalancerProviderWithTwoBackendPool.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerCreateGatewayLoadBalancerProviderWithTwoBackendPool.json */ /** * Sample code: Create load balancer with Gateway Load Balancer Provider configured with two Backend Pool. @@ -87,8 +99,11 @@ public final class LoadBalancersCreateOrUpdateSamples { */ public static void createLoadBalancerWithGatewayLoadBalancerProviderConfiguredWithTwoBackendPool( com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLoadBalancers().createOrUpdate("rg1", "lb", - new LoadBalancerInner().withLocation("eastus") + azure.networks() + .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( @@ -105,18 +120,25 @@ public static void createLoadBalancerWithGatewayLoadBalancerProviderConfiguredWi "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb2"))) .withProbe(new SubResource().withId( "/subscriptions/subid/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) + .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); + .withInboundNatPools(Arrays.asList()) + .withOutboundRules(Arrays.asList()), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * LoadBalancerCreateWithInboundNatPool.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerCreateWithInboundNatPool.json */ /** * Sample code: Create load balancer with inbound nat pool. @@ -124,33 +146,40 @@ public static void createLoadBalancerWithGatewayLoadBalancerProviderConfiguredWi * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createLoadBalancerWithInboundNatPool(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLoadBalancers().createOrUpdate("rg1", "lb", - new LoadBalancerInner().withLocation("eastus") + azure.networks() + .manager() + .serviceClient() + .getLoadBalancers() + .createOrUpdate("rg1", "lb", new LoadBalancerInner().withLocation("eastus") .withSku(new LoadBalancerSku().withName(LoadBalancerSkuName.STANDARD)) .withFrontendIpConfigurations(Arrays.asList(new FrontendIpConfigurationInner().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/test") - .withName("test").withZones(Arrays.asList()) + .withName("test") + .withZones(Arrays.asList()) .withPrivateIpAllocationMethod(IpAllocationMethod.DYNAMIC) .withSubnet(new SubnetInner().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/lbvnet/subnets/lbsubnet")))) - .withBackendAddressPools(Arrays.asList()).withLoadBalancingRules(Arrays.asList()) - .withProbes(Arrays.asList()).withInboundNatRules(Arrays.asList()) + .withBackendAddressPools(Arrays.asList()) + .withLoadBalancingRules(Arrays.asList()) + .withProbes(Arrays.asList()) + .withInboundNatRules(Arrays.asList()) .withInboundNatPools(Arrays.asList(new InboundNatPool().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatPools/test") .withName("test") .withFrontendIpConfiguration(new SubResource().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/test")) - .withProtocol(TransportProtocol.TCP).withFrontendPortRangeStart(8080).withFrontendPortRangeEnd(8085) - .withBackendPort(8888).withIdleTimeoutInMinutes(10).withEnableFloatingIp(true) + .withProtocol(TransportProtocol.TCP) + .withFrontendPortRangeStart(8080) + .withFrontendPortRangeEnd(8085) + .withBackendPort(8888) + .withIdleTimeoutInMinutes(10) + .withEnableFloatingIp(true) .withEnableTcpReset(true))) - .withOutboundRules(Arrays.asList()), - com.azure.core.util.Context.NONE); + .withOutboundRules(Arrays.asList()), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/LoadBalancerCreateWithZones. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerCreateWithZones.json */ /** * Sample code: Create load balancer with Frontend IP in Zone 1. @@ -158,8 +187,11 @@ public static void createLoadBalancerWithInboundNatPool(com.azure.resourcemanage * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createLoadBalancerWithFrontendIPInZone1(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLoadBalancers().createOrUpdate("rg1", "lb", - new LoadBalancerInner().withLocation("eastus") + azure.networks() + .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")) @@ -173,23 +205,33 @@ public static void createLoadBalancerWithFrontendIPInZone1(com.azure.resourceman "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb")) .withProbe(new SubResource().withId( "/subscriptions/subid/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) + .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/subid/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); + .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: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * LoadBalancerCreateWithOutboundRules.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerCreateWithOutboundRules.json */ /** * Sample code: Create load balancer with outbound rules. @@ -197,8 +239,11 @@ public static void createLoadBalancerWithFrontendIPInZone1(com.azure.resourceman * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createLoadBalancerWithOutboundRules(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLoadBalancers().createOrUpdate("rg1", "lb", - new LoadBalancerInner().withLocation("eastus") + azure.networks() + .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( @@ -211,17 +256,28 @@ public static void createLoadBalancerWithOutboundRules(com.azure.resourcemanager "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb")) .withProbe(new SubResource().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb")) - .withProtocol(TransportProtocol.TCP).withLoadDistribution(LoadDistribution.DEFAULT) - .withFrontendPort(80).withBackendPort(80).withIdleTimeoutInMinutes(15).withEnableFloatingIp(true) + .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) + .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/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb")) - .withProtocol(TransportProtocol.TCP).withFrontendPort(3389).withBackendPort(3389) - .withIdleTimeoutInMinutes(15).withEnableFloatingIp(true))) + .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( @@ -229,12 +285,11 @@ public static void createLoadBalancerWithOutboundRules(com.azure.resourcemanager .withBackendAddressPool(new SubResource().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb")) .withProtocol(LoadBalancerOutboundRuleProtocol.ALL))), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * LoadBalancerCreateGatewayLoadBalancerProviderWithOneBackendPool.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerCreateGatewayLoadBalancerProviderWithOneBackendPool.json */ /** * Sample code: Create load balancer with Gateway Load Balancer Provider configured with one Backend Pool. @@ -243,18 +298,23 @@ public static void createLoadBalancerWithOutboundRules(com.azure.resourcemanager */ public static void createLoadBalancerWithGatewayLoadBalancerProviderConfiguredWithOneBackendPool( com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLoadBalancers().createOrUpdate("rg1", "lb", - new LoadBalancerInner().withLocation("eastus") + azure.networks() + .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/subid/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) + new GatewayLoadBalancerTunnelInterface().withPort(15000) + .withIdentifier(900) .withProtocol(GatewayLoadBalancerTunnelProtocol.VXLAN) .withType(GatewayLoadBalancerTunnelInterfaceType.INTERNAL), - new GatewayLoadBalancerTunnelInterface().withPort(15001).withIdentifier(901) + new GatewayLoadBalancerTunnelInterface().withPort(15001) + .withIdentifier(901) .withProtocol(GatewayLoadBalancerTunnelProtocol.VXLAN) .withType(GatewayLoadBalancerTunnelInterfaceType.INTERNAL))))) .withLoadBalancingRules(Arrays.asList(new LoadBalancingRuleInner().withName("rulelb") @@ -264,18 +324,25 @@ public static void createLoadBalancerWithGatewayLoadBalancerProviderConfiguredWi "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb"))) .withProbe(new SubResource().withId( "/subscriptions/subid/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) + .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); + .withInboundNatPools(Arrays.asList()) + .withOutboundRules(Arrays.asList()), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/LoadBalancerCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerCreate.json */ /** * Sample code: Create load balancer. @@ -283,10 +350,14 @@ public static void createLoadBalancerWithGatewayLoadBalancerProviderConfiguredWi * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createLoadBalancer(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLoadBalancers().createOrUpdate("rg1", "lb", - new LoadBalancerInner().withLocation("eastus").withFrontendIpConfigurations( - Arrays.asList(new FrontendIpConfigurationInner().withName("fe-lb").withSubnet(new SubnetInner().withId( - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb")))) + azure.networks() + .manager() + .serviceClient() + .getLoadBalancers() + .createOrUpdate("rg1", "lb", new LoadBalancerInner().withLocation("eastus") + .withFrontendIpConfigurations(Arrays.asList(new FrontendIpConfigurationInner().withName("fe-lb") + .withSubnet(new SubnetInner().withId( + "/subscriptions/subid/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( @@ -295,25 +366,34 @@ public static void createLoadBalancer(com.azure.resourcemanager.AzureResourceMan "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb")) .withProbe(new SubResource().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb")) - .withProtocol(TransportProtocol.TCP).withLoadDistribution(LoadDistribution.DEFAULT) - .withFrontendPort(80).withBackendPort(80).withIdleTimeoutInMinutes(15).withEnableFloatingIp(true) + .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) + .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/subid/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()), - com.azure.core.util.Context.NONE); + .withProtocol(TransportProtocol.TCP) + .withFrontendPort(3389) + .withBackendPort(3389) + .withIdleTimeoutInMinutes(15) + .withEnableFloatingIp(true) + .withEnableTcpReset(false))) + .withInboundNatPools(Arrays.asList()), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/LoadBalancerCreateGlobalTier. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerCreateGlobalTier.json */ /** * Sample code: Create load balancer with Global Tier and one regional load balancer in its backend pool. @@ -322,8 +402,11 @@ public static void createLoadBalancer(com.azure.resourcemanager.AzureResourceMan */ public static void createLoadBalancerWithGlobalTierAndOneRegionalLoadBalancerInItsBackendPool( com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLoadBalancers().createOrUpdate("rg1", "lb", - new LoadBalancerInner().withLocation("eastus") + azure.networks() + .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") @@ -341,17 +424,24 @@ public static void createLoadBalancerWithGlobalTierAndOneRegionalLoadBalancerInI "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb")) .withProbe(new SubResource().withId( "/subscriptions/subid/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) + .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); + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * LoadBalancerCreateGatewayLoadBalancerConsumer.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerCreateGatewayLoadBalancerConsumer.json */ /** * Sample code: Create load balancer with Gateway Load Balancer Consumer configured. @@ -360,8 +450,11 @@ public static void createLoadBalancerWithGlobalTierAndOneRegionalLoadBalancerInI */ public static void createLoadBalancerWithGatewayLoadBalancerConsumerConfigured( com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLoadBalancers().createOrUpdate("rg1", "lb", - new LoadBalancerInner().withLocation("eastus") + azure.networks() + .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( @@ -376,24 +469,33 @@ public static void createLoadBalancerWithGatewayLoadBalancerConsumerConfigured( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb")) .withProbe(new SubResource().withId( "/subscriptions/subid/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) + .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/subid/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); + .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: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/LoadBalancerCreateStandardSku - * .json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerCreateStandardSku.json */ /** * Sample code: Create load balancer with Standard SKU. @@ -401,8 +503,11 @@ public static void createLoadBalancerWithGatewayLoadBalancerConsumerConfigured( * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createLoadBalancerWithStandardSKU(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLoadBalancers().createOrUpdate("rg1", "lb", - new LoadBalancerInner().withLocation("eastus") + azure.networks() + .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( @@ -415,17 +520,28 @@ public static void createLoadBalancerWithStandardSKU(com.azure.resourcemanager.A "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb")) .withProbe(new SubResource().withId( "/subscriptions/subid/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) + .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/subid/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); + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersDeleteSamples.java index b7312a76fcaa3..1cfef3d6908e0 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class LoadBalancersDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/LoadBalancerDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerDelete.json */ /** * Sample code: Delete load balancer. @@ -18,7 +17,10 @@ public final class LoadBalancersDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteLoadBalancer(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLoadBalancers().delete("rg1", "lb", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getLoadBalancers() + .delete("rg1", "lb", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersGetByResourceGroupSamples.java index 797ee22176a76..5a52b44050650 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class LoadBalancersGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/LoadBalancerGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerGet.json */ /** * Sample code: Get load balancer. @@ -18,13 +17,15 @@ public final class LoadBalancersGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getLoadBalancer(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLoadBalancers().getByResourceGroupWithResponse("rg1", "lb", null, - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getLoadBalancers() + .getByResourceGroupWithResponse("rg1", "lb", null, com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * LoadBalancerGetInboundNatRulePortMapping.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerGetInboundNatRulePortMapping.json */ /** * Sample code: Get load balancer with inbound NAT rule port mapping. @@ -33,7 +34,10 @@ public static void getLoadBalancer(com.azure.resourcemanager.AzureResourceManage */ public static void getLoadBalancerWithInboundNATRulePortMapping(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLoadBalancers().getByResourceGroupWithResponse("rg1", "lb", null, - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getLoadBalancers() + .getByResourceGroupWithResponse("rg1", "lb", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersListByResourceGroupSamples.java index 5d2665fb88d4f..e4e8bd2869148 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class LoadBalancersListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/LoadBalancerList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerList.json */ /** * Sample code: List load balancers in resource group. @@ -18,7 +17,10 @@ public final class LoadBalancersListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listLoadBalancersInResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLoadBalancers().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getLoadBalancers() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersListInboundNatRulePortMappingsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersListInboundNatRulePortMappingsSamples.java index bb05386792ae6..762a3e82a273c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersListInboundNatRulePortMappingsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersListInboundNatRulePortMappingsSamples.java @@ -11,8 +11,7 @@ */ public final class LoadBalancersListInboundNatRulePortMappingsSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * QueryInboundNatRulePortMapping.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/QueryInboundNatRulePortMapping.json */ /** * Sample code: Query inbound NAT rule port mapping. @@ -20,8 +19,12 @@ public final class LoadBalancersListInboundNatRulePortMappingsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void queryInboundNATRulePortMapping(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLoadBalancers().listInboundNatRulePortMappings("rg1", "lb1", - "bp1", new QueryInboundNatRulePortMappingRequest().withIpAddress("10.0.0.4"), - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getLoadBalancers() + .listInboundNatRulePortMappings("rg1", "lb1", "bp1", + new QueryInboundNatRulePortMappingRequest().withIpAddress("10.0.0.4"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersListSamples.java index 2b4ba62ce2758..9f5028f3a88b4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersListSamples.java @@ -9,8 +9,7 @@ */ public final class LoadBalancersListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/LoadBalancerListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerListAll.json */ /** * Sample code: List all load balancers. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersMigrateToIpBasedSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersMigrateToIpBasedSamples.java index d013a54a941ef..4509e7998f762 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersMigrateToIpBasedSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersMigrateToIpBasedSamples.java @@ -12,9 +12,7 @@ */ public final class LoadBalancersMigrateToIpBasedSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/MigrateLoadBalancerToIPBased. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/MigrateLoadBalancerToIPBased.json */ /** * Sample code: Migrate load balancer to IP Based. @@ -22,8 +20,12 @@ public final class LoadBalancersMigrateToIpBasedSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void migrateLoadBalancerToIPBased(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLoadBalancers().migrateToIpBasedWithResponse("rg1", "lb1", - new MigrateLoadBalancerToIpBasedRequest().withPools(Arrays.asList("pool1", "pool2")), - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getLoadBalancers() + .migrateToIpBasedWithResponse("rg1", "lb1", + new MigrateLoadBalancerToIpBasedRequest().withPools(Arrays.asList("pool1", "pool2")), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersSwapPublicIpAddressesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersSwapPublicIpAddressesSamples.java index c4295d9c24d50..c50e773f6b8fd 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersSwapPublicIpAddressesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersSwapPublicIpAddressesSamples.java @@ -14,8 +14,7 @@ */ public final class LoadBalancersSwapPublicIpAddressesSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * LoadBalancersSwapPublicIpAddresses.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancersSwapPublicIpAddresses.json */ /** * Sample code: Swap VIPs between two load balancers. @@ -23,16 +22,19 @@ public final class LoadBalancersSwapPublicIpAddressesSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void swapVIPsBetweenTwoLoadBalancers(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLoadBalancers().swapPublicIpAddresses("westus", - new LoadBalancerVipSwapRequest().withFrontendIpConfigurations(Arrays.asList( - new LoadBalancerVipSwapRequestFrontendIpConfiguration().withId( + azure.networks() + .manager() + .serviceClient() + .getLoadBalancers() + .swapPublicIpAddresses("westus", new LoadBalancerVipSwapRequest().withFrontendIpConfigurations( + Arrays.asList(new LoadBalancerVipSwapRequestFrontendIpConfiguration().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb1/frontendIPConfigurations/lbfe1") .withPublicIpAddress(new SubResource().withId( "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/publicIPAddresses/pip2")), - new LoadBalancerVipSwapRequestFrontendIpConfiguration().withId( - "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/loadBalancers/lb2/frontendIPConfigurations/lbfe2") - .withPublicIpAddress(new SubResource().withId( - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pip1")))), - com.azure.core.util.Context.NONE); + new LoadBalancerVipSwapRequestFrontendIpConfiguration().withId( + "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/loadBalancers/lb2/frontendIPConfigurations/lbfe2") + .withPublicIpAddress(new SubResource().withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/pip1")))), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersUpdateTagsSamples.java index ea26b4293f4ef..cebabc08cdffc 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LoadBalancersUpdateTagsSamples.java @@ -13,8 +13,7 @@ */ public final class LoadBalancersUpdateTagsSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/LoadBalancerUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LoadBalancerUpdateTags.json */ /** * Sample code: Update load balancer tags. @@ -22,8 +21,12 @@ public final class LoadBalancersUpdateTagsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updateLoadBalancerTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLoadBalancers().updateTagsWithResponse("rg1", "lb", - new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysCreateOrUpdateSamples.java index a564d28065c93..50b15338f91d4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysCreateOrUpdateSamples.java @@ -13,9 +13,7 @@ */ public final class LocalNetworkGatewaysCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/LocalNetworkGatewayCreate. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LocalNetworkGatewayCreate.json */ /** * Sample code: CreateLocalNetworkGateway. @@ -23,10 +21,15 @@ public final class LocalNetworkGatewaysCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createLocalNetworkGateway(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysDeleteSamples.java index fc09a526618ab..91dfca6f00fe8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysDeleteSamples.java @@ -9,9 +9,7 @@ */ public final class LocalNetworkGatewaysDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/LocalNetworkGatewayDelete. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LocalNetworkGatewayDelete.json */ /** * Sample code: DeleteLocalNetworkGateway. @@ -19,7 +17,10 @@ public final class LocalNetworkGatewaysDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteLocalNetworkGateway(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLocalNetworkGateways().delete("rg1", "localgw", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getLocalNetworkGateways() + .delete("rg1", "localgw", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysGetByResourceGroupSamples.java index 00cc7abd99106..72f8c99238bb6 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class LocalNetworkGatewaysGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/LocalNetworkGatewayGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LocalNetworkGatewayGet.json */ /** * Sample code: GetLocalNetworkGateway. @@ -18,7 +17,10 @@ public final class LocalNetworkGatewaysGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getLocalNetworkGateway(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLocalNetworkGateways().getByResourceGroupWithResponse("rg1", - "localgw", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getLocalNetworkGateways() + .getByResourceGroupWithResponse("rg1", "localgw", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysListByResourceGroupSamples.java index cc133b3c72520..c4a6c35c660f5 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class LocalNetworkGatewaysListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/LocalNetworkGatewayList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LocalNetworkGatewayList.json */ /** * Sample code: ListLocalNetworkGateways. @@ -18,7 +17,10 @@ public final class LocalNetworkGatewaysListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listLocalNetworkGateways(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLocalNetworkGateways().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getLocalNetworkGateways() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysUpdateTagsSamples.java index eab755429e0aa..93fe996692b50 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/LocalNetworkGatewaysUpdateTagsSamples.java @@ -13,9 +13,7 @@ */ public final class LocalNetworkGatewaysUpdateTagsSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/LocalNetworkGatewayUpdateTags - * .json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/LocalNetworkGatewayUpdateTags.json */ /** * Sample code: UpdateLocalNetworkGatewayTags. @@ -23,8 +21,12 @@ public final class LocalNetworkGatewaysUpdateTagsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updateLocalNetworkGatewayTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getLocalNetworkGateways().updateTagsWithResponse("rg1", "lgw", - new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ManagementGroupNetworkManagerConnectionsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ManagementGroupNetworkManagerConnectionsCreateOrUpdateSamples.java index dc8242b125620..a2f741c331a17 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ManagementGroupNetworkManagerConnectionsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ManagementGroupNetworkManagerConnectionsCreateOrUpdateSamples.java @@ -11,8 +11,7 @@ */ public final class ManagementGroupNetworkManagerConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkManagerConnectionManagementGroupPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectionManagementGroupPut.json */ /** * Sample code: Create or Update Management Group Network Manager Connection. @@ -21,7 +20,10 @@ public final class ManagementGroupNetworkManagerConnectionsCreateOrUpdateSamples */ public static void createOrUpdateManagementGroupNetworkManagerConnection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getManagementGroupNetworkManagerConnections() + azure.networks() + .manager() + .serviceClient() + .getManagementGroupNetworkManagerConnections() .createOrUpdateWithResponse("managementGroupA", "TestNMConnection", new NetworkManagerConnectionInner().withNetworkManagerId( "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager"), diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ManagementGroupNetworkManagerConnectionsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ManagementGroupNetworkManagerConnectionsDeleteSamples.java index 84fcbe5b7b53b..7b799d9674bd2 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ManagementGroupNetworkManagerConnectionsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ManagementGroupNetworkManagerConnectionsDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class ManagementGroupNetworkManagerConnectionsDeleteSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkManagerConnectionManagementGroupDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectionManagementGroupDelete.json */ /** * Sample code: Delete Management Group Network Manager Connection. @@ -19,7 +18,10 @@ public final class ManagementGroupNetworkManagerConnectionsDeleteSamples { */ public static void deleteManagementGroupNetworkManagerConnection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getManagementGroupNetworkManagerConnections() + azure.networks() + .manager() + .serviceClient() + .getManagementGroupNetworkManagerConnections() .deleteWithResponse("managementGroupA", "TestNMConnection", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ManagementGroupNetworkManagerConnectionsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ManagementGroupNetworkManagerConnectionsGetSamples.java index 629eb43e88b19..adad6cf556246 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ManagementGroupNetworkManagerConnectionsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ManagementGroupNetworkManagerConnectionsGetSamples.java @@ -9,8 +9,7 @@ */ public final class ManagementGroupNetworkManagerConnectionsGetSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkManagerConnectionManagementGroupGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectionManagementGroupGet.json */ /** * Sample code: Get Management Group Network Manager Connection. @@ -19,7 +18,10 @@ public final class ManagementGroupNetworkManagerConnectionsGetSamples { */ public static void getManagementGroupNetworkManagerConnection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getManagementGroupNetworkManagerConnections() + azure.networks() + .manager() + .serviceClient() + .getManagementGroupNetworkManagerConnections() .getWithResponse("managementGroupA", "TestNMConnection", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ManagementGroupNetworkManagerConnectionsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ManagementGroupNetworkManagerConnectionsListSamples.java index f26400bfe5d32..ee9770c1b7d6b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ManagementGroupNetworkManagerConnectionsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ManagementGroupNetworkManagerConnectionsListSamples.java @@ -9,8 +9,7 @@ */ public final class ManagementGroupNetworkManagerConnectionsListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkManagerConnectionManagementGroupList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectionManagementGroupList.json */ /** * Sample code: List Management Group Network Manager Connection. @@ -19,7 +18,10 @@ public final class ManagementGroupNetworkManagerConnectionsListSamples { */ public static void listManagementGroupNetworkManagerConnection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getManagementGroupNetworkManagerConnections() + azure.networks() + .manager() + .serviceClient() + .getManagementGroupNetworkManagerConnections() .list("managementGroupA", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysCreateOrUpdateSamples.java index 6103fe2d437fc..eba6e4880aca0 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysCreateOrUpdateSamples.java @@ -15,8 +15,7 @@ */ public final class NatGatewaysCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NatGatewayCreateOrUpdate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NatGatewayCreateOrUpdate.json */ /** * Sample code: Create nat gateway. @@ -24,13 +23,16 @@ public final class NatGatewaysCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createNatGateway(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNatGateways().createOrUpdate("rg1", "test-natgateway", - new NatGatewayInner().withLocation("westus") + azure.networks() + .manager() + .serviceClient() + .getNatGateways() + .createOrUpdate("rg1", "test-natgateway", new NatGatewayInner().withLocation("westus") .withSku(new NatGatewaySku().withName(NatGatewaySkuName.STANDARD)) .withPublicIpAddresses(Arrays.asList(new SubResource().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1"))) .withPublicIpPrefixes(Arrays.asList(new SubResource().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/PublicIpPrefix1"))), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysDeleteSamples.java index 5a2647a83997f..23e57880b2d7f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class NatGatewaysDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NatGatewayDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NatGatewayDelete.json */ /** * Sample code: Delete nat gateway. @@ -18,7 +17,10 @@ public final class NatGatewaysDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteNatGateway(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNatGateways().delete("rg1", "test-natGateway", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNatGateways() + .delete("rg1", "test-natGateway", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysGetByResourceGroupSamples.java index ff657a9048c19..2f167507897ec 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class NatGatewaysGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NatGatewayGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NatGatewayGet.json */ /** * Sample code: Get nat gateway. @@ -18,7 +17,10 @@ public final class NatGatewaysGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getNatGateway(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNatGateways().getByResourceGroupWithResponse("rg1", - "test-natGateway", null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNatGateways() + .getByResourceGroupWithResponse("rg1", "test-natGateway", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysListByResourceGroupSamples.java index 8ee91cc86ba3e..95cd3bc006e83 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class NatGatewaysListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NatGatewayList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NatGatewayList.json */ /** * Sample code: List nat gateways in resource group. @@ -18,7 +17,10 @@ public final class NatGatewaysListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listNatGatewaysInResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNatGateways().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNatGateways() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysListSamples.java index e1d0fdf489091..172e390739f64 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysListSamples.java @@ -9,8 +9,7 @@ */ public final class NatGatewaysListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NatGatewayListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NatGatewayListAll.json */ /** * Sample code: List all nat gateways. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysUpdateTagsSamples.java index 4a6a67993b8a4..4f6799cd904e1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatGatewaysUpdateTagsSamples.java @@ -13,8 +13,7 @@ */ public final class NatGatewaysUpdateTagsSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NatGatewayUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NatGatewayUpdateTags.json */ /** * Sample code: Update nat gateway tags. @@ -22,8 +21,12 @@ public final class NatGatewaysUpdateTagsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updateNatGatewayTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNatGateways().updateTagsWithResponse("rg1", "test-natGateway", - new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatRulesCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatRulesCreateOrUpdateSamples.java index 8f857dcf978ee..e43eae2c90401 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatRulesCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatRulesCreateOrUpdateSamples.java @@ -15,8 +15,7 @@ */ public final class NatRulesCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NatRulePut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NatRulePut.json */ /** * Sample code: NatRulePut. @@ -24,13 +23,17 @@ public final class NatRulesCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void natRulePut(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNatRules().createOrUpdate("rg1", "gateway1", "natRule1", - new VpnGatewayNatRuleInner().withTypePropertiesType(VpnNatRuleType.STATIC) + azure.networks() + .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/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/cloudnet1-VNG/ipConfigurations/default"), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatRulesDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatRulesDeleteSamples.java index 0fc2be68bfaca..a200974d67732 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatRulesDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatRulesDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class NatRulesDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NatRuleDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NatRuleDelete.json */ /** * Sample code: NatRuleDelete. @@ -18,7 +17,10 @@ public final class NatRulesDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void natRuleDelete(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNatRules().delete("rg1", "gateway1", "natRule1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNatRules() + .delete("rg1", "gateway1", "natRule1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatRulesGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatRulesGetSamples.java index da054c0ac8fc2..d0ef5c9593021 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatRulesGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatRulesGetSamples.java @@ -9,8 +9,7 @@ */ public final class NatRulesGetSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NatRuleGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NatRuleGet.json */ /** * Sample code: NatRuleGet. @@ -18,7 +17,10 @@ public final class NatRulesGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void natRuleGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNatRules().getWithResponse("rg1", "gateway1", "natRule1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNatRules() + .getWithResponse("rg1", "gateway1", "natRule1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatRulesListByVpnGatewaySamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatRulesListByVpnGatewaySamples.java index 1df2de44db517..a39ca6563cacc 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatRulesListByVpnGatewaySamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NatRulesListByVpnGatewaySamples.java @@ -9,8 +9,7 @@ */ public final class NatRulesListByVpnGatewaySamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NatRuleList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NatRuleList.json */ /** * Sample code: NatRuleList. @@ -18,7 +17,10 @@ public final class NatRulesListByVpnGatewaySamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void natRuleList(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNatRules().listByVpnGateway("rg1", "gateway1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNatRules() + .listByVpnGateway("rg1", "gateway1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkGroupsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkGroupsCreateOrUpdateSamples.java index 14bf898a47b69..dc7d77ea8a281 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkGroupsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkGroupsCreateOrUpdateSamples.java @@ -11,8 +11,7 @@ */ public final class NetworkGroupsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkManagerGroupPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerGroupPut.json */ /** * Sample code: NetworkGroupsPut. @@ -20,8 +19,11 @@ public final class NetworkGroupsCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void networkGroupsPut(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkGroups().createOrUpdateWithResponse("rg1", - "testNetworkManager", "testNetworkGroup", new NetworkGroupInner().withDescription("A sample group"), null, - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkGroups() + .createOrUpdateWithResponse("rg1", "testNetworkManager", "testNetworkGroup", + new NetworkGroupInner().withDescription("A sample group"), null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkGroupsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkGroupsDeleteSamples.java index af0b39874f54c..9fae6c242c98e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkGroupsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkGroupsDeleteSamples.java @@ -9,9 +9,7 @@ */ public final class NetworkGroupsDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkManagerGroupDelete. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerGroupDelete.json */ /** * Sample code: NetworkGroupsDelete. @@ -19,7 +17,10 @@ public final class NetworkGroupsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void networkGroupsDelete(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkGroups().delete("rg1", "testNetworkManager", - "testNetworkGroup", false, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkGroups() + .delete("rg1", "testNetworkManager", "testNetworkGroup", false, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkGroupsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkGroupsGetSamples.java index 7cf9e514a7925..d2c92d3af312f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkGroupsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkGroupsGetSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkGroupsGetSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkManagerGroupGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerGroupGet.json */ /** * Sample code: NetworkGroupsGet. @@ -18,7 +17,10 @@ public final class NetworkGroupsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void networkGroupsGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkGroups().getWithResponse("rg1", "testNetworkManager", - "testNetworkGroup", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkGroups() + .getWithResponse("rg1", "testNetworkManager", "testNetworkGroup", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkGroupsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkGroupsListSamples.java index d5f5cc25347d1..8d36cfe7d601e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkGroupsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkGroupsListSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkGroupsListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkManagerGroupList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerGroupList.json */ /** * Sample code: NetworkGroupsList. @@ -18,7 +17,10 @@ public final class NetworkGroupsListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void networkGroupsList(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkGroups().list("rg1", "testNetworkManager", null, null, - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkGroups() + .list("rg1", "testNetworkManager", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceIpConfigurationsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceIpConfigurationsGetSamples.java index b77c4acb84a6c..a79f9c6875c52 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceIpConfigurationsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceIpConfigurationsGetSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkInterfaceIpConfigurationsGetSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkInterfaceIPConfigurationGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceIPConfigurationGet.json */ /** * Sample code: NetworkInterfaceIPConfigurationGet. @@ -18,7 +17,10 @@ public final class NetworkInterfaceIpConfigurationsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void networkInterfaceIPConfigurationGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkInterfaceIpConfigurations().getWithResponse("testrg", - "mynic", "ipconfig1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkInterfaceIpConfigurations() + .getWithResponse("testrg", "mynic", "ipconfig1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceIpConfigurationsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceIpConfigurationsListSamples.java index 2f1e01975f26f..8fc821d2e13d1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceIpConfigurationsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceIpConfigurationsListSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkInterfaceIpConfigurationsListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkInterfaceIPConfigurationList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceIPConfigurationList.json */ /** * Sample code: NetworkInterfaceIPConfigurationList. @@ -18,7 +17,10 @@ public final class NetworkInterfaceIpConfigurationsListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void networkInterfaceIPConfigurationList(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkInterfaceIpConfigurations().list("testrg", "nic1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkInterfaceIpConfigurations() + .list("testrg", "nic1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceLoadBalancersListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceLoadBalancersListSamples.java index eb341f09a16d9..1c9ed384e725d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceLoadBalancersListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceLoadBalancersListSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkInterfaceLoadBalancersListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkInterfaceLoadBalancerList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceLoadBalancerList.json */ /** * Sample code: NetworkInterfaceLoadBalancerList. @@ -18,7 +17,10 @@ public final class NetworkInterfaceLoadBalancersListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void networkInterfaceLoadBalancerList(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkInterfaceLoadBalancers().list("testrg", "nic1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkInterfaceLoadBalancers() + .list("testrg", "nic1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceTapConfigurationsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceTapConfigurationsCreateOrUpdateSamples.java index 8973e24349231..8ed08e626f962 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceTapConfigurationsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceTapConfigurationsCreateOrUpdateSamples.java @@ -12,8 +12,7 @@ */ public final class NetworkInterfaceTapConfigurationsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkInterfaceTapConfigurationCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceTapConfigurationCreate.json */ /** * Sample code: Create Network Interface Tap Configurations. @@ -21,10 +20,13 @@ public final class NetworkInterfaceTapConfigurationsCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createNetworkInterfaceTapConfigurations(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkInterfaceTapConfigurations().createOrUpdate("testrg", - "mynic", "tapconfiguration1", - new NetworkInterfaceTapConfigurationInner().withVirtualNetworkTap(new VirtualNetworkTapInner().withId( - "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworkTaps/testvtap")), - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkInterfaceTapConfigurations() + .createOrUpdate("testrg", "mynic", "tapconfiguration1", + new NetworkInterfaceTapConfigurationInner().withVirtualNetworkTap(new VirtualNetworkTapInner().withId( + "/subscriptions/subid/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworkTaps/testvtap")), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceTapConfigurationsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceTapConfigurationsDeleteSamples.java index d4dbbf013c354..16d0dd1fec950 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceTapConfigurationsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceTapConfigurationsDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkInterfaceTapConfigurationsDeleteSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkInterfaceTapConfigurationDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceTapConfigurationDelete.json */ /** * Sample code: Delete tap configuration. @@ -18,7 +17,10 @@ public final class NetworkInterfaceTapConfigurationsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteTapConfiguration(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkInterfaceTapConfigurations().delete("rg1", - "test-networkinterface", "test-tapconfiguration", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkInterfaceTapConfigurations() + .delete("rg1", "test-networkinterface", "test-tapconfiguration", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceTapConfigurationsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceTapConfigurationsGetSamples.java index 681a3e9faa352..5eea9fa18886b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceTapConfigurationsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceTapConfigurationsGetSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkInterfaceTapConfigurationsGetSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkInterfaceTapConfigurationGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceTapConfigurationGet.json */ /** * Sample code: Get Network Interface Tap Configurations. @@ -18,7 +17,10 @@ public final class NetworkInterfaceTapConfigurationsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getNetworkInterfaceTapConfigurations(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkInterfaceTapConfigurations().getWithResponse("testrg", - "mynic", "tapconfiguration1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkInterfaceTapConfigurations() + .getWithResponse("testrg", "mynic", "tapconfiguration1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceTapConfigurationsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceTapConfigurationsListSamples.java index c14e09b5fbb2a..36fc499f1a9fd 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceTapConfigurationsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfaceTapConfigurationsListSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkInterfaceTapConfigurationsListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkInterfaceTapConfigurationList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceTapConfigurationList.json */ /** * Sample code: List virtual network tap configurations. @@ -18,7 +17,10 @@ public final class NetworkInterfaceTapConfigurationsListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listVirtualNetworkTapConfigurations(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkInterfaceTapConfigurations().list("rg1", "mynic", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkInterfaceTapConfigurations() + .list("rg1", "mynic", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesCreateOrUpdateSamples.java index d117f1ec85a78..c34c7dcb9a14d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesCreateOrUpdateSamples.java @@ -16,8 +16,7 @@ */ public final class NetworkInterfacesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkInterfaceCreateGatewayLoadBalancerConsumer.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceCreateGatewayLoadBalancerConsumer.json */ /** * Sample code: Create network interface with Gateway Load Balancer Consumer configured. @@ -26,8 +25,11 @@ public final class NetworkInterfacesCreateOrUpdateSamples { */ public static void createNetworkInterfaceWithGatewayLoadBalancerConsumerConfigured( com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkInterfaces().createOrUpdate("rg1", "test-nic", - new NetworkInterfaceInner().withLocation("eastus") + azure.networks() + .manager() + .serviceClient() + .getNetworkInterfaces() + .createOrUpdate("rg1", "test-nic", new NetworkInterfaceInner().withLocation("eastus") .withIpConfigurations(Arrays.asList(new NetworkInterfaceIpConfigurationInner().withName("ipconfig1") .withGatewayLoadBalancer(new SubResource().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb-provider")) @@ -35,13 +37,11 @@ public static void createNetworkInterfaceWithGatewayLoadBalancerConsumerConfigur "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/rg1-vnet/subnets/default")) .withPublicIpAddress(new PublicIpAddressInner().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ip")))) - .withEnableAcceleratedNetworking(true), - com.azure.core.util.Context.NONE); + .withEnableAcceleratedNetworking(true), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkInterfaceCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceCreate.json */ /** * Sample code: Create network interface. @@ -49,13 +49,19 @@ public static void createNetworkInterfaceWithGatewayLoadBalancerConsumerConfigur * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createNetworkInterface(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkInterfaces().createOrUpdate("rg1", "test-nic", - new NetworkInterfaceInner().withLocation("eastus").withIpConfigurations(Arrays.asList( - new NetworkInterfaceIpConfigurationInner().withName("ipconfig1").withSubnet(new SubnetInner().withId( - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/rg1-vnet/subnets/default")) + azure.networks() + .manager() + .serviceClient() + .getNetworkInterfaces() + .createOrUpdate("rg1", "test-nic", new NetworkInterfaceInner().withLocation("eastus") + .withIpConfigurations(Arrays.asList(new NetworkInterfaceIpConfigurationInner().withName("ipconfig1") + .withSubnet(new SubnetInner().withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/rg1-vnet/subnets/default")) .withPublicIpAddress(new PublicIpAddressInner().withId( - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/test-ip")))) - .withEnableAcceleratedNetworking(true).withDisableTcpStateTracking(true), - com.azure.core.util.Context.NONE); + "/subscriptions/subid/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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesDeleteSamples.java index 707ccdf8c68af..1d194505ef54e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkInterfacesDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkInterfaceDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceDelete.json */ /** * Sample code: Delete network interface. @@ -18,7 +17,10 @@ public final class NetworkInterfacesDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteNetworkInterface(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkInterfaces().delete("rg1", "test-nic", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkInterfaces() + .delete("rg1", "test-nic", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesGetByResourceGroupSamples.java index 13c55445932ee..d14886ef6ef00 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkInterfacesGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkInterfaceGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceGet.json */ /** * Sample code: Get network interface. @@ -18,7 +17,10 @@ public final class NetworkInterfacesGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getNetworkInterface(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkInterfaces().getByResourceGroupWithResponse("rg1", - "test-nic", null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkInterfaces() + .getByResourceGroupWithResponse("rg1", "test-nic", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesGetCloudServiceNetworkInterfaceSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesGetCloudServiceNetworkInterfaceSamples.java index 112078cf7e3b6..1c95d00c6e333 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesGetCloudServiceNetworkInterfaceSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesGetCloudServiceNetworkInterfaceSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkInterfacesGetCloudServiceNetworkInterfaceSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * CloudServiceNetworkInterfaceGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CloudServiceNetworkInterfaceGet.json */ /** * Sample code: Get cloud service network interface. @@ -18,7 +17,11 @@ public final class NetworkInterfacesGetCloudServiceNetworkInterfaceSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getCloudServiceNetworkInterface(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkInterfaces().getCloudServiceNetworkInterfaceWithResponse( - "rg1", "cs1", "TestVMRole_IN_0", "nic1", null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkInterfaces() + .getCloudServiceNetworkInterfaceWithResponse("rg1", "cs1", "TestVMRole_IN_0", "nic1", null, + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesGetEffectiveRouteTableSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesGetEffectiveRouteTableSamples.java index f91f4af395b3d..1b6368a56f5cd 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesGetEffectiveRouteTableSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesGetEffectiveRouteTableSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkInterfacesGetEffectiveRouteTableSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkInterfaceEffectiveRouteTableList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceEffectiveRouteTableList.json */ /** * Sample code: Show network interface effective route tables. @@ -18,7 +17,10 @@ public final class NetworkInterfacesGetEffectiveRouteTableSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void showNetworkInterfaceEffectiveRouteTables(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkInterfaces().getEffectiveRouteTable("rg1", "nic1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkInterfaces() + .getEffectiveRouteTable("rg1", "nic1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesGetVirtualMachineScaleSetIpConfigurationSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesGetVirtualMachineScaleSetIpConfigurationSamples.java index 1a86c5e8c568c..33cc96bd0b176 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesGetVirtualMachineScaleSetIpConfigurationSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesGetVirtualMachineScaleSetIpConfigurationSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkInterfacesGetVirtualMachineScaleSetIpConfigurationSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VmssNetworkInterfaceIpConfigGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VmssNetworkInterfaceIpConfigGet.json */ /** * Sample code: Get virtual machine scale set network interface. @@ -18,7 +17,10 @@ public final class NetworkInterfacesGetVirtualMachineScaleSetIpConfigurationSamp * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getVirtualMachineScaleSetNetworkInterface(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkInterfaces() + azure.networks() + .manager() + .serviceClient() + .getNetworkInterfaces() .getVirtualMachineScaleSetIpConfigurationWithResponse("rg1", "vmss1", "2", "nic1", "ip1", null, com.azure.core.util.Context.NONE); } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesGetVirtualMachineScaleSetNetworkInterfaceSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesGetVirtualMachineScaleSetNetworkInterfaceSamples.java index 0c8afaedc8ade..4171fece49ceb 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesGetVirtualMachineScaleSetNetworkInterfaceSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesGetVirtualMachineScaleSetNetworkInterfaceSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkInterfacesGetVirtualMachineScaleSetNetworkInterfaceSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VmssNetworkInterfaceGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VmssNetworkInterfaceGet.json */ /** * Sample code: Get virtual machine scale set network interface. @@ -18,7 +17,10 @@ public final class NetworkInterfacesGetVirtualMachineScaleSetNetworkInterfaceSam * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getVirtualMachineScaleSetNetworkInterface(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkInterfaces() + azure.networks() + .manager() + .serviceClient() + .getNetworkInterfaces() .getVirtualMachineScaleSetNetworkInterfaceWithResponse("rg1", "vmss1", "1", "nic1", null, com.azure.core.util.Context.NONE); } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListByResourceGroupSamples.java index da1d94beac74a..0b5770d855685 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkInterfacesListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkInterfaceList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceList.json */ /** * Sample code: List network interfaces in resource group. @@ -18,7 +17,10 @@ public final class NetworkInterfacesListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listNetworkInterfacesInResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkInterfaces().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkInterfaces() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListCloudServiceNetworkInterfacesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListCloudServiceNetworkInterfacesSamples.java index be714b04ac0e9..7485b6f4f2f4b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListCloudServiceNetworkInterfacesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListCloudServiceNetworkInterfacesSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkInterfacesListCloudServiceNetworkInterfacesSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * CloudServiceNetworkInterfaceList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CloudServiceNetworkInterfaceList.json */ /** * Sample code: List cloud service network interfaces. @@ -18,7 +17,10 @@ public final class NetworkInterfacesListCloudServiceNetworkInterfacesSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listCloudServiceNetworkInterfaces(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkInterfaces().listCloudServiceNetworkInterfaces("rg1", - "cs1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkInterfaces() + .listCloudServiceNetworkInterfaces("rg1", "cs1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfacesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfacesSamples.java index fc4df04d7f981..610fcbe734fd8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfacesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfacesSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkInterfacesListCloudServiceRoleInstanceNetworkInterfacesSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * CloudServiceRoleInstanceNetworkInterfaceList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CloudServiceRoleInstanceNetworkInterfaceList.json */ /** * Sample code: List cloud service role instance network interfaces. @@ -19,7 +18,11 @@ public final class NetworkInterfacesListCloudServiceRoleInstanceNetworkInterface */ public static void listCloudServiceRoleInstanceNetworkInterfaces(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkInterfaces().listCloudServiceRoleInstanceNetworkInterfaces( - "rg1", "cs1", "TestVMRole_IN_0", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkInterfaces() + .listCloudServiceRoleInstanceNetworkInterfaces("rg1", "cs1", "TestVMRole_IN_0", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListEffectiveNetworkSecurityGroupsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListEffectiveNetworkSecurityGroupsSamples.java index 8f02ec26c4ffd..893c09a2a2d65 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListEffectiveNetworkSecurityGroupsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListEffectiveNetworkSecurityGroupsSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkInterfacesListEffectiveNetworkSecurityGroupsSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkInterfaceEffectiveNSGList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceEffectiveNSGList.json */ /** * Sample code: List network interface effective network security groups. @@ -19,7 +18,10 @@ public final class NetworkInterfacesListEffectiveNetworkSecurityGroupsSamples { */ public static void listNetworkInterfaceEffectiveNetworkSecurityGroups(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkInterfaces().listEffectiveNetworkSecurityGroups("rg1", - "nic1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkInterfaces() + .listEffectiveNetworkSecurityGroups("rg1", "nic1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListSamples.java index 7cce54b49f546..8b66bf1d30e0f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkInterfacesListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkInterfaceListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceListAll.json */ /** * Sample code: List all network interfaces. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListVirtualMachineScaleSetIpConfigurationsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListVirtualMachineScaleSetIpConfigurationsSamples.java index 89d7cb86261fd..5034a67414729 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListVirtualMachineScaleSetIpConfigurationsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListVirtualMachineScaleSetIpConfigurationsSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkInterfacesListVirtualMachineScaleSetIpConfigurationsSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VmssNetworkInterfaceIpConfigList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VmssNetworkInterfaceIpConfigList.json */ /** * Sample code: List virtual machine scale set network interface ip configurations. @@ -19,7 +18,11 @@ public final class NetworkInterfacesListVirtualMachineScaleSetIpConfigurationsSa */ public static void listVirtualMachineScaleSetNetworkInterfaceIpConfigurations( com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkInterfaces().listVirtualMachineScaleSetIpConfigurations( - "rg1", "vmss1", "2", "nic1", null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkInterfaces() + .listVirtualMachineScaleSetIpConfigurations("rg1", "vmss1", "2", "nic1", null, + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListVirtualMachineScaleSetNetworkInterfacesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListVirtualMachineScaleSetNetworkInterfacesSamples.java index e866d3a8b76a1..9e8546b8eb6a2 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListVirtualMachineScaleSetNetworkInterfacesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListVirtualMachineScaleSetNetworkInterfacesSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkInterfacesListVirtualMachineScaleSetNetworkInterfacesSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VmssNetworkInterfaceList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VmssNetworkInterfaceList.json */ /** * Sample code: List virtual machine scale set network interfaces. @@ -19,7 +18,10 @@ public final class NetworkInterfacesListVirtualMachineScaleSetNetworkInterfacesS */ public static void listVirtualMachineScaleSetNetworkInterfaces(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkInterfaces() + azure.networks() + .manager() + .serviceClient() + .getNetworkInterfaces() .listVirtualMachineScaleSetNetworkInterfaces("rg1", "vmss1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListVirtualMachineScaleSetVMNetworkInterfacesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListVirtualMachineScaleSetVMNetworkInterfacesSamples.java index 90eb84d2a9c48..7f291fe2a7ae9 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListVirtualMachineScaleSetVMNetworkInterfacesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesListVirtualMachineScaleSetVMNetworkInterfacesSamples.java @@ -9,9 +9,7 @@ */ public final class NetworkInterfacesListVirtualMachineScaleSetVMNetworkInterfacesSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VmssVmNetworkInterfaceList. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VmssVmNetworkInterfaceList.json */ /** * Sample code: List virtual machine scale set vm network interfaces. @@ -20,7 +18,10 @@ public final class NetworkInterfacesListVirtualMachineScaleSetVMNetworkInterface */ public static void listVirtualMachineScaleSetVmNetworkInterfaces(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkInterfaces() + azure.networks() + .manager() + .serviceClient() + .getNetworkInterfaces() .listVirtualMachineScaleSetVMNetworkInterfaces("rg1", "vmss1", "1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesUpdateTagsSamples.java index 2d6fc6e038e61..4900f4414843a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkInterfacesUpdateTagsSamples.java @@ -13,9 +13,7 @@ */ public final class NetworkInterfacesUpdateTagsSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkInterfaceUpdateTags. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkInterfaceUpdateTags.json */ /** * Sample code: Update network interface tags. @@ -23,8 +21,12 @@ public final class NetworkInterfacesUpdateTagsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updateNetworkInterfaceTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkInterfaces().updateTagsWithResponse("rg1", "test-nic", - new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagerCommitsPostSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagerCommitsPostSamples.java index 7f07eefee22ed..98964cc3f3f03 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagerCommitsPostSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagerCommitsPostSamples.java @@ -13,8 +13,7 @@ */ public final class NetworkManagerCommitsPostSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkManagerCommitPost.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerCommitPost.json */ /** * Sample code: NetworkManageCommitPost. @@ -22,12 +21,14 @@ public final class NetworkManagerCommitsPostSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void networkManageCommitPost(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkManagerCommits().post("resoureGroupSample", - "testNetworkManager", - new NetworkManagerCommitInner().withTargetLocations(Arrays.asList("useast")) + azure.networks() + .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); + .withCommitType(ConfigurationType.SECURITY_ADMIN), com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagerDeploymentStatusOperationListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagerDeploymentStatusOperationListSamples.java index 1959e79b5c193..b2943c6b7c750 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagerDeploymentStatusOperationListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagerDeploymentStatusOperationListSamples.java @@ -13,8 +13,7 @@ */ public final class NetworkManagerDeploymentStatusOperationListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkManagerDeploymentStatusList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerDeploymentStatusList.json */ /** * Sample code: NetworkManagerDeploymentStatusList. @@ -22,12 +21,15 @@ public final class NetworkManagerDeploymentStatusOperationListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void networkManagerDeploymentStatusList(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersCreateOrUpdateSamples.java index 218745e6e4537..94a6fadcdeb9f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersCreateOrUpdateSamples.java @@ -14,8 +14,7 @@ */ public final class NetworkManagersCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkManagerPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerPut.json */ /** * Sample code: Put Network Manager. @@ -23,13 +22,16 @@ public final class NetworkManagersCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void putNetworkManager(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersDeleteSamples.java index a55ebe8edc999..5602667924003 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkManagersDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkManagerDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerDelete.json */ /** * Sample code: NetworkManagersDelete. @@ -18,7 +17,10 @@ public final class NetworkManagersDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void networkManagersDelete(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkManagers().delete("rg1", "testNetworkManager", false, - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkManagers() + .delete("rg1", "testNetworkManager", false, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersGetByResourceGroupSamples.java index b5b8fccc32534..9e98e59e3f53b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkManagersGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkManagerGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerGet.json */ /** * Sample code: NetworkManagersGet. @@ -18,7 +17,10 @@ public final class NetworkManagersGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void networkManagersGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkManagers().getByResourceGroupWithResponse("rg1", - "testNetworkManager", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkManagers() + .getByResourceGroupWithResponse("rg1", "testNetworkManager", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersListByResourceGroupSamples.java index 2bce8162b5241..d87a2a19e9f96 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkManagersListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkManagerList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerList.json */ /** * Sample code: List Network Manager. @@ -18,7 +17,10 @@ public final class NetworkManagersListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listNetworkManager(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkManagers().listByResourceGroup("rg1", null, null, - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkManagers() + .listByResourceGroup("rg1", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersListSamples.java index c727a9578b9bd..5c8ffed209d2a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersListSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkManagersListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkManagerListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerListAll.json */ /** * Sample code: NetworkManagersList. @@ -18,7 +17,10 @@ public final class NetworkManagersListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void networkManagersList(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkManagers().list(null, null, - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkManagers() + .list(null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersPatchSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersPatchSamples.java index ab4571ec1aa42..b3b66244d5cb7 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersPatchSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkManagersPatchSamples.java @@ -13,8 +13,7 @@ */ public final class NetworkManagersPatchSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkManagerPatch.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerPatch.json */ /** * Sample code: NetworkManagesPatch. @@ -22,8 +21,13 @@ public final class NetworkManagersPatchSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void networkManagesPatch(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkManagers().patchWithResponse("rg1", "testNetworkManager", - new PatchObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesCreateOrUpdateSamples.java index 317058b035256..fdc8274003dc5 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesCreateOrUpdateSamples.java @@ -15,8 +15,7 @@ */ public final class NetworkProfilesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkProfileCreateConfigOnly.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkProfileCreateConfigOnly.json */ /** * Sample code: Create network profile defaults. @@ -24,12 +23,16 @@ public final class NetworkProfilesCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createNetworkProfileDefaults(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/networkProfileVnet/subnets/networkProfileSubnet1")))))), - com.azure.core.util.Context.NONE); + azure.networks() + .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/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/networkProfileVnet/subnets/networkProfileSubnet1")))))), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesDeleteSamples.java index 93e111bd243b5..410bcee7cd137 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkProfilesDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkProfileDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkProfileDelete.json */ /** * Sample code: Delete network profile. @@ -18,7 +17,10 @@ public final class NetworkProfilesDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteNetworkProfile(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkProfiles().delete("rg1", "networkProfile1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkProfiles() + .delete("rg1", "networkProfile1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesGetByResourceGroupSamples.java index 7e26ab60b922c..f358612fea6ac 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkProfilesGetByResourceGroupSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkProfileGetWithContainerNic.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkProfileGetWithContainerNic.json */ /** * Sample code: Get network profile with container network interfaces. @@ -19,14 +18,15 @@ public final class NetworkProfilesGetByResourceGroupSamples { */ public static void getNetworkProfileWithContainerNetworkInterfaces(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkProfiles().getByResourceGroupWithResponse("rg1", - "networkProfile1", null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkProfiles() + .getByResourceGroupWithResponse("rg1", "networkProfile1", null, com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkProfileGetConfigOnly. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkProfileGetConfigOnly.json */ /** * Sample code: Get network profile. @@ -34,7 +34,10 @@ public final class NetworkProfilesGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getNetworkProfile(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkProfiles().getByResourceGroupWithResponse("rg1", - "networkProfile1", null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkProfiles() + .getByResourceGroupWithResponse("rg1", "networkProfile1", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesListByResourceGroupSamples.java index 808bb4948ad16..76ed3d64f602b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkProfilesListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkProfileList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkProfileList.json */ /** * Sample code: List resource group network profiles. @@ -18,7 +17,10 @@ public final class NetworkProfilesListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listResourceGroupNetworkProfiles(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkProfiles().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkProfiles() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesListSamples.java index 69b39b141c134..968d1a3f68402 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesListSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkProfilesListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkProfileListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkProfileListAll.json */ /** * Sample code: List all network profiles. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesUpdateTagsSamples.java index 0a2618129bddb..6df37b5e3b833 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkProfilesUpdateTagsSamples.java @@ -13,8 +13,7 @@ */ public final class NetworkProfilesUpdateTagsSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkProfileUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkProfileUpdateTags.json */ /** * Sample code: Update network profile tags. @@ -22,8 +21,12 @@ public final class NetworkProfilesUpdateTagsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updateNetworkProfileTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkProfiles().updateTagsWithResponse("rg1", "test-np", - new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsCreateOrUpdateSamples.java index c5f9e86196b55..1b85ceaa844c1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsCreateOrUpdateSamples.java @@ -16,8 +16,7 @@ */ public final class NetworkSecurityGroupsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkSecurityGroupCreateWithRule.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkSecurityGroupCreateWithRule.json */ /** * Sample code: Create network security group with rule. @@ -25,19 +24,26 @@ public final class NetworkSecurityGroupsCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createNetworkSecurityGroupWithRule(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkSecurityGroupCreate. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkSecurityGroupCreate.json */ /** * Sample code: Create network security group. @@ -45,7 +51,11 @@ public static void createNetworkSecurityGroupWithRule(com.azure.resourcemanager. * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createNetworkSecurityGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkSecurityGroups().createOrUpdate("rg1", "testnsg", - new NetworkSecurityGroupInner().withLocation("eastus"), com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkSecurityGroups() + .createOrUpdate("rg1", "testnsg", new NetworkSecurityGroupInner().withLocation("eastus"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsDeleteSamples.java index cac4ee86d9b55..c03289bba2bac 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsDeleteSamples.java @@ -9,9 +9,7 @@ */ public final class NetworkSecurityGroupsDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkSecurityGroupDelete. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkSecurityGroupDelete.json */ /** * Sample code: Delete network security group. @@ -19,7 +17,10 @@ public final class NetworkSecurityGroupsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteNetworkSecurityGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkSecurityGroups().delete("rg1", "testnsg", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkSecurityGroups() + .delete("rg1", "testnsg", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsGetByResourceGroupSamples.java index 4655e6431d149..79177540bd57d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkSecurityGroupsGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkSecurityGroupGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkSecurityGroupGet.json */ /** * Sample code: Get network security group. @@ -18,7 +17,10 @@ public final class NetworkSecurityGroupsGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getNetworkSecurityGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkSecurityGroups().getByResourceGroupWithResponse("rg1", - "testnsg", null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkSecurityGroups() + .getByResourceGroupWithResponse("rg1", "testnsg", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsListByResourceGroupSamples.java index 0c19a5187f395..9e2354e9ed3e3 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkSecurityGroupsListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkSecurityGroupList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkSecurityGroupList.json */ /** * Sample code: List network security groups in resource group. @@ -18,7 +17,10 @@ public final class NetworkSecurityGroupsListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listNetworkSecurityGroupsInResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkSecurityGroups().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkSecurityGroups() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsListSamples.java index 2100c609af528..ad1e253d4a93f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsListSamples.java @@ -9,9 +9,7 @@ */ public final class NetworkSecurityGroupsListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkSecurityGroupListAll. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkSecurityGroupListAll.json */ /** * Sample code: List all network security groups. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsUpdateTagsSamples.java index 38f523e51c268..b32495e0e100a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkSecurityGroupsUpdateTagsSamples.java @@ -13,8 +13,7 @@ */ public final class NetworkSecurityGroupsUpdateTagsSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkSecurityGroupUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkSecurityGroupUpdateTags.json */ /** * Sample code: Update network security group tags. @@ -22,8 +21,12 @@ public final class NetworkSecurityGroupsUpdateTagsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updateNetworkSecurityGroupTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkSecurityGroups().updateTagsWithResponse("rg1", "testnsg", - new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualApplianceConnectionsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualApplianceConnectionsCreateOrUpdateSamples.java index 286c1f0d3eb9c..8ab082027f2f4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualApplianceConnectionsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualApplianceConnectionsCreateOrUpdateSamples.java @@ -15,8 +15,7 @@ */ public final class NetworkVirtualApplianceConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkVirtualApplianceConnectionPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceConnectionPut.json */ /** * Sample code: NetworkVirtualApplianceConnectionPut. @@ -24,10 +23,16 @@ public final class NetworkVirtualApplianceConnectionsCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void networkVirtualApplianceConnectionPut(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkVirtualApplianceConnections() + azure.networks() + .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) + .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/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubRouteTables/hubRouteTable1")) .withPropagatedRouteTables(new PropagatedRouteTable().withLabels(Arrays.asList("label1")) diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualApplianceConnectionsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualApplianceConnectionsDeleteSamples.java index b01fa690f9c82..d354ad96998b3 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualApplianceConnectionsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualApplianceConnectionsDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkVirtualApplianceConnectionsDeleteSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkVirtualApplianceConnectionDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceConnectionDelete.json */ /** * Sample code: NetworkVirtualApplianceConnectionDelete. @@ -18,7 +17,10 @@ public final class NetworkVirtualApplianceConnectionsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void networkVirtualApplianceConnectionDelete(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkVirtualApplianceConnections().delete("rg1", "nva1", - "connection1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkVirtualApplianceConnections() + .delete("rg1", "nva1", "connection1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualApplianceConnectionsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualApplianceConnectionsGetSamples.java index 32079f8995aa9..6ca2485ae00ad 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualApplianceConnectionsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualApplianceConnectionsGetSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkVirtualApplianceConnectionsGetSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkVirtualApplianceConnectionGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceConnectionGet.json */ /** * Sample code: NetworkVirtualApplianceConnectionGet. @@ -18,7 +17,10 @@ public final class NetworkVirtualApplianceConnectionsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void networkVirtualApplianceConnectionGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkVirtualApplianceConnections().getWithResponse("rg1", - "nva1", "connection1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkVirtualApplianceConnections() + .getWithResponse("rg1", "nva1", "connection1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualApplianceConnectionsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualApplianceConnectionsListSamples.java index 76dedbeea6997..9f3c1d0f91993 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualApplianceConnectionsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualApplianceConnectionsListSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkVirtualApplianceConnectionsListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkVirtualApplianceConnectionList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceConnectionList.json */ /** * Sample code: NetworkVirtualApplianceConnectionList. @@ -18,7 +17,10 @@ public final class NetworkVirtualApplianceConnectionsListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void networkVirtualApplianceConnectionList(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkVirtualApplianceConnections().list("rg1", "nva1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkVirtualApplianceConnections() + .list("rg1", "nva1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesCreateOrUpdateSamples.java index fe89c8e004d64..064408f7f1053 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesCreateOrUpdateSamples.java @@ -10,8 +10,14 @@ 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.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; @@ -22,8 +28,7 @@ */ public final class NetworkVirtualAppliancesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkVirtualApplianceSaaSPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceSaaSPut.json */ /** * Sample code: Create SaaS NetworkVirtualAppliance. @@ -31,18 +36,21 @@ public final class NetworkVirtualAppliancesCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createSaaSNetworkVirtualAppliance(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkVirtualAppliances().createOrUpdate("rg1", "nva", - new NetworkVirtualApplianceInner().withLocation("West US").withTags(mapOf("key1", "fakeTokenPlaceholder")) - .withVirtualHub(new SubResource() - .withId("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1")) - .withDelegation(new DelegationProperties().withServiceName("PaloAltoNetworks.Cloudngfw/firewalls")), - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkVirtualAppliances() + .createOrUpdate("rg1", "nva", + new NetworkVirtualApplianceInner().withLocation("West US") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) + .withVirtualHub(new SubResource() + .withId("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1")) + .withDelegation(new DelegationProperties().withServiceName("PaloAltoNetworks.Cloudngfw/firewalls")), + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkVirtualAppliancePut. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualAppliancePut.json */ /** * Sample code: Create NetworkVirtualAppliance. @@ -50,13 +58,18 @@ public static void createSaaSNetworkVirtualAppliance(com.azure.resourcemanager.A * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createNetworkVirtualAppliance(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkVirtualAppliances().createOrUpdate("rg1", "nva", - new NetworkVirtualApplianceInner().withLocation("West US").withTags(mapOf("key1", "fakeTokenPlaceholder")) + azure.networks() + .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/subid/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1", new ManagedServiceIdentityUserAssignedIdentities()))) - .withNvaSku(new VirtualApplianceSkuProperties().withVendor("Cisco SDWAN").withBundledScaleUnit("1") + .withNvaSku(new VirtualApplianceSkuProperties().withVendor("Cisco SDWAN") + .withBundledScaleUnit("1") .withMarketPlaceVersion("12.1")) .withBootStrapConfigurationBlobs(Arrays .asList("https://csrncvhdstorage1.blob.core.windows.net/csrncvhdstoragecont/csrbootstrapconfig")) @@ -65,11 +78,36 @@ public static void createNetworkVirtualAppliance(com.azure.resourcemanager.Azure .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); + com.azure.core.util.Context.NONE); } // Use "Map.of" if available diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesDeleteSamples.java index 3994fa358ae26..6968c2ad95129 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesDeleteSamples.java @@ -9,9 +9,7 @@ */ public final class NetworkVirtualAppliancesDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkVirtualApplianceDelete - * .json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceDelete.json */ /** * Sample code: Delete NetworkVirtualAppliance. @@ -19,7 +17,10 @@ public final class NetworkVirtualAppliancesDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteNetworkVirtualAppliance(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkVirtualAppliances().delete("rg1", "nva", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkVirtualAppliances() + .delete("rg1", "nva", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesGetByResourceGroupSamples.java index 2c84c22faa219..648e4fab366fc 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesGetByResourceGroupSamples.java @@ -9,9 +9,7 @@ */ public final class NetworkVirtualAppliancesGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkVirtualApplianceGet. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceGet.json */ /** * Sample code: Get NetworkVirtualAppliance. @@ -19,7 +17,10 @@ public final class NetworkVirtualAppliancesGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getNetworkVirtualAppliance(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkVirtualAppliances().getByResourceGroupWithResponse("rg1", - "nva", null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkVirtualAppliances() + .getByResourceGroupWithResponse("rg1", "nva", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesListByResourceGroupSamples.java index 926297592c1d3..a78b30ed30c5a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkVirtualAppliancesListByResourceGroupSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkVirtualApplianceListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceListByResourceGroup.json */ /** * Sample code: List all Network Virtual Appliance for a given resource group. @@ -19,7 +18,10 @@ public final class NetworkVirtualAppliancesListByResourceGroupSamples { */ public static void listAllNetworkVirtualApplianceForAGivenResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkVirtualAppliances().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkVirtualAppliances() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesListSamples.java index ce9b2c6443aee..e0a57fcaf1975 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesListSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkVirtualAppliancesListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkVirtualApplianceListBySubscription.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceListBySubscription.json */ /** * Sample code: List all Network Virtual Appliances for a given subscription. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesRestartSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesRestartSamples.java new file mode 100644 index 0000000000000..e7f3000249b70 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesRestartSamples.java @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.network.generated; + +/** + * Samples for NetworkVirtualAppliances Restart. + */ +public final class NetworkVirtualAppliancesRestartSamples { + /* + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceSpecificRestart.json + */ + /** + * Sample code: Restart Specific NetworkVirtualAppliance VMs in VM Scale Set. + * + * @param azure The entry point for accessing resource management APIs in Azure. + */ + public static void + restartSpecificNetworkVirtualApplianceVMsInVMScaleSet(com.azure.resourcemanager.AzureResourceManager azure) { + azure.networks() + .manager() + .serviceClient() + .getNetworkVirtualAppliances() + .restart("rg1", "nva", null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceEmptyRestart.json + */ + /** + * Sample code: Restart All NetworkVirtualAppliance VMs in VM Scale Set. + * + * @param azure The entry point for accessing resource management APIs in Azure. + */ + public static void + restartAllNetworkVirtualApplianceVMsInVMScaleSet(com.azure.resourcemanager.AzureResourceManager azure) { + azure.networks() + .manager() + .serviceClient() + .getNetworkVirtualAppliances() + .restart("rg1", "nva", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesUpdateTagsSamples.java index 1ae241fc8add6..e4d4aff9ece10 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkVirtualAppliancesUpdateTagsSamples.java @@ -13,8 +13,7 @@ */ public final class NetworkVirtualAppliancesUpdateTagsSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkVirtualApplianceUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceUpdateTags.json */ /** * Sample code: Update NetworkVirtualAppliance. @@ -22,9 +21,13 @@ public final class NetworkVirtualAppliancesUpdateTagsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updateNetworkVirtualAppliance(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkVirtualAppliances().updateTagsWithResponse("rg1", "nva", - new TagsObject().withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")), - com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersCheckConnectivitySamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersCheckConnectivitySamples.java index a6f776fc38e64..50ba0c7fdcb7f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersCheckConnectivitySamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersCheckConnectivitySamples.java @@ -14,8 +14,7 @@ */ public final class NetworkWatchersCheckConnectivitySamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkWatcherConnectivityCheck.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherConnectivityCheck.json */ /** * Sample code: Check connectivity. @@ -23,12 +22,16 @@ public final class NetworkWatchersCheckConnectivitySamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void checkConnectivity(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkWatchers().checkConnectivity("rg1", "nw1", - new ConnectivityParameters() - .withSource(new ConnectivitySource().withResourceId( - "/subscriptions/subid/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); + azure.networks() + .manager() + .serviceClient() + .getNetworkWatchers() + .checkConnectivity("rg1", "nw1", + new ConnectivityParameters() + .withSource(new ConnectivitySource().withResourceId( + "/subscriptions/subid/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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersCreateOrUpdateSamples.java index 49dcdf48557c0..3f4d9b7a8d85b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersCreateOrUpdateSamples.java @@ -11,8 +11,7 @@ */ public final class NetworkWatchersCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkWatcherCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherCreate.json */ /** * Sample code: Create network watcher. @@ -20,7 +19,11 @@ public final class NetworkWatchersCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createNetworkWatcher(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkWatchers().createOrUpdateWithResponse("rg1", "nw1", - new NetworkWatcherInner().withLocation("eastus"), com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkWatchers() + .createOrUpdateWithResponse("rg1", "nw1", new NetworkWatcherInner().withLocation("eastus"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersDeleteSamples.java index dbca93138244c..2de0e4f8fa8eb 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkWatchersDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkWatcherDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherDelete.json */ /** * Sample code: Delete network watcher. @@ -18,7 +17,10 @@ public final class NetworkWatchersDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteNetworkWatcher(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkWatchers().delete("rg1", "nw1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkWatchers() + .delete("rg1", "nw1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetAzureReachabilityReportSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetAzureReachabilityReportSamples.java index 03a3cbf6edaaa..d304c5e56586c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetAzureReachabilityReportSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetAzureReachabilityReportSamples.java @@ -14,8 +14,7 @@ */ public final class NetworkWatchersGetAzureReachabilityReportSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkWatcherAzureReachabilityReportGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherAzureReachabilityReportGet.json */ /** * Sample code: Get Azure Reachability Report. @@ -23,14 +22,18 @@ public final class NetworkWatchersGetAzureReachabilityReportSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getAzureReachabilityReport(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetByResourceGroupSamples.java index e29c6f469d7d1..3ec8085da57c0 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkWatchersGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkWatcherGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherGet.json */ /** * Sample code: Get network watcher. @@ -18,7 +17,10 @@ public final class NetworkWatchersGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getNetworkWatcher(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkWatchers().getByResourceGroupWithResponse("rg1", "nw1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkWatchers() + .getByResourceGroupWithResponse("rg1", "nw1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetFlowLogStatusSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetFlowLogStatusSamples.java index 4a63a465e68bb..48dca8e1b03e5 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetFlowLogStatusSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetFlowLogStatusSamples.java @@ -11,8 +11,7 @@ */ public final class NetworkWatchersGetFlowLogStatusSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkWatcherFlowLogStatusQuery.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherFlowLogStatusQuery.json */ /** * Sample code: Get flow log status. @@ -20,9 +19,13 @@ public final class NetworkWatchersGetFlowLogStatusSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getFlowLogStatus(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkWatchers().getFlowLogStatus("rg1", "nw1", - new FlowLogStatusParameters().withTargetResourceId( - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1"), - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkWatchers() + .getFlowLogStatus("rg1", "nw1", + new FlowLogStatusParameters().withTargetResourceId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetNetworkConfigurationDiagnosticSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetNetworkConfigurationDiagnosticSamples.java index 1cb4ae803bbec..c5698ad0ed174 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetNetworkConfigurationDiagnosticSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetNetworkConfigurationDiagnosticSamples.java @@ -14,8 +14,7 @@ */ public final class NetworkWatchersGetNetworkConfigurationDiagnosticSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkWatcherNetworkConfigurationDiagnostic.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherNetworkConfigurationDiagnostic.json */ /** * Sample code: Network configuration diagnostic. @@ -23,13 +22,18 @@ public final class NetworkWatchersGetNetworkConfigurationDiagnosticSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void networkConfigurationDiagnostic(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkWatchers().getNetworkConfigurationDiagnostic("rg1", "nw1", - new NetworkConfigurationDiagnosticParameters() + azure.networks() + .manager() + .serviceClient() + .getNetworkWatchers() + .getNetworkConfigurationDiagnostic("rg1", "nw1", new NetworkConfigurationDiagnosticParameters() .withTargetResourceId( "/subscriptions/subid/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); + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetNextHopSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetNextHopSamples.java index a8193f84e2d2f..6808b7199cd72 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetNextHopSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetNextHopSamples.java @@ -11,8 +11,7 @@ */ public final class NetworkWatchersGetNextHopSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkWatcherNextHopGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherNextHopGet.json */ /** * Sample code: Get next hop. @@ -20,12 +19,18 @@ public final class NetworkWatchersGetNextHopSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getNextHop(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkWatchers().getNextHop("rg1", "nw1", - new NextHopParameters() - .withTargetResourceId( - "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1") - .withSourceIpAddress("10.0.0.5").withDestinationIpAddress("10.0.0.10").withTargetNicResourceId( - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic1"), - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkWatchers() + .getNextHop("rg1", "nw1", + new NextHopParameters() + .withTargetResourceId( + "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1") + .withSourceIpAddress("10.0.0.5") + .withDestinationIpAddress("10.0.0.10") + .withTargetNicResourceId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic1"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetTopologySamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetTopologySamples.java index abab92c59ecdf..c54d66c8799ac 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetTopologySamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetTopologySamples.java @@ -11,9 +11,7 @@ */ public final class NetworkWatchersGetTopologySamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkWatcherTopologyGet. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherTopologyGet.json */ /** * Sample code: Get Topology. @@ -21,7 +19,11 @@ public final class NetworkWatchersGetTopologySamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getTopology(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkWatchers().getTopologyWithResponse("rg1", "nw1", - new TopologyParameters().withTargetResourceGroupName("rg2"), com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkWatchers() + .getTopologyWithResponse("rg1", "nw1", new TopologyParameters().withTargetResourceGroupName("rg2"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetTroubleshootingResultSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetTroubleshootingResultSamples.java index 049a77bab9639..2acc32a67d0aa 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetTroubleshootingResultSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetTroubleshootingResultSamples.java @@ -11,8 +11,7 @@ */ public final class NetworkWatchersGetTroubleshootingResultSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkWatcherTroubleshootResultQuery.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherTroubleshootResultQuery.json */ /** * Sample code: Get troubleshoot result. @@ -20,9 +19,13 @@ public final class NetworkWatchersGetTroubleshootingResultSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getTroubleshootResult(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkWatchers().getTroubleshootingResult("rg1", "nw1", - new QueryTroubleshootingParameters().withTargetResourceId( - "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1"), - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkWatchers() + .getTroubleshootingResult("rg1", "nw1", + new QueryTroubleshootingParameters().withTargetResourceId( + "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetTroubleshootingSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetTroubleshootingSamples.java index 4882166debc72..c74a55ff892af 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetTroubleshootingSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetTroubleshootingSamples.java @@ -11,9 +11,7 @@ */ public final class NetworkWatchersGetTroubleshootingSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkWatcherTroubleshootGet - * .json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherTroubleshootGet.json */ /** * Sample code: Get troubleshooting. @@ -21,13 +19,17 @@ public final class NetworkWatchersGetTroubleshootingSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getTroubleshooting(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkWatchers().getTroubleshooting("rg1", "nw1", - new TroubleshootingParameters() - .withTargetResourceId( - "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1") - .withStorageId( - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/st1") - .withStoragePath("https://st1.blob.core.windows.net/cn1"), - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkWatchers() + .getTroubleshooting("rg1", "nw1", + new TroubleshootingParameters() + .withTargetResourceId( + "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1") + .withStorageId( + "/subscriptions/subid/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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetVMSecurityRulesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetVMSecurityRulesSamples.java index fbc24f737e325..26a9b56e030da 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetVMSecurityRulesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersGetVMSecurityRulesSamples.java @@ -11,8 +11,7 @@ */ public final class NetworkWatchersGetVMSecurityRulesSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkWatcherSecurityGroupViewGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherSecurityGroupViewGet.json */ /** * Sample code: Get security group view. @@ -20,9 +19,13 @@ public final class NetworkWatchersGetVMSecurityRulesSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getSecurityGroupView(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkWatchers().getVMSecurityRules("rg1", "nw1", - new SecurityGroupViewParameters().withTargetResourceId( - "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1"), - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkWatchers() + .getVMSecurityRules("rg1", "nw1", + new SecurityGroupViewParameters().withTargetResourceId( + "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersListAvailableProvidersSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersListAvailableProvidersSamples.java index 81e9dfdeadc7e..e95a7df7e3386 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersListAvailableProvidersSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersListAvailableProvidersSamples.java @@ -12,8 +12,7 @@ */ public final class NetworkWatchersListAvailableProvidersSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkWatcherAvailableProvidersListGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherAvailableProvidersListGet.json */ /** * Sample code: Get Available Providers List. @@ -21,9 +20,15 @@ public final class NetworkWatchersListAvailableProvidersSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getAvailableProvidersList(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersListByResourceGroupSamples.java index 00beab74f8d0c..81379f5fc5467 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkWatchersListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkWatcherList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherList.json */ /** * Sample code: List network watchers. @@ -18,7 +17,10 @@ public final class NetworkWatchersListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listNetworkWatchers(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkWatchers().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getNetworkWatchers() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersListSamples.java index 71dcde0c85f13..4506d843a12bf 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersListSamples.java @@ -9,8 +9,7 @@ */ public final class NetworkWatchersListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkWatcherListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherListAll.json */ /** * Sample code: List all network watchers. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersSetFlowLogConfigurationSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersSetFlowLogConfigurationSamples.java index fe06f692b4189..b84cdec4e699c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersSetFlowLogConfigurationSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersSetFlowLogConfigurationSamples.java @@ -11,8 +11,7 @@ */ public final class NetworkWatchersSetFlowLogConfigurationSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkWatcherFlowLogConfigure.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherFlowLogConfigure.json */ /** * Sample code: Configure flow log. @@ -20,13 +19,16 @@ public final class NetworkWatchersSetFlowLogConfigurationSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void configureFlowLog(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkWatchers().setFlowLogConfiguration("rg1", "nw1", - new FlowLogInformationInner() - .withTargetResourceId( + azure.networks() + .manager() + .serviceClient() + .getNetworkWatchers() + .setFlowLogConfiguration("rg1", "nw1", + new FlowLogInformationInner().withTargetResourceId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkSecurityGroups/nsg1") - .withStorageId( - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/st1") - .withEnabled(true), - com.azure.core.util.Context.NONE); + .withStorageId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/st1") + .withEnabled(true), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersUpdateTagsSamples.java index b8fe40fa2e7d8..d7ce38864406b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersUpdateTagsSamples.java @@ -13,8 +13,7 @@ */ public final class NetworkWatchersUpdateTagsSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkWatcherUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherUpdateTags.json */ /** * Sample code: Update network watcher tags. @@ -22,8 +21,12 @@ public final class NetworkWatchersUpdateTagsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updateNetworkWatcherTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkWatchers().updateTagsWithResponse("rg1", "nw1", - new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersVerifyIpFlowSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersVerifyIpFlowSamples.java index a718f0d275fe0..22d57297d2e8d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersVerifyIpFlowSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/NetworkWatchersVerifyIpFlowSamples.java @@ -13,9 +13,7 @@ */ public final class NetworkWatchersVerifyIpFlowSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkWatcherIpFlowVerify. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherIpFlowVerify.json */ /** * Sample code: Ip flow verify. @@ -23,12 +21,20 @@ public final class NetworkWatchersVerifyIpFlowSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void ipFlowVerify(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getNetworkWatchers().verifyIpFlow("rg1", "nw1", - new VerificationIpFlowParameters() - .withTargetResourceId( - "/subscriptions/subid/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); + azure.networks() + .manager() + .serviceClient() + .getNetworkWatchers() + .verifyIpFlow("rg1", "nw1", + new VerificationIpFlowParameters() + .withTargetResourceId( + "/subscriptions/subid/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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/OperationsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/OperationsListSamples.java index 5fea11ef46227..9c4e497983262 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/OperationsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/OperationsListSamples.java @@ -9,8 +9,7 @@ */ public final class OperationsListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/OperationList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/OperationList.json */ /** * Sample code: Get a list of operations for a resource provider. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysCreateOrUpdateSamples.java index 4a3efbd3c17e9..ae81f50b2c365 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysCreateOrUpdateSamples.java @@ -20,8 +20,7 @@ */ public final class P2SVpnGatewaysCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/P2SVpnGatewayPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/P2SVpnGatewayPut.json */ /** * Sample code: P2SVpnGatewayPut. @@ -29,8 +28,12 @@ public final class P2SVpnGatewaysCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void p2SVpnGatewayPut(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getP2SVpnGateways().createOrUpdate("rg1", "p2sVpnGateway1", - new P2SVpnGatewayInner().withLocation("West US").withTags(mapOf("key1", "fakeTokenPlaceholder")) + azure.networks() + .manager() + .serviceClient() + .getP2SVpnGateways() + .createOrUpdate("rg1", "p2sVpnGateway1", new P2SVpnGatewayInner().withLocation("West US") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) .withVirtualHub(new SubResource().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1")) .withP2SConnectionConfigurations(Arrays.asList(new P2SConnectionConfiguration().withId( @@ -52,8 +55,8 @@ public static void p2SVpnGatewayPut(com.azure.resourcemanager.AzureResourceManag .withVpnGatewayScaleUnit(1) .withVpnServerConfiguration(new SubResource().withId( "/subscriptions/subid/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); + .withCustomDnsServers(Arrays.asList("1.1.1.1", "2.2.2.2")) + .withIsRoutingPreferenceInternet(false), com.azure.core.util.Context.NONE); } // Use "Map.of" if available diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysDeleteSamples.java index 208b5ae8a455e..fc54965b58a27 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class P2SVpnGatewaysDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/P2SVpnGatewayDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/P2SVpnGatewayDelete.json */ /** * Sample code: P2SVpnGatewayDelete. @@ -18,7 +17,10 @@ public final class P2SVpnGatewaysDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void p2SVpnGatewayDelete(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getP2SVpnGateways().delete("rg1", "p2sVpnGateway1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getP2SVpnGateways() + .delete("rg1", "p2sVpnGateway1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysDisconnectP2SVpnConnectionsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysDisconnectP2SVpnConnectionsSamples.java index 5177ceb34d278..71a6a5fe0cca1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysDisconnectP2SVpnConnectionsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysDisconnectP2SVpnConnectionsSamples.java @@ -12,8 +12,7 @@ */ public final class P2SVpnGatewaysDisconnectP2SVpnConnectionsSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * P2sVpnGatewaysDisconnectP2sVpnConnections.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/P2sVpnGatewaysDisconnectP2sVpnConnections.json */ /** * Sample code: Disconnect VpnConnections from P2sVpn Gateway. @@ -21,9 +20,12 @@ public final class P2SVpnGatewaysDisconnectP2SVpnConnectionsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void disconnectVpnConnectionsFromP2sVpnGateway(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getP2SVpnGateways().disconnectP2SVpnConnections( - "p2s-vpn-gateway-test", "p2svpngateway", - new P2SVpnConnectionRequest().withVpnConnectionIds(Arrays.asList("vpnconnId1", "vpnconnId2")), - com.azure.core.util.Context.NONE); + azure.networks() + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysGenerateVpnProfileSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysGenerateVpnProfileSamples.java index 93995f0adff1f..43e626a22dd5b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysGenerateVpnProfileSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysGenerateVpnProfileSamples.java @@ -12,8 +12,7 @@ */ public final class P2SVpnGatewaysGenerateVpnProfileSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * P2SVpnGatewayGenerateVpnProfile.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/P2SVpnGatewayGenerateVpnProfile.json */ /** * Sample code: GenerateP2SVpnGatewayVPNProfile. @@ -21,8 +20,12 @@ public final class P2SVpnGatewaysGenerateVpnProfileSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void generateP2SVpnGatewayVPNProfile(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getP2SVpnGateways().generateVpnProfile("rg1", "p2sVpnGateway1", - new P2SVpnProfileParameters().withAuthenticationMethod(AuthenticationMethod.EAPTLS), - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getP2SVpnGateways() + .generateVpnProfile("rg1", "p2sVpnGateway1", + new P2SVpnProfileParameters().withAuthenticationMethod(AuthenticationMethod.EAPTLS), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysGetByResourceGroupSamples.java index 730634bbe9cf6..a6599c18167ac 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class P2SVpnGatewaysGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/P2SVpnGatewayGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/P2SVpnGatewayGet.json */ /** * Sample code: P2SVpnGatewayGet. @@ -18,7 +17,10 @@ public final class P2SVpnGatewaysGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void p2SVpnGatewayGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getP2SVpnGateways().getByResourceGroupWithResponse("rg1", - "p2sVpnGateway1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getP2SVpnGateways() + .getByResourceGroupWithResponse("rg1", "p2sVpnGateway1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysGetP2SVpnConnectionHealthDetailedSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysGetP2SVpnConnectionHealthDetailedSamples.java index 505878e6813c2..3a0d9b28d5856 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysGetP2SVpnConnectionHealthDetailedSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysGetP2SVpnConnectionHealthDetailedSamples.java @@ -12,8 +12,7 @@ */ public final class P2SVpnGatewaysGetP2SVpnConnectionHealthDetailedSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * P2SVpnGatewayGetConnectionHealthDetailed.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/P2SVpnGatewayGetConnectionHealthDetailed.json */ /** * Sample code: P2SVpnGatewayGetConnectionHealthDetailed. @@ -21,11 +20,14 @@ public final class P2SVpnGatewaysGetP2SVpnConnectionHealthDetailedSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void p2SVpnGatewayGetConnectionHealthDetailed(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysGetP2SVpnConnectionHealthSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysGetP2SVpnConnectionHealthSamples.java index 1e93b440d4f49..9c42725509269 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysGetP2SVpnConnectionHealthSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysGetP2SVpnConnectionHealthSamples.java @@ -9,8 +9,7 @@ */ public final class P2SVpnGatewaysGetP2SVpnConnectionHealthSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * P2SVpnGatewayGetConnectionHealth.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/P2SVpnGatewayGetConnectionHealth.json */ /** * Sample code: P2SVpnGatewayGetConnectionHealth. @@ -18,7 +17,10 @@ public final class P2SVpnGatewaysGetP2SVpnConnectionHealthSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void p2SVpnGatewayGetConnectionHealth(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getP2SVpnGateways().getP2SVpnConnectionHealth("rg1", - "p2sVpnGateway1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getP2SVpnGateways() + .getP2SVpnConnectionHealth("rg1", "p2sVpnGateway1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysListByResourceGroupSamples.java index 141b2a356962a..d5fc206083c7b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class P2SVpnGatewaysListByResourceGroupSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * P2SVpnGatewayListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/P2SVpnGatewayListByResourceGroup.json */ /** * Sample code: P2SVpnGatewayListByResourceGroup. @@ -18,7 +17,10 @@ public final class P2SVpnGatewaysListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void p2SVpnGatewayListByResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getP2SVpnGateways().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getP2SVpnGateways() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysListSamples.java index 854820bf661b3..2a167e44965b7 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysListSamples.java @@ -9,8 +9,7 @@ */ public final class P2SVpnGatewaysListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/P2SVpnGatewayList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/P2SVpnGatewayList.json */ /** * Sample code: P2SVpnGatewayListBySubscription. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysResetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysResetSamples.java index 486bfa9065e14..2c39a49052865 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysResetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysResetSamples.java @@ -9,8 +9,7 @@ */ public final class P2SVpnGatewaysResetSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/P2SVpnGatewayReset.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/P2SVpnGatewayReset.json */ /** * Sample code: ResetP2SVpnGateway. @@ -18,7 +17,10 @@ public final class P2SVpnGatewaysResetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void resetP2SVpnGateway(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getP2SVpnGateways().reset("rg1", "p2sVpnGateway1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getP2SVpnGateways() + .reset("rg1", "p2sVpnGateway1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysUpdateTagsSamples.java index 830c5a90a0e0e..305f03aa4e361 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/P2SVpnGatewaysUpdateTagsSamples.java @@ -13,8 +13,7 @@ */ public final class P2SVpnGatewaysUpdateTagsSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/P2SVpnGatewayUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/P2SVpnGatewayUpdateTags.json */ /** * Sample code: P2SVpnGatewayUpdate. @@ -22,8 +21,12 @@ public final class P2SVpnGatewaysUpdateTagsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void p2SVpnGatewayUpdate(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getP2SVpnGateways().updateTags("rg1", "p2sVpnGateway1", - new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesCreateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesCreateSamples.java index 5887bd40bd9e0..4f00e604c74ea 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesCreateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesCreateSamples.java @@ -15,8 +15,7 @@ */ public final class PacketCapturesCreateSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkWatcherPacketCaptureCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherPacketCaptureCreate.json */ /** * Sample code: Create packet capture. @@ -24,17 +23,23 @@ public final class PacketCapturesCreateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createPacketCapture(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPacketCaptures().create("rg1", "nw1", "pc1", - new PacketCaptureInner() + azure.networks() + .manager() + .serviceClient() + .getPacketCaptures() + .create("rg1", "nw1", "pc1", new PacketCaptureInner() .withTarget("/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1") - .withBytesToCapturePerPacket(10000L).withTotalBytesPerSession(100000L).withTimeLimitInSeconds(100) + .withBytesToCapturePerPacket(10000L) + .withTotalBytesPerSession(100000L) + .withTimeLimitInSeconds(100) .withStorageLocation(new PacketCaptureStorageLocation() .withStorageId( "/subscriptions/subid/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); + .withLocalIpAddress("10.0.0.4") + .withLocalPort("80"))), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesDeleteSamples.java index 433667cf03e2a..14a8af6900b19 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class PacketCapturesDeleteSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkWatcherPacketCaptureDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherPacketCaptureDelete.json */ /** * Sample code: Delete packet capture. @@ -18,7 +17,10 @@ public final class PacketCapturesDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deletePacketCapture(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPacketCaptures().delete("rg1", "nw1", "pc1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getPacketCaptures() + .delete("rg1", "nw1", "pc1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesGetSamples.java index 0f469966a3e0a..c3c9a770c58e1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesGetSamples.java @@ -9,8 +9,7 @@ */ public final class PacketCapturesGetSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkWatcherPacketCaptureGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherPacketCaptureGet.json */ /** * Sample code: Get packet capture. @@ -18,7 +17,10 @@ public final class PacketCapturesGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getPacketCapture(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPacketCaptures().getWithResponse("rg1", "nw1", "pc1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getPacketCaptures() + .getWithResponse("rg1", "nw1", "pc1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesGetStatusSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesGetStatusSamples.java index 35c49ce7a7723..8503c1d77105f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesGetStatusSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesGetStatusSamples.java @@ -9,8 +9,7 @@ */ public final class PacketCapturesGetStatusSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkWatcherPacketCaptureQueryStatus.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherPacketCaptureQueryStatus.json */ /** * Sample code: Query packet capture status. @@ -18,7 +17,10 @@ public final class PacketCapturesGetStatusSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void queryPacketCaptureStatus(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPacketCaptures().getStatus("rg1", "nw1", "pc1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getPacketCaptures() + .getStatus("rg1", "nw1", "pc1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesListSamples.java index b090b1e0b07cb..0cbcc2e891665 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesListSamples.java @@ -9,8 +9,7 @@ */ public final class PacketCapturesListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkWatcherPacketCapturesList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherPacketCapturesList.json */ /** * Sample code: List packet captures. @@ -18,7 +17,10 @@ public final class PacketCapturesListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listPacketCaptures(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPacketCaptures().list("rg1", "nw1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getPacketCaptures() + .list("rg1", "nw1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesStopSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesStopSamples.java index d012d0ac902da..20fa53dc853bd 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesStopSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PacketCapturesStopSamples.java @@ -9,8 +9,7 @@ */ public final class PacketCapturesStopSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkWatcherPacketCaptureStop.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkWatcherPacketCaptureStop.json */ /** * Sample code: Stop packet capture. @@ -18,7 +17,10 @@ public final class PacketCapturesStopSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void stopPacketCapture(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPacketCaptures().stop("rg1", "nw1", "pc1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getPacketCaptures() + .stop("rg1", "nw1", "pc1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PeerExpressRouteCircuitConnectionsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PeerExpressRouteCircuitConnectionsGetSamples.java index 9c4038fdb69f9..ca1637ed7a08a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PeerExpressRouteCircuitConnectionsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PeerExpressRouteCircuitConnectionsGetSamples.java @@ -9,8 +9,7 @@ */ public final class PeerExpressRouteCircuitConnectionsGetSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * PeerExpressRouteCircuitConnectionGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PeerExpressRouteCircuitConnectionGet.json */ /** * Sample code: PeerExpressRouteCircuitConnectionGet. @@ -18,8 +17,11 @@ public final class PeerExpressRouteCircuitConnectionsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void peerExpressRouteCircuitConnectionGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPeerExpressRouteCircuitConnections().getWithResponse("rg1", - "ExpressRouteARMCircuitA", "AzurePrivatePeering", "60aee347-e889-4a42-8c1b-0aae8b1e4013", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getPeerExpressRouteCircuitConnections() + .getWithResponse("rg1", "ExpressRouteARMCircuitA", "AzurePrivatePeering", + "60aee347-e889-4a42-8c1b-0aae8b1e4013", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PeerExpressRouteCircuitConnectionsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PeerExpressRouteCircuitConnectionsListSamples.java index bd563a94f1411..47416c995a208 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PeerExpressRouteCircuitConnectionsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PeerExpressRouteCircuitConnectionsListSamples.java @@ -9,8 +9,7 @@ */ public final class PeerExpressRouteCircuitConnectionsListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * PeerExpressRouteCircuitConnectionList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PeerExpressRouteCircuitConnectionList.json */ /** * Sample code: List Peer ExpressRouteCircuit Connection. @@ -18,7 +17,10 @@ public final class PeerExpressRouteCircuitConnectionsListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listPeerExpressRouteCircuitConnection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPeerExpressRouteCircuitConnections().list("rg1", - "ExpressRouteARMCircuitA", "AzurePrivatePeering", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getPeerExpressRouteCircuitConnections() + .list("rg1", "ExpressRouteARMCircuitA", "AzurePrivatePeering", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateDnsZoneGroupsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateDnsZoneGroupsCreateOrUpdateSamples.java index e1a83970029ea..2b3fd8996df8d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateDnsZoneGroupsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateDnsZoneGroupsCreateOrUpdateSamples.java @@ -13,8 +13,7 @@ */ public final class PrivateDnsZoneGroupsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * PrivateEndpointDnsZoneGroupCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointDnsZoneGroupCreate.json */ /** * Sample code: Create private dns zone group. @@ -22,7 +21,10 @@ public final class PrivateDnsZoneGroupsCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createPrivateDnsZoneGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPrivateDnsZoneGroups() + azure.networks() + .manager() + .serviceClient() + .getPrivateDnsZoneGroups() .createOrUpdate("rg1", "testPe", "testPdnsgroup", new PrivateDnsZoneGroupInner() .withPrivateDnsZoneConfigs(Arrays.asList(new PrivateDnsZoneConfig().withPrivateDnsZoneId( "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateDnsZones/zone1.com"))), diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateDnsZoneGroupsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateDnsZoneGroupsDeleteSamples.java index 54d4592beabb3..3beeb812874c4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateDnsZoneGroupsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateDnsZoneGroupsDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class PrivateDnsZoneGroupsDeleteSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * PrivateEndpointDnsZoneGroupDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointDnsZoneGroupDelete.json */ /** * Sample code: Delete private dns zone group. @@ -18,7 +17,10 @@ public final class PrivateDnsZoneGroupsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deletePrivateDnsZoneGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPrivateDnsZoneGroups().delete("rg1", "testPe", "testPdnsgroup", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getPrivateDnsZoneGroups() + .delete("rg1", "testPe", "testPdnsgroup", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateDnsZoneGroupsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateDnsZoneGroupsGetSamples.java index e7aeb0e60f887..490f00d2769f2 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateDnsZoneGroupsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateDnsZoneGroupsGetSamples.java @@ -9,8 +9,7 @@ */ public final class PrivateDnsZoneGroupsGetSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * PrivateEndpointDnsZoneGroupGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointDnsZoneGroupGet.json */ /** * Sample code: Get private dns zone group. @@ -18,7 +17,10 @@ public final class PrivateDnsZoneGroupsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getPrivateDnsZoneGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPrivateDnsZoneGroups().getWithResponse("rg1", "testPe", - "testPdnsgroup", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getPrivateDnsZoneGroups() + .getWithResponse("rg1", "testPe", "testPdnsgroup", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateDnsZoneGroupsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateDnsZoneGroupsListSamples.java index 272a4be9ea0e0..e86169c301335 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateDnsZoneGroupsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateDnsZoneGroupsListSamples.java @@ -9,8 +9,7 @@ */ public final class PrivateDnsZoneGroupsListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * PrivateEndpointDnsZoneGroupList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointDnsZoneGroupList.json */ /** * Sample code: List private endpoints in resource group. @@ -18,7 +17,10 @@ public final class PrivateDnsZoneGroupsListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listPrivateEndpointsInResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPrivateDnsZoneGroups().list("testPe", "rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getPrivateDnsZoneGroups() + .list("testPe", "rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsCreateOrUpdateSamples.java index 3e51c70c2d3ac..dc80e832b47c6 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsCreateOrUpdateSamples.java @@ -16,9 +16,7 @@ */ public final class PrivateEndpointsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/PrivateEndpointCreateWithASG. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointCreateWithASG.json */ /** * Sample code: Create private endpoint with application security groups. @@ -27,9 +25,13 @@ public final class PrivateEndpointsCreateOrUpdateSamples { */ public static void createPrivateEndpointWithApplicationSecurityGroups(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPrivateEndpoints().createOrUpdate("rg1", "testPe", - new PrivateEndpointInner().withLocation("eastus2euap").withSubnet(new SubnetInner().withId( - "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet")) + azure.networks() + .manager() + .serviceClient() + .getPrivateEndpoints() + .createOrUpdate("rg1", "testPe", new PrivateEndpointInner().withLocation("eastus2euap") + .withSubnet(new SubnetInner().withId( + "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet")) .withPrivateLinkServiceConnections(Arrays.asList(new PrivateLinkServiceConnection() .withPrivateLinkServiceId( "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/privateLinkServices/testPls") @@ -37,12 +39,11 @@ public final class PrivateEndpointsCreateOrUpdateSamples { .withRequestMessage("Please approve my connection."))) .withApplicationSecurityGroups(Arrays.asList(new ApplicationSecurityGroupInner().withId( "/subscriptions/subId/resourceGroups/rg1/provders/Microsoft.Network/applicationSecurityGroup/asg1"))), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/PrivateEndpointCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointCreate.json */ /** * Sample code: Create private endpoint. @@ -50,23 +51,27 @@ public final class PrivateEndpointsCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createPrivateEndpoint(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPrivateEndpoints().createOrUpdate("rg1", "testPe", - new PrivateEndpointInner().withLocation("eastus2euap").withSubnet(new SubnetInner().withId( - "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet")) + azure.networks() + .manager() + .serviceClient() + .getPrivateEndpoints() + .createOrUpdate("rg1", "testPe", new PrivateEndpointInner().withLocation("eastus2euap") + .withSubnet(new SubnetInner().withId( + "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet")) .withPrivateLinkServiceConnections(Arrays.asList(new PrivateLinkServiceConnection() .withPrivateLinkServiceId( "/subscriptions/subId/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); + .withGroupId("file") + .withMemberName("file") + .withPrivateIpAddress("192.168.0.6"))) + .withCustomNetworkInterfaceName("testPeNic"), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * PrivateEndpointCreateForManualApproval.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointCreateForManualApproval.json */ /** * Sample code: Create private endpoint with manual approval connection. @@ -75,17 +80,22 @@ public static void createPrivateEndpoint(com.azure.resourcemanager.AzureResource */ public static void createPrivateEndpointWithManualApprovalConnection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPrivateEndpoints().createOrUpdate("rg1", "testPe", - new PrivateEndpointInner().withLocation("eastus").withSubnet(new SubnetInner().withId( - "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet")) + azure.networks() + .manager() + .serviceClient() + .getPrivateEndpoints() + .createOrUpdate("rg1", "testPe", new PrivateEndpointInner().withLocation("eastus") + .withSubnet(new SubnetInner().withId( + "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet")) .withManualPrivateLinkServiceConnections(Arrays.asList(new PrivateLinkServiceConnection() .withPrivateLinkServiceId( "/subscriptions/subId/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); + .withGroupId("file") + .withMemberName("file") + .withPrivateIpAddress("192.168.0.5"))) + .withCustomNetworkInterfaceName("testPeNic"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsDeleteSamples.java index ffe816c85ec5c..41fc2ecc4e988 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class PrivateEndpointsDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/PrivateEndpointDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointDelete.json */ /** * Sample code: Delete private endpoint. @@ -18,7 +17,10 @@ public final class PrivateEndpointsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deletePrivateEndpoint(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPrivateEndpoints().delete("rg1", "testPe", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getPrivateEndpoints() + .delete("rg1", "testPe", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsGetByResourceGroupSamples.java index fa9598eaf393e..312f2f6826535 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsGetByResourceGroupSamples.java @@ -9,9 +9,7 @@ */ public final class PrivateEndpointsGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/PrivateEndpointGetWithASG. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointGetWithASG.json */ /** * Sample code: Get private endpoint with application security groups. @@ -20,13 +18,15 @@ public final class PrivateEndpointsGetByResourceGroupSamples { */ public static void getPrivateEndpointWithApplicationSecurityGroups(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPrivateEndpoints().getByResourceGroupWithResponse("rg1", "testPe", - null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getPrivateEndpoints() + .getByResourceGroupWithResponse("rg1", "testPe", null, com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * PrivateEndpointGetForManualApproval.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointGetForManualApproval.json */ /** * Sample code: Get private endpoint with manual approval connection. @@ -35,13 +35,15 @@ public final class PrivateEndpointsGetByResourceGroupSamples { */ public static void getPrivateEndpointWithManualApprovalConnection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPrivateEndpoints().getByResourceGroupWithResponse("rg1", "testPe", - null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getPrivateEndpoints() + .getByResourceGroupWithResponse("rg1", "testPe", null, com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/PrivateEndpointGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointGet.json */ /** * Sample code: Get private endpoint. @@ -49,7 +51,10 @@ public final class PrivateEndpointsGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getPrivateEndpoint(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPrivateEndpoints().getByResourceGroupWithResponse("rg1", "testPe", - null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getPrivateEndpoints() + .getByResourceGroupWithResponse("rg1", "testPe", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsListByResourceGroupSamples.java index 6cdb64eccc3ae..6c12f2eba324e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class PrivateEndpointsListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/PrivateEndpointList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointList.json */ /** * Sample code: List private endpoints in resource group. @@ -18,7 +17,10 @@ public final class PrivateEndpointsListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listPrivateEndpointsInResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPrivateEndpoints().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getPrivateEndpoints() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsListSamples.java index c2b6976089ab7..b91fe215bee27 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateEndpointsListSamples.java @@ -9,8 +9,7 @@ */ public final class PrivateEndpointsListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/PrivateEndpointListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateEndpointListAll.json */ /** * Sample code: List all private endpoints. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupSamples.java index 9fa152d128012..23f09494cc45c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupSamples.java @@ -11,8 +11,7 @@ */ public final class PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourceGroupSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * CheckPrivateLinkServiceVisibilityByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CheckPrivateLinkServiceVisibilityByResourceGroup.json */ /** * Sample code: Check private link service visibility. @@ -20,7 +19,10 @@ public final class PrivateLinkServicesCheckPrivateLinkServiceVisibilityByResourc * @param azure The entry point for accessing resource management APIs in Azure. */ public static void checkPrivateLinkServiceVisibility(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPrivateLinkServices() + azure.networks() + .manager() + .serviceClient() + .getPrivateLinkServices() .checkPrivateLinkServiceVisibilityByResourceGroup("westus", "rg1", new CheckPrivateLinkServiceVisibilityRequest() .withPrivateLinkServiceAlias("mypls.00000000-0000-0000-0000-000000000000.azure.privatelinkservice"), diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesCheckPrivateLinkServiceVisibilitySamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesCheckPrivateLinkServiceVisibilitySamples.java index e4cf67edaa551..79a76f29061c8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesCheckPrivateLinkServiceVisibilitySamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesCheckPrivateLinkServiceVisibilitySamples.java @@ -11,8 +11,7 @@ */ public final class PrivateLinkServicesCheckPrivateLinkServiceVisibilitySamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * CheckPrivateLinkServiceVisibility.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CheckPrivateLinkServiceVisibility.json */ /** * Sample code: Check private link service visibility. @@ -20,9 +19,13 @@ public final class PrivateLinkServicesCheckPrivateLinkServiceVisibilitySamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void checkPrivateLinkServiceVisibility(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPrivateLinkServices().checkPrivateLinkServiceVisibility("westus", - new CheckPrivateLinkServiceVisibilityRequest() - .withPrivateLinkServiceAlias("mypls.00000000-0000-0000-0000-000000000000.azure.privatelinkservice"), - com.azure.core.util.Context.NONE); + azure.networks() + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesCreateOrUpdateSamples.java index 700b010ad6fc6..41c4ed5c41cfa 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesCreateOrUpdateSamples.java @@ -19,8 +19,7 @@ */ public final class PrivateLinkServicesCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/PrivateLinkServiceCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateLinkServiceCreate.json */ /** * Sample code: Create private link service. @@ -28,12 +27,16 @@ public final class PrivateLinkServicesCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createPrivateLinkService(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPrivateLinkServices().createOrUpdate("rg1", "testPls", - new PrivateLinkServiceInner().withLocation("eastus") + azure.networks() + .manager() + .serviceClient() + .getPrivateLinkServices() + .createOrUpdate("rg1", "testPls", new PrivateLinkServiceInner().withLocation("eastus") .withLoadBalancerFrontendIpConfigurations(Arrays.asList(new FrontendIpConfigurationInner().withId( "/subscriptions/subid/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) + .withPrivateIpAddress("10.0.1.4") + .withPrivateIpAllocationMethod(IpAllocationMethod.STATIC) .withSubnet(new SubnetInner().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb")) .withPrivateIpAddressVersion(IpVersion.IPV4))) @@ -41,7 +44,6 @@ public static void createPrivateLinkService(com.azure.resourcemanager.AzureResou .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); + .withFqdns(Arrays.asList("fqdn1", "fqdn2", "fqdn3")), com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesDeletePrivateEndpointConnectionSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesDeletePrivateEndpointConnectionSamples.java index 72e9c371dcf96..543c207e0a996 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesDeletePrivateEndpointConnectionSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesDeletePrivateEndpointConnectionSamples.java @@ -9,8 +9,7 @@ */ public final class PrivateLinkServicesDeletePrivateEndpointConnectionSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * PrivateLinkServiceDeletePrivateEndpointConnection.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateLinkServiceDeletePrivateEndpointConnection.json */ /** * Sample code: delete private end point connection for a private link service. @@ -19,7 +18,10 @@ public final class PrivateLinkServicesDeletePrivateEndpointConnectionSamples { */ public static void deletePrivateEndPointConnectionForAPrivateLinkService(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPrivateLinkServices().deletePrivateEndpointConnection("rg1", - "testPls", "testPlePeConnection", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getPrivateLinkServices() + .deletePrivateEndpointConnection("rg1", "testPls", "testPlePeConnection", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesDeleteSamples.java index 41dac2c5b96dc..0db15cc51c134 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class PrivateLinkServicesDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/PrivateLinkServiceDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateLinkServiceDelete.json */ /** * Sample code: Delete private link service. @@ -18,7 +17,10 @@ public final class PrivateLinkServicesDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deletePrivateLinkService(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPrivateLinkServices().delete("rg1", "testPls", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getPrivateLinkServices() + .delete("rg1", "testPls", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesGetByResourceGroupSamples.java index 6b1f040167e6e..13761ff72c04a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class PrivateLinkServicesGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/PrivateLinkServiceGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateLinkServiceGet.json */ /** * Sample code: Get private link service. @@ -18,7 +17,10 @@ public final class PrivateLinkServicesGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getPrivateLinkService(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPrivateLinkServices().getByResourceGroupWithResponse("rg1", - "testPls", null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getPrivateLinkServices() + .getByResourceGroupWithResponse("rg1", "testPls", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesGetPrivateEndpointConnectionSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesGetPrivateEndpointConnectionSamples.java index 01d3d27b03f75..268a4254e4ead 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesGetPrivateEndpointConnectionSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesGetPrivateEndpointConnectionSamples.java @@ -9,8 +9,7 @@ */ public final class PrivateLinkServicesGetPrivateEndpointConnectionSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * PrivateLinkServiceGetPrivateEndpointConnection.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateLinkServiceGetPrivateEndpointConnection.json */ /** * Sample code: Get private end point connection. @@ -18,7 +17,11 @@ public final class PrivateLinkServicesGetPrivateEndpointConnectionSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getPrivateEndPointConnection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPrivateLinkServices().getPrivateEndpointConnectionWithResponse( - "rg1", "testPls", "testPlePeConnection", null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getPrivateLinkServices() + .getPrivateEndpointConnectionWithResponse("rg1", "testPls", "testPlePeConnection", null, + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListAutoApprovedPrivateLinkServicesByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListAutoApprovedPrivateLinkServicesByResourceGroupSamples.java index 717168c48796b..1cb20d14c31da 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListAutoApprovedPrivateLinkServicesByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListAutoApprovedPrivateLinkServicesByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class PrivateLinkServicesListAutoApprovedPrivateLinkServicesByResourceGroupSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * AutoApprovedPrivateLinkServicesResourceGroupGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AutoApprovedPrivateLinkServicesResourceGroupGet.json */ /** * Sample code: Get list of private link service id that can be linked to a private end point with auto approved. @@ -19,7 +18,10 @@ public final class PrivateLinkServicesListAutoApprovedPrivateLinkServicesByResou */ public static void getListOfPrivateLinkServiceIdThatCanBeLinkedToAPrivateEndPointWithAutoApproved( com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPrivateLinkServices() + azure.networks() + .manager() + .serviceClient() + .getPrivateLinkServices() .listAutoApprovedPrivateLinkServicesByResourceGroup("regionName", "rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListAutoApprovedPrivateLinkServicesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListAutoApprovedPrivateLinkServicesSamples.java index 2a9374052195a..c8866e51ec5b2 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListAutoApprovedPrivateLinkServicesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListAutoApprovedPrivateLinkServicesSamples.java @@ -9,8 +9,7 @@ */ public final class PrivateLinkServicesListAutoApprovedPrivateLinkServicesSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * AutoApprovedPrivateLinkServicesGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AutoApprovedPrivateLinkServicesGet.json */ /** * Sample code: Get list of private link service id that can be linked to a private end point with auto approved. @@ -19,7 +18,10 @@ public final class PrivateLinkServicesListAutoApprovedPrivateLinkServicesSamples */ public static void getListOfPrivateLinkServiceIdThatCanBeLinkedToAPrivateEndPointWithAutoApproved( com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPrivateLinkServices() + azure.networks() + .manager() + .serviceClient() + .getPrivateLinkServices() .listAutoApprovedPrivateLinkServices("regionName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListByResourceGroupSamples.java index bb1b1cfe7e48b..e481457a03e5f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class PrivateLinkServicesListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/PrivateLinkServiceList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateLinkServiceList.json */ /** * Sample code: List private link service in resource group. @@ -18,7 +17,10 @@ public final class PrivateLinkServicesListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listPrivateLinkServiceInResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPrivateLinkServices().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getPrivateLinkServices() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListPrivateEndpointConnectionsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListPrivateEndpointConnectionsSamples.java index 1ee1fe84113a1..dfab53dfc3c80 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListPrivateEndpointConnectionsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListPrivateEndpointConnectionsSamples.java @@ -9,8 +9,7 @@ */ public final class PrivateLinkServicesListPrivateEndpointConnectionsSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * PrivateLinkServiceListPrivateEndpointConnection.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateLinkServiceListPrivateEndpointConnection.json */ /** * Sample code: List private link service in resource group. @@ -18,7 +17,10 @@ public final class PrivateLinkServicesListPrivateEndpointConnectionsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listPrivateLinkServiceInResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPrivateLinkServices().listPrivateEndpointConnections("rg1", - "testPls", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getPrivateLinkServices() + .listPrivateEndpointConnections("rg1", "testPls", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListSamples.java index f9826fd207f23..ee21a7bb683bf 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesListSamples.java @@ -9,9 +9,7 @@ */ public final class PrivateLinkServicesListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/PrivateLinkServiceListAll. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateLinkServiceListAll.json */ /** * Sample code: List all private list service. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesUpdatePrivateEndpointConnectionSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesUpdatePrivateEndpointConnectionSamples.java index 6fa30b6b0bea0..6fe9e2a960ce0 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesUpdatePrivateEndpointConnectionSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PrivateLinkServicesUpdatePrivateEndpointConnectionSamples.java @@ -12,8 +12,7 @@ */ public final class PrivateLinkServicesUpdatePrivateEndpointConnectionSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * PrivateLinkServiceUpdatePrivateEndpointConnection.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PrivateLinkServiceUpdatePrivateEndpointConnection.json */ /** * Sample code: approve or reject private end point connection for a private link service. @@ -22,11 +21,15 @@ public final class PrivateLinkServicesUpdatePrivateEndpointConnectionSamples { */ public static void approveOrRejectPrivateEndPointConnectionForAPrivateLinkService( com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPrivateLinkServices() + azure.networks() + .manager() + .serviceClient() + .getPrivateLinkServices() .updatePrivateEndpointConnectionWithResponse("rg1", "testPls", "testPlePeConnection", new PrivateEndpointConnectionInner().withName("testPlePeConnection") - .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState() - .withStatus("Approved").withDescription("approved it for some reason.")), + .withPrivateLinkServiceConnectionState( + new PrivateLinkServiceConnectionState().withStatus("Approved") + .withDescription("approved it for some reason.")), com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesCreateOrUpdateSamples.java index 98632fefe1112..841799198aba8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesCreateOrUpdateSamples.java @@ -18,8 +18,7 @@ */ public final class PublicIpAddressesCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/PublicIpAddressCreateDns.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpAddressCreateDns.json */ /** * Sample code: Create public IP address DNS. @@ -27,15 +26,18 @@ public final class PublicIpAddressesCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createPublicIPAddressDNS(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPublicIpAddresses().createOrUpdate("rg1", "test-ip", - new PublicIpAddressInner().withLocation("eastus").withDnsSettings( - new PublicIpAddressDnsSettings().withDomainNameLabel("dnslbl")), - com.azure.core.util.Context.NONE); + azure.networks() + .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: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * PublicIpAddressCreateCustomizedValues.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpAddressCreateCustomizedValues.json */ /** * Sample code: Create public IP address allocation method. @@ -43,19 +45,22 @@ public static void createPublicIPAddressDNS(com.azure.resourcemanager.AzureResou * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createPublicIPAddressAllocationMethod(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/PublicIpAddressCreateDefaults - * .json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpAddressCreateDefaults.json */ /** * Sample code: Create public IP address defaults. @@ -63,13 +68,16 @@ public static void createPublicIPAddressAllocationMethod(com.azure.resourcemanag * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createPublicIPAddressDefaults(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPublicIpAddresses().createOrUpdate("rg1", "test-ip", - new PublicIpAddressInner().withLocation("eastus"), com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getPublicIpAddresses() + .createOrUpdate("rg1", "test-ip", new PublicIpAddressInner().withLocation("eastus"), + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * PublicIpAddressCreateDnsWithDomainNameLabelScope.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpAddressCreateDnsWithDomainNameLabelScope.json */ /** * Sample code: Create public IP address DNS with Domain Name Label Scope. @@ -78,10 +86,14 @@ public static void createPublicIPAddressDefaults(com.azure.resourcemanager.Azure */ public static void createPublicIPAddressDNSWithDomainNameLabelScope(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesDdosProtectionStatusSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesDdosProtectionStatusSamples.java index 9863a8f739a01..3d790b8eee866 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesDdosProtectionStatusSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesDdosProtectionStatusSamples.java @@ -9,8 +9,7 @@ */ public final class PublicIpAddressesDdosProtectionStatusSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * PublicIpAddressGetDdosProtectionStatus.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpAddressGetDdosProtectionStatus.json */ /** * Sample code: Get Ddos Protection Status of a Public IP Address. @@ -18,7 +17,10 @@ public final class PublicIpAddressesDdosProtectionStatusSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getDdosProtectionStatusOfAPublicIPAddress(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPublicIpAddresses().ddosProtectionStatus("rg1", "test-pip", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getPublicIpAddresses() + .ddosProtectionStatus("rg1", "test-pip", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesDeleteSamples.java index debb4806c880b..79ce4bb7c7046 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class PublicIpAddressesDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/PublicIpAddressDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpAddressDelete.json */ /** * Sample code: Delete public IP address. @@ -18,7 +17,10 @@ public final class PublicIpAddressesDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deletePublicIPAddress(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPublicIpAddresses().delete("rg1", "test-ip", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getPublicIpAddresses() + .delete("rg1", "test-ip", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesGetByResourceGroupSamples.java index ff94bc990970d..a07094f0824d6 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class PublicIpAddressesGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/PublicIpAddressGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpAddressGet.json */ /** * Sample code: Get public IP address. @@ -18,7 +17,10 @@ public final class PublicIpAddressesGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getPublicIPAddress(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPublicIpAddresses().getByResourceGroupWithResponse("rg1", - "testDNS-ip", null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getPublicIpAddresses() + .getByResourceGroupWithResponse("rg1", "testDNS-ip", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesGetCloudServicePublicIpAddressSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesGetCloudServicePublicIpAddressSamples.java index 01451cf798451..0e0777bc91de8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesGetCloudServicePublicIpAddressSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesGetCloudServicePublicIpAddressSamples.java @@ -9,8 +9,7 @@ */ public final class PublicIpAddressesGetCloudServicePublicIpAddressSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/CloudServicePublicIpGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CloudServicePublicIpGet.json */ /** * Sample code: GetVMSSPublicIP. @@ -18,7 +17,11 @@ public final class PublicIpAddressesGetCloudServicePublicIpAddressSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getVMSSPublicIP(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPublicIpAddresses().getCloudServicePublicIpAddressWithResponse( - "cs-tester", "cs1", "Test_VM_0", "nic1", "ip1", "pub1", null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getPublicIpAddresses() + .getCloudServicePublicIpAddressWithResponse("cs-tester", "cs1", "Test_VM_0", "nic1", "ip1", "pub1", null, + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesGetVirtualMachineScaleSetPublicIpAddressSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesGetVirtualMachineScaleSetPublicIpAddressSamples.java index 4bc5161fdb648..3e26b36dd1dee 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesGetVirtualMachineScaleSetPublicIpAddressSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesGetVirtualMachineScaleSetPublicIpAddressSamples.java @@ -9,8 +9,7 @@ */ public final class PublicIpAddressesGetVirtualMachineScaleSetPublicIpAddressSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VmssPublicIpGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VmssPublicIpGet.json */ /** * Sample code: GetVMSSPublicIP. @@ -18,7 +17,10 @@ public final class PublicIpAddressesGetVirtualMachineScaleSetPublicIpAddressSamp * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getVMSSPublicIP(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPublicIpAddresses() + azure.networks() + .manager() + .serviceClient() + .getPublicIpAddresses() .getVirtualMachineScaleSetPublicIpAddressWithResponse("vmss-tester", "vmss1", "1", "nic1", "ip1", "pub1", null, com.azure.core.util.Context.NONE); } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListByResourceGroupSamples.java index 1f74c5fad3d98..512de265cd54f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class PublicIpAddressesListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/PublicIpAddressList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpAddressList.json */ /** * Sample code: List resource group public IP addresses. @@ -18,7 +17,10 @@ public final class PublicIpAddressesListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listResourceGroupPublicIPAddresses(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPublicIpAddresses().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getPublicIpAddresses() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListCloudServicePublicIpAddressesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListCloudServicePublicIpAddressesSamples.java index 83d076d6b7766..a83d6420a7f01 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListCloudServicePublicIpAddressesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListCloudServicePublicIpAddressesSamples.java @@ -9,9 +9,7 @@ */ public final class PublicIpAddressesListCloudServicePublicIpAddressesSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/CloudServicePublicIpListAll. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CloudServicePublicIpListAll.json */ /** * Sample code: ListVMSSPublicIP. @@ -19,7 +17,10 @@ public final class PublicIpAddressesListCloudServicePublicIpAddressesSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listVMSSPublicIP(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPublicIpAddresses().listCloudServicePublicIpAddresses("cs-tester", - "cs1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getPublicIpAddresses() + .listCloudServicePublicIpAddresses("cs-tester", "cs1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListCloudServiceRoleInstancePublicIpAddressesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListCloudServiceRoleInstancePublicIpAddressesSamples.java index d8fd5f93909c9..2776fb4691cf5 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListCloudServiceRoleInstancePublicIpAddressesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListCloudServiceRoleInstancePublicIpAddressesSamples.java @@ -9,8 +9,7 @@ */ public final class PublicIpAddressesListCloudServiceRoleInstancePublicIpAddressesSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * CloudServiceRoleInstancePublicIpList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CloudServiceRoleInstancePublicIpList.json */ /** * Sample code: ListVMSSVMPublicIP. @@ -18,7 +17,11 @@ public final class PublicIpAddressesListCloudServiceRoleInstancePublicIpAddresse * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listVMSSVMPublicIP(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPublicIpAddresses().listCloudServiceRoleInstancePublicIpAddresses( - "cs-tester", "cs1", "Test_VM_0", "nic1", "ip1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getPublicIpAddresses() + .listCloudServiceRoleInstancePublicIpAddresses("cs-tester", "cs1", "Test_VM_0", "nic1", "ip1", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListSamples.java index ace1223fab772..aa72eb21b9362 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListSamples.java @@ -9,8 +9,7 @@ */ public final class PublicIpAddressesListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/PublicIpAddressListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpAddressListAll.json */ /** * Sample code: List all public IP addresses. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListVirtualMachineScaleSetPublicIpAddressesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListVirtualMachineScaleSetPublicIpAddressesSamples.java index 056d51cee42ab..5be6e44f374d0 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListVirtualMachineScaleSetPublicIpAddressesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListVirtualMachineScaleSetPublicIpAddressesSamples.java @@ -9,8 +9,7 @@ */ public final class PublicIpAddressesListVirtualMachineScaleSetPublicIpAddressesSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VmssPublicIpListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VmssPublicIpListAll.json */ /** * Sample code: ListVMSSPublicIP. @@ -18,7 +17,10 @@ public final class PublicIpAddressesListVirtualMachineScaleSetPublicIpAddressesS * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listVMSSPublicIP(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPublicIpAddresses() + azure.networks() + .manager() + .serviceClient() + .getPublicIpAddresses() .listVirtualMachineScaleSetPublicIpAddresses("vmss-tester", "vmss1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListVirtualMachineScaleSetVMPublicIpAddressesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListVirtualMachineScaleSetVMPublicIpAddressesSamples.java index 69d570532095b..fd01e5e71bef5 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListVirtualMachineScaleSetVMPublicIpAddressesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesListVirtualMachineScaleSetVMPublicIpAddressesSamples.java @@ -9,8 +9,7 @@ */ public final class PublicIpAddressesListVirtualMachineScaleSetVMPublicIpAddressesSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VmssVmPublicIpList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VmssVmPublicIpList.json */ /** * Sample code: ListVMSSVMPublicIP. @@ -18,7 +17,11 @@ public final class PublicIpAddressesListVirtualMachineScaleSetVMPublicIpAddresse * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listVMSSVMPublicIP(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPublicIpAddresses().listVirtualMachineScaleSetVMPublicIpAddresses( - "vmss-tester", "vmss1", "1", "nic1", "ip1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getPublicIpAddresses() + .listVirtualMachineScaleSetVMPublicIpAddresses("vmss-tester", "vmss1", "1", "nic1", "ip1", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesUpdateTagsSamples.java index 003ae9cbd0333..75a6036e458ed 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpAddressesUpdateTagsSamples.java @@ -13,9 +13,7 @@ */ public final class PublicIpAddressesUpdateTagsSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/PublicIpAddressUpdateTags. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpAddressUpdateTags.json */ /** * Sample code: Update public IP address tags. @@ -23,8 +21,12 @@ public final class PublicIpAddressesUpdateTagsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updatePublicIPAddressTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPublicIpAddresses().updateTagsWithResponse("rg1", "test-ip", - new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesCreateOrUpdateSamples.java index f65dbe2352987..b7bac550c52ff 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesCreateOrUpdateSamples.java @@ -15,9 +15,7 @@ */ public final class PublicIpPrefixesCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/PublicIpPrefixCreateDefaults. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpPrefixCreateDefaults.json */ /** * Sample code: Create public IP prefix defaults. @@ -25,15 +23,19 @@ public final class PublicIpPrefixesCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createPublicIPPrefixDefaults(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * PublicIpPrefixCreateCustomizedValues.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpPrefixCreateCustomizedValues.json */ /** * Sample code: Create public IP prefix allocation method. @@ -41,11 +43,16 @@ public static void createPublicIPPrefixDefaults(com.azure.resourcemanager.AzureR * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createPublicIPPrefixAllocationMethod(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesDeleteSamples.java index 1ff7fc9196536..4e50e516d4db3 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class PublicIpPrefixesDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/PublicIpPrefixDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpPrefixDelete.json */ /** * Sample code: Delete public IP prefix. @@ -18,7 +17,10 @@ public final class PublicIpPrefixesDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deletePublicIPPrefix(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPublicIpPrefixes().delete("rg1", "test-ipprefix", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getPublicIpPrefixes() + .delete("rg1", "test-ipprefix", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesGetByResourceGroupSamples.java index 397fb0cab84b1..4aceaa2ff7caf 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class PublicIpPrefixesGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/PublicIpPrefixGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpPrefixGet.json */ /** * Sample code: Get public IP prefix. @@ -18,7 +17,10 @@ public final class PublicIpPrefixesGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getPublicIPPrefix(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPublicIpPrefixes().getByResourceGroupWithResponse("rg1", - "test-ipprefix", null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getPublicIpPrefixes() + .getByResourceGroupWithResponse("rg1", "test-ipprefix", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesListByResourceGroupSamples.java index a7390eb8f7642..f93ea7b758c58 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class PublicIpPrefixesListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/PublicIpPrefixList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpPrefixList.json */ /** * Sample code: List resource group public IP prefixes. @@ -18,7 +17,10 @@ public final class PublicIpPrefixesListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listResourceGroupPublicIPPrefixes(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPublicIpPrefixes().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getPublicIpPrefixes() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesListSamples.java index 472b6c51aa1f7..2c9d4c41ee6a6 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesListSamples.java @@ -9,8 +9,7 @@ */ public final class PublicIpPrefixesListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/PublicIpPrefixListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpPrefixListAll.json */ /** * Sample code: List all public IP prefixes. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesUpdateTagsSamples.java index 63632f653fd7e..59e221987c9ed 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/PublicIpPrefixesUpdateTagsSamples.java @@ -13,8 +13,7 @@ */ public final class PublicIpPrefixesUpdateTagsSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/PublicIpPrefixUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/PublicIpPrefixUpdateTags.json */ /** * Sample code: Update public IP prefix tags. @@ -22,8 +21,12 @@ public final class PublicIpPrefixesUpdateTagsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updatePublicIPPrefixTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getPublicIpPrefixes().updateTagsWithResponse("rg1", "test-ipprefix", - new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ResourceNavigationLinksListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ResourceNavigationLinksListSamples.java index 7cbc9608b32cf..005095c6ab334 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ResourceNavigationLinksListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ResourceNavigationLinksListSamples.java @@ -9,8 +9,7 @@ */ public final class ResourceNavigationLinksListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGetResourceNavigationLinks.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGetResourceNavigationLinks.json */ /** * Sample code: Get Resource Navigation Links. @@ -18,7 +17,10 @@ public final class ResourceNavigationLinksListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getResourceNavigationLinks(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getResourceNavigationLinks().listWithResponse("rg1", "vnet", - "subnet", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getResourceNavigationLinks() + .listWithResponse("rg1", "vnet", "subnet", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFilterRulesCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFilterRulesCreateOrUpdateSamples.java index 76b7cd3ca7be1..045af3ad3ead9 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFilterRulesCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFilterRulesCreateOrUpdateSamples.java @@ -14,8 +14,7 @@ */ public final class RouteFilterRulesCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/RouteFilterRuleCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteFilterRuleCreate.json */ /** * Sample code: RouteFilterRuleCreate. @@ -23,9 +22,14 @@ public final class RouteFilterRulesCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void routeFilterRuleCreate(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFilterRulesDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFilterRulesDeleteSamples.java index b6acdced5f3f7..8c290caa7ad5e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFilterRulesDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFilterRulesDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class RouteFilterRulesDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/RouteFilterRuleDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteFilterRuleDelete.json */ /** * Sample code: RouteFilterRuleDelete. @@ -18,7 +17,10 @@ public final class RouteFilterRulesDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void routeFilterRuleDelete(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getRouteFilterRules().delete("rg1", "filterName", "ruleName", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getRouteFilterRules() + .delete("rg1", "filterName", "ruleName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFilterRulesGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFilterRulesGetSamples.java index 37eab483fbeeb..839904f3e378a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFilterRulesGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFilterRulesGetSamples.java @@ -9,8 +9,7 @@ */ public final class RouteFilterRulesGetSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/RouteFilterRuleGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteFilterRuleGet.json */ /** * Sample code: RouteFilterRuleGet. @@ -18,7 +17,10 @@ public final class RouteFilterRulesGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void routeFilterRuleGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getRouteFilterRules().getWithResponse("rg1", "filterName", - "filterName", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getRouteFilterRules() + .getWithResponse("rg1", "filterName", "filterName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFilterRulesListByRouteFilterSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFilterRulesListByRouteFilterSamples.java index 80beca604b612..6d0df30c8fc52 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFilterRulesListByRouteFilterSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFilterRulesListByRouteFilterSamples.java @@ -9,8 +9,7 @@ */ public final class RouteFilterRulesListByRouteFilterSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * RouteFilterRuleListByRouteFilter.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteFilterRuleListByRouteFilter.json */ /** * Sample code: RouteFilterRuleListByRouteFilter. @@ -18,7 +17,10 @@ public final class RouteFilterRulesListByRouteFilterSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void routeFilterRuleListByRouteFilter(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getRouteFilterRules().listByRouteFilter("rg1", "filterName", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getRouteFilterRules() + .listByRouteFilter("rg1", "filterName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersCreateOrUpdateSamples.java index c3dea504e7525..67cb18c9e1f2b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersCreateOrUpdateSamples.java @@ -17,8 +17,7 @@ */ public final class RouteFiltersCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/RouteFilterCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteFilterCreate.json */ /** * Sample code: RouteFilterCreate. @@ -26,12 +25,18 @@ public final class RouteFiltersCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void routeFilterCreate(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersDeleteSamples.java index 22bbccb149d05..d1d41769d5064 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class RouteFiltersDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/RouteFilterDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteFilterDelete.json */ /** * Sample code: RouteFilterDelete. @@ -18,7 +17,10 @@ public final class RouteFiltersDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void routeFilterDelete(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getRouteFilters().delete("rg1", "filterName", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getRouteFilters() + .delete("rg1", "filterName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersGetByResourceGroupSamples.java index 1ac91d0551245..cd492276aac97 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class RouteFiltersGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/RouteFilterGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteFilterGet.json */ /** * Sample code: RouteFilterGet. @@ -18,7 +17,10 @@ public final class RouteFiltersGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void routeFilterGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getRouteFilters().getByResourceGroupWithResponse("rg1", "filterName", - null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getRouteFilters() + .getByResourceGroupWithResponse("rg1", "filterName", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersListByResourceGroupSamples.java index 35d305a2a8d89..53a5a72d26989 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class RouteFiltersListByResourceGroupSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * RouteFilterListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteFilterListByResourceGroup.json */ /** * Sample code: RouteFilterListByResourceGroup. @@ -18,7 +17,10 @@ public final class RouteFiltersListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void routeFilterListByResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getRouteFilters().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getRouteFilters() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersListSamples.java index dfbe86c1a000f..7fa216ddf8f43 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersListSamples.java @@ -9,8 +9,7 @@ */ public final class RouteFiltersListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/RouteFilterList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteFilterList.json */ /** * Sample code: RouteFilterList. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersUpdateTagsSamples.java index 4be3ebe84c966..8b9358453c58c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteFiltersUpdateTagsSamples.java @@ -13,8 +13,7 @@ */ public final class RouteFiltersUpdateTagsSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/RouteFilterUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteFilterUpdateTags.json */ /** * Sample code: Update route filter tags. @@ -22,8 +21,12 @@ public final class RouteFiltersUpdateTagsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updateRouteFilterTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getRouteFilters().updateTagsWithResponse("rg1", "filterName", - new TagsObject().withTags(mapOf("key1", "fakeTokenPlaceholder")), com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getRouteFilters() + .updateTagsWithResponse("rg1", "filterName", + new TagsObject().withTags(mapOf("key1", "fakeTokenPlaceholder")), com.azure.core.util.Context.NONE); } // Use "Map.of" if available diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteMapsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteMapsCreateOrUpdateSamples.java index a6cee93b97ff8..a91d6705e3473 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteMapsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteMapsCreateOrUpdateSamples.java @@ -19,8 +19,7 @@ */ public final class RouteMapsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/RouteMapPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteMapPut.json */ /** * Sample code: RouteMapPut. @@ -28,19 +27,24 @@ public final class RouteMapsCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void routeMapPut(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getRouteMaps().createOrUpdate("rg1", "virtualHub1", "routeMap1", - new RouteMapInner().withAssociatedInboundConnections(Arrays.asList( - "/subscriptions/subid/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); + azure.networks() + .manager() + .serviceClient() + .getRouteMaps() + .createOrUpdate("rg1", "virtualHub1", "routeMap1", + new RouteMapInner().withAssociatedInboundConnections(Arrays.asList( + "/subscriptions/subid/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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteMapsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteMapsDeleteSamples.java index 89c734157e2c5..ebbad96e9d318 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteMapsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteMapsDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class RouteMapsDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/RouteMapDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteMapDelete.json */ /** * Sample code: RouteMapDelete. @@ -18,7 +17,10 @@ public final class RouteMapsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void routeMapDelete(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getRouteMaps().delete("rg1", "virtualHub1", "routeMap1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getRouteMaps() + .delete("rg1", "virtualHub1", "routeMap1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteMapsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteMapsGetSamples.java index 00c887f7794f2..245dd9e213af4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteMapsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteMapsGetSamples.java @@ -9,8 +9,7 @@ */ public final class RouteMapsGetSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/RouteMapGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteMapGet.json */ /** * Sample code: RouteMapGet. @@ -18,7 +17,10 @@ public final class RouteMapsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void routeMapGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getRouteMaps().getWithResponse("rg1", "virtualHub1", "routeMap1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getRouteMaps() + .getWithResponse("rg1", "virtualHub1", "routeMap1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteMapsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteMapsListSamples.java index 8790685d702f8..9f36d4c669f77 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteMapsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteMapsListSamples.java @@ -9,8 +9,7 @@ */ public final class RouteMapsListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/RouteMapList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteMapList.json */ /** * Sample code: RouteMapList. @@ -18,7 +17,10 @@ public final class RouteMapsListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void routeMapList(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getRouteMaps().list("rg1", "virtualHub1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getRouteMaps() + .list("rg1", "virtualHub1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesCreateOrUpdateSamples.java index 2cede39d5adb9..7ca1b2b9d0fd6 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesCreateOrUpdateSamples.java @@ -14,8 +14,7 @@ */ public final class RouteTablesCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/RouteTableCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteTableCreate.json */ /** * Sample code: Create route table. @@ -23,14 +22,16 @@ public final class RouteTablesCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createRouteTable(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getRouteTables().createOrUpdate("rg1", "testrt", - new RouteTableInner().withLocation("westus"), com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getRouteTables() + .createOrUpdate("rg1", "testrt", new RouteTableInner().withLocation("westus"), + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/RouteTableCreateWithRoute. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteTableCreateWithRoute.json */ /** * Sample code: Create route table with route. @@ -38,11 +39,16 @@ public static void createRouteTable(com.azure.resourcemanager.AzureResourceManag * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createRouteTableWithRoute(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesDeleteSamples.java index 608eaa400a14a..8291969262108 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class RouteTablesDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/RouteTableDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteTableDelete.json */ /** * Sample code: Delete route table. @@ -18,7 +17,10 @@ public final class RouteTablesDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteRouteTable(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getRouteTables().delete("rg1", "testrt", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getRouteTables() + .delete("rg1", "testrt", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesGetByResourceGroupSamples.java index 334e314aab128..d67ddc8f2ab30 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class RouteTablesGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/RouteTableGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteTableGet.json */ /** * Sample code: Get route table. @@ -18,7 +17,10 @@ public final class RouteTablesGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getRouteTable(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getRouteTables().getByResourceGroupWithResponse("rg1", "testrt", - null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getRouteTables() + .getByResourceGroupWithResponse("rg1", "testrt", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesListByResourceGroupSamples.java index 48f769f067db2..afdec5a3f522c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class RouteTablesListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/RouteTableList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteTableList.json */ /** * Sample code: List route tables in resource group. @@ -18,7 +17,10 @@ public final class RouteTablesListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listRouteTablesInResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getRouteTables().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getRouteTables() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesListSamples.java index defe804b6a5a6..7cc07b55eb471 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesListSamples.java @@ -9,8 +9,7 @@ */ public final class RouteTablesListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/RouteTableListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteTableListAll.json */ /** * Sample code: List all route tables. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesUpdateTagsSamples.java index a0576fdb0f5c1..b91a2f092d559 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RouteTablesUpdateTagsSamples.java @@ -13,8 +13,7 @@ */ public final class RouteTablesUpdateTagsSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/RouteTableUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteTableUpdateTags.json */ /** * Sample code: Update route table tags. @@ -22,8 +21,12 @@ public final class RouteTablesUpdateTagsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updateRouteTableTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getRouteTables().updateTagsWithResponse("rg1", "testrt", - new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RoutesCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RoutesCreateOrUpdateSamples.java index c338739ff4534..2ad1645f199d2 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RoutesCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RoutesCreateOrUpdateSamples.java @@ -12,8 +12,7 @@ */ public final class RoutesCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/RouteTableRouteCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteTableRouteCreate.json */ /** * Sample code: Create route. @@ -21,8 +20,11 @@ public final class RoutesCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createRoute(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RoutesDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RoutesDeleteSamples.java index 957ac952bf238..645080d8843d0 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RoutesDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RoutesDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class RoutesDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/RouteTableRouteDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteTableRouteDelete.json */ /** * Sample code: Delete route. @@ -18,7 +17,10 @@ public final class RoutesDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteRoute(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getRoutes().delete("rg1", "testrt", "route1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getRoutes() + .delete("rg1", "testrt", "route1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RoutesGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RoutesGetSamples.java index a2dcc1ec9538f..a76f9683c54a1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RoutesGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RoutesGetSamples.java @@ -9,8 +9,7 @@ */ public final class RoutesGetSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/RouteTableRouteGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteTableRouteGet.json */ /** * Sample code: Get route. @@ -18,7 +17,10 @@ public final class RoutesGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getRoute(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getRoutes().getWithResponse("rg1", "testrt", "route1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getRoutes() + .getWithResponse("rg1", "testrt", "route1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RoutesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RoutesListSamples.java index 6a08808644b09..149fad99ff8d8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RoutesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RoutesListSamples.java @@ -9,8 +9,7 @@ */ public final class RoutesListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/RouteTableRouteList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RouteTableRouteList.json */ /** * Sample code: List routes. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RoutingIntentCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RoutingIntentCreateOrUpdateSamples.java index 7f09a210d0ae4..46956edd601f5 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RoutingIntentCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RoutingIntentCreateOrUpdateSamples.java @@ -13,8 +13,7 @@ */ public final class RoutingIntentCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/RoutingIntentPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RoutingIntentPut.json */ /** * Sample code: RouteTablePut. @@ -22,13 +21,19 @@ public final class RoutingIntentCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void routeTablePut(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getRoutingIntents().createOrUpdate("rg1", "virtualHub1", "Intent1", - new RoutingIntentInner().withRoutingPolicies(Arrays.asList( - new RoutingPolicy().withName("InternetTraffic").withDestinations(Arrays.asList("Internet")).withNextHop( - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azfw1"), - new RoutingPolicy().withName("PrivateTrafficPolicy").withDestinations(Arrays.asList("PrivateTraffic")) + azure.networks() + .manager() + .serviceClient() + .getRoutingIntents() + .createOrUpdate("rg1", "virtualHub1", "Intent1", new RoutingIntentInner().withRoutingPolicies(Arrays.asList( + new RoutingPolicy().withName("InternetTraffic") + .withDestinations(Arrays.asList("Internet")) + .withNextHop( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azfw1"), + new RoutingPolicy().withName("PrivateTrafficPolicy") + .withDestinations(Arrays.asList("PrivateTraffic")) .withNextHop( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/azureFirewalls/azfw1"))), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RoutingIntentDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RoutingIntentDeleteSamples.java index 90433eb8cac7b..60eff2d639838 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RoutingIntentDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RoutingIntentDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class RoutingIntentDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/RoutingIntentDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RoutingIntentDelete.json */ /** * Sample code: RouteTableDelete. @@ -18,7 +17,10 @@ public final class RoutingIntentDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void routeTableDelete(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getRoutingIntents().delete("rg1", "virtualHub1", "Intent1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getRoutingIntents() + .delete("rg1", "virtualHub1", "Intent1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RoutingIntentGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RoutingIntentGetSamples.java index d6d6f4d580de8..4062609a07853 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RoutingIntentGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RoutingIntentGetSamples.java @@ -9,8 +9,7 @@ */ public final class RoutingIntentGetSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/RoutingIntentGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RoutingIntentGet.json */ /** * Sample code: RouteTableGet. @@ -18,7 +17,10 @@ public final class RoutingIntentGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void routeTableGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getRoutingIntents().getWithResponse("rg1", "virtualHub1", "Intent1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getRoutingIntents() + .getWithResponse("rg1", "virtualHub1", "Intent1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RoutingIntentListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RoutingIntentListSamples.java index f36698ed9a772..44af93755b763 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RoutingIntentListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/RoutingIntentListSamples.java @@ -9,8 +9,7 @@ */ public final class RoutingIntentListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/RoutingIntentList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/RoutingIntentList.json */ /** * Sample code: RoutingIntentList. @@ -18,7 +17,10 @@ public final class RoutingIntentListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void routingIntentList(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getRoutingIntents().list("rg1", "virtualHub1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getRoutingIntents() + .list("rg1", "virtualHub1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ScopeConnectionsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ScopeConnectionsCreateOrUpdateSamples.java index f91266fef7978..3432140205b35 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ScopeConnectionsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ScopeConnectionsCreateOrUpdateSamples.java @@ -11,8 +11,7 @@ */ public final class ScopeConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkManagerScopeConnectionPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerScopeConnectionPut.json */ /** * Sample code: Create or Update Network Manager Scope Connection. @@ -21,11 +20,14 @@ public final class ScopeConnectionsCreateOrUpdateSamples { */ public static void createOrUpdateNetworkManagerScopeConnection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ScopeConnectionsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ScopeConnectionsDeleteSamples.java index 9c94f2c51a709..c852236398a4e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ScopeConnectionsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ScopeConnectionsDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class ScopeConnectionsDeleteSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkManagerScopeConnectionDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerScopeConnectionDelete.json */ /** * Sample code: Delete Network Manager Scope Connection. @@ -18,7 +17,10 @@ public final class ScopeConnectionsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteNetworkManagerScopeConnection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getScopeConnections().deleteWithResponse("rg1", "testNetworkManager", - "TestScopeConnection", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getScopeConnections() + .deleteWithResponse("rg1", "testNetworkManager", "TestScopeConnection", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ScopeConnectionsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ScopeConnectionsGetSamples.java index 8d13053ec17b8..dde9c19ef3677 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ScopeConnectionsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ScopeConnectionsGetSamples.java @@ -9,8 +9,7 @@ */ public final class ScopeConnectionsGetSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkManagerScopeConnectionGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerScopeConnectionGet.json */ /** * Sample code: Get Network Manager Scope Connection. @@ -18,7 +17,10 @@ public final class ScopeConnectionsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getNetworkManagerScopeConnection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getScopeConnections().getWithResponse("rg1", "testNetworkManager", - "TestScopeConnection", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getScopeConnections() + .getWithResponse("rg1", "testNetworkManager", "TestScopeConnection", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ScopeConnectionsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ScopeConnectionsListSamples.java index c07b279514fdd..c8f9fcbdf7296 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ScopeConnectionsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ScopeConnectionsListSamples.java @@ -9,8 +9,7 @@ */ public final class ScopeConnectionsListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkManagerScopeConnectionList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerScopeConnectionList.json */ /** * Sample code: List Network Manager Scope Connection. @@ -18,7 +17,10 @@ public final class ScopeConnectionsListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listNetworkManagerScopeConnection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getScopeConnections().list("rg1", "testNetworkManager", null, null, - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getScopeConnections() + .list("rg1", "testNetworkManager", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityAdminConfigurationsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityAdminConfigurationsCreateOrUpdateSamples.java index 5d3075feb86ed..edd012424eb21 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityAdminConfigurationsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityAdminConfigurationsCreateOrUpdateSamples.java @@ -13,8 +13,7 @@ */ public final class SecurityAdminConfigurationsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkManagerSecurityAdminConfigurationPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerSecurityAdminConfigurationPut.json */ /** * Sample code: Create network manager security admin configuration. @@ -23,10 +22,13 @@ public final class SecurityAdminConfigurationsCreateOrUpdateSamples { */ public static void createNetworkManagerSecurityAdminConfiguration(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getSecurityAdminConfigurations().createOrUpdateWithResponse("rg1", - "testNetworkManager", "myTestSecurityConfig", - new SecurityAdminConfigurationInner().withDescription("A sample policy") - .withApplyOnNetworkIntentPolicyBasedServices(Arrays.asList(NetworkIntentPolicyBasedService.NONE)), - com.azure.core.util.Context.NONE); + azure.networks() + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityAdminConfigurationsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityAdminConfigurationsDeleteSamples.java index 251f0d743b7b2..b6a7cdd2f0f77 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityAdminConfigurationsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityAdminConfigurationsDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class SecurityAdminConfigurationsDeleteSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkManagerSecurityAdminConfigurationDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerSecurityAdminConfigurationDelete.json */ /** * Sample code: Delete network manager security admin configuration. @@ -19,7 +18,10 @@ public final class SecurityAdminConfigurationsDeleteSamples { */ public static void deleteNetworkManagerSecurityAdminConfiguration(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getSecurityAdminConfigurations().delete("rg1", "testNetworkManager", - "myTestSecurityConfig", false, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getSecurityAdminConfigurations() + .delete("rg1", "testNetworkManager", "myTestSecurityConfig", false, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityAdminConfigurationsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityAdminConfigurationsGetSamples.java index 411cb1db8e5ab..5a5bab087fb39 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityAdminConfigurationsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityAdminConfigurationsGetSamples.java @@ -9,8 +9,7 @@ */ public final class SecurityAdminConfigurationsGetSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkManagerSecurityAdminConfigurationGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerSecurityAdminConfigurationGet.json */ /** * Sample code: Get security admin configurations. @@ -18,7 +17,10 @@ public final class SecurityAdminConfigurationsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getSecurityAdminConfigurations(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getSecurityAdminConfigurations().getWithResponse("rg1", - "testNetworkManager", "myTestSecurityConfig", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getSecurityAdminConfigurations() + .getWithResponse("rg1", "testNetworkManager", "myTestSecurityConfig", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityAdminConfigurationsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityAdminConfigurationsListSamples.java index 9c2973e5fb13b..c1e0945ff8bf8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityAdminConfigurationsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityAdminConfigurationsListSamples.java @@ -9,8 +9,7 @@ */ public final class SecurityAdminConfigurationsListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkManagerSecurityAdminConfigurationList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerSecurityAdminConfigurationList.json */ /** * Sample code: List security admin configurations in a network manager. @@ -19,7 +18,10 @@ public final class SecurityAdminConfigurationsListSamples { */ public static void listSecurityAdminConfigurationsInANetworkManager(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getSecurityAdminConfigurations().list("rg1", "testNetworkManager", - null, null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getSecurityAdminConfigurations() + .list("rg1", "testNetworkManager", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersCreateOrUpdateSamples.java index 7f2d7ab51c602..801545611153e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersCreateOrUpdateSamples.java @@ -15,9 +15,7 @@ */ public final class SecurityPartnerProvidersCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/SecurityPartnerProviderPut. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SecurityPartnerProviderPut.json */ /** * Sample code: Create Security Partner Provider. @@ -25,11 +23,16 @@ public final class SecurityPartnerProvidersCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createSecurityPartnerProvider(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getSecurityPartnerProviders() - .createOrUpdate("rg1", "securityPartnerProvider", new SecurityPartnerProviderInner().withLocation("West US") - .withTags(mapOf("key1", "fakeTokenPlaceholder")).withSecurityProviderName(SecurityProviderName.ZSCALER) - .withVirtualHub(new SubResource() - .withId("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1")), + azure.networks() + .manager() + .serviceClient() + .getSecurityPartnerProviders() + .createOrUpdate("rg1", "securityPartnerProvider", + new SecurityPartnerProviderInner().withLocation("West US") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) + .withSecurityProviderName(SecurityProviderName.ZSCALER) + .withVirtualHub(new SubResource().withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1")), com.azure.core.util.Context.NONE); } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersDeleteSamples.java index 469a856af634a..f5367955a9f64 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersDeleteSamples.java @@ -9,9 +9,7 @@ */ public final class SecurityPartnerProvidersDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/SecurityPartnerProviderDelete - * .json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SecurityPartnerProviderDelete.json */ /** * Sample code: Delete Security Partner Provider. @@ -19,7 +17,10 @@ public final class SecurityPartnerProvidersDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteSecurityPartnerProvider(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getSecurityPartnerProviders().delete("rg1", - "securityPartnerProvider", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getSecurityPartnerProviders() + .delete("rg1", "securityPartnerProvider", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersGetByResourceGroupSamples.java index 139671d802f8f..4088bb70a2440 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersGetByResourceGroupSamples.java @@ -9,9 +9,7 @@ */ public final class SecurityPartnerProvidersGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/SecurityPartnerProviderGet. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SecurityPartnerProviderGet.json */ /** * Sample code: Get Security Partner Provider. @@ -19,7 +17,10 @@ public final class SecurityPartnerProvidersGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getSecurityPartnerProvider(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getSecurityPartnerProviders().getByResourceGroupWithResponse("rg1", - "securityPartnerProvider", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getSecurityPartnerProviders() + .getByResourceGroupWithResponse("rg1", "securityPartnerProvider", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersListByResourceGroupSamples.java index 2ce5229403925..5d84d226f64df 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class SecurityPartnerProvidersListByResourceGroupSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * SecurityPartnerProviderListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SecurityPartnerProviderListByResourceGroup.json */ /** * Sample code: List all Security Partner Providers for a given resource group. @@ -19,7 +18,10 @@ public final class SecurityPartnerProvidersListByResourceGroupSamples { */ public static void listAllSecurityPartnerProvidersForAGivenResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getSecurityPartnerProviders().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getSecurityPartnerProviders() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersListSamples.java index a97c9dcd535b4..9bad82c596e43 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersListSamples.java @@ -9,8 +9,7 @@ */ public final class SecurityPartnerProvidersListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * SecurityPartnerProviderListBySubscription.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SecurityPartnerProviderListBySubscription.json */ /** * Sample code: List all Security Partner Providers for a given subscription. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersUpdateTagsSamples.java index 301ffea521b62..1942e2d7911ac 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityPartnerProvidersUpdateTagsSamples.java @@ -13,8 +13,7 @@ */ public final class SecurityPartnerProvidersUpdateTagsSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * SecurityPartnerProviderUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SecurityPartnerProviderUpdateTags.json */ /** * Sample code: Update Security Partner Provider Tags. @@ -22,9 +21,12 @@ public final class SecurityPartnerProvidersUpdateTagsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updateSecurityPartnerProviderTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getSecurityPartnerProviders().updateTagsWithResponse("rg1", - "securityPartnerProvider", new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), - com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityRulesCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityRulesCreateOrUpdateSamples.java index 374cedce03789..99c2a64d6a026 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityRulesCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityRulesCreateOrUpdateSamples.java @@ -14,8 +14,7 @@ */ public final class SecurityRulesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkSecurityGroupRuleCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkSecurityGroupRuleCreate.json */ /** * Sample code: Create security rule. @@ -23,11 +22,19 @@ public final class SecurityRulesCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createSecurityRule(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityRulesDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityRulesDeleteSamples.java index 3a67f74fa7aa2..a9f15aaa089c3 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityRulesDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityRulesDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class SecurityRulesDeleteSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkSecurityGroupRuleDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkSecurityGroupRuleDelete.json */ /** * Sample code: Delete network security rule from network security group. @@ -19,7 +18,10 @@ public final class SecurityRulesDeleteSamples { */ public static void deleteNetworkSecurityRuleFromNetworkSecurityGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getSecurityRules().delete("rg1", "testnsg", "rule1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getSecurityRules() + .delete("rg1", "testnsg", "rule1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityRulesGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityRulesGetSamples.java index 27bccdbd9e3f9..fcea3fd56d0d9 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityRulesGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityRulesGetSamples.java @@ -9,9 +9,7 @@ */ public final class SecurityRulesGetSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkSecurityGroupRuleGet. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkSecurityGroupRuleGet.json */ /** * Sample code: Get network security rule in network security group. @@ -20,7 +18,10 @@ public final class SecurityRulesGetSamples { */ public static void getNetworkSecurityRuleInNetworkSecurityGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getSecurityRules().getWithResponse("rg1", "testnsg", "rule1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getSecurityRules() + .getWithResponse("rg1", "testnsg", "rule1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityRulesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityRulesListSamples.java index 436a09e5c87c0..b9d7681fd4526 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityRulesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SecurityRulesListSamples.java @@ -9,9 +9,7 @@ */ public final class SecurityRulesListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkSecurityGroupRuleList. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkSecurityGroupRuleList.json */ /** * Sample code: List network security rules in network security group. @@ -20,7 +18,10 @@ public final class SecurityRulesListSamples { */ public static void listNetworkSecurityRulesInNetworkSecurityGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getSecurityRules().list("rg1", "testnsg", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getSecurityRules() + .list("rg1", "testnsg", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceAssociationLinksListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceAssociationLinksListSamples.java index 1e4f0eabb1d39..a4bf89385ba7f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceAssociationLinksListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceAssociationLinksListSamples.java @@ -9,8 +9,7 @@ */ public final class ServiceAssociationLinksListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGetServiceAssociationLinks.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGetServiceAssociationLinks.json */ /** * Sample code: Get Service Association Links. @@ -18,7 +17,10 @@ public final class ServiceAssociationLinksListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getServiceAssociationLinks(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getServiceAssociationLinks().listWithResponse("rg1", "vnet", - "subnet", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getServiceAssociationLinks() + .listWithResponse("rg1", "vnet", "subnet", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesCreateOrUpdateSamples.java index 751efc06d8442..5b9d62e29f505 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesCreateOrUpdateSamples.java @@ -13,9 +13,7 @@ */ public final class ServiceEndpointPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ServiceEndpointPolicyCreate. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceEndpointPolicyCreate.json */ /** * Sample code: Create service endpoint policy. @@ -23,13 +21,16 @@ public final class ServiceEndpointPoliciesCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createServiceEndpointPolicy(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getServiceEndpointPolicies().createOrUpdate("rg1", "testPolicy", - new ServiceEndpointPolicyInner().withLocation("westus"), com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getServiceEndpointPolicies() + .createOrUpdate("rg1", "testPolicy", new ServiceEndpointPolicyInner().withLocation("westus"), + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ServiceEndpointPolicyCreateWithDefinition.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceEndpointPolicyCreateWithDefinition.json */ /** * Sample code: Create service endpoint policy with definition. @@ -37,14 +38,18 @@ public static void createServiceEndpointPolicy(com.azure.resourcemanager.AzureRe * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createServiceEndpointPolicyWithDefinition(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getServiceEndpointPolicies().createOrUpdate("rg1", "testPolicy", - new ServiceEndpointPolicyInner().withLocation("westus") + azure.networks() + .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") + .withDescription("Storage Service EndpointPolicy Definition") + .withService("Microsoft.Storage") .withServiceResources(Arrays.asList("/subscriptions/subid1", "/subscriptions/subid1/resourceGroups/storageRg", "/subscriptions/subid1/resourceGroups/storageRg/providers/Microsoft.Storage/storageAccounts/stAccount")))), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesDeleteSamples.java index 4b85f437e2792..628442573a6d1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesDeleteSamples.java @@ -9,9 +9,7 @@ */ public final class ServiceEndpointPoliciesDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ServiceEndpointPolicyDelete. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceEndpointPolicyDelete.json */ /** * Sample code: Delete service endpoint policy. @@ -19,7 +17,10 @@ public final class ServiceEndpointPoliciesDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteServiceEndpointPolicy(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getServiceEndpointPolicies().delete("rg1", "serviceEndpointPolicy1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getServiceEndpointPolicies() + .delete("rg1", "serviceEndpointPolicy1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesGetByResourceGroupSamples.java index ec5bbaf5e03be..cf751e1ea09c8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class ServiceEndpointPoliciesGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ServiceEndpointPolicyGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceEndpointPolicyGet.json */ /** * Sample code: Get service endPoint Policy. @@ -18,7 +17,10 @@ public final class ServiceEndpointPoliciesGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getServiceEndPointPolicy(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getServiceEndpointPolicies().getByResourceGroupWithResponse("rg1", - "testServiceEndpointPolicy", null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getServiceEndpointPolicies() + .getByResourceGroupWithResponse("rg1", "testServiceEndpointPolicy", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesListByResourceGroupSamples.java index 89134d8d4c96c..e10fa0f265000 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesListByResourceGroupSamples.java @@ -9,9 +9,7 @@ */ public final class ServiceEndpointPoliciesListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ServiceEndpointPolicyList. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceEndpointPolicyList.json */ /** * Sample code: List resource group service endpoint policies. @@ -19,7 +17,10 @@ public final class ServiceEndpointPoliciesListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listResourceGroupServiceEndpointPolicies(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getServiceEndpointPolicies().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getServiceEndpointPolicies() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesListSamples.java index 6797338e3c81b..2f3e438cd8506 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesListSamples.java @@ -9,9 +9,7 @@ */ public final class ServiceEndpointPoliciesListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ServiceEndpointPolicyListAll. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceEndpointPolicyListAll.json */ /** * Sample code: List all service endpoint policy. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesUpdateTagsSamples.java index 8149989c20566..d9d2a547ad9d7 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPoliciesUpdateTagsSamples.java @@ -13,8 +13,7 @@ */ public final class ServiceEndpointPoliciesUpdateTagsSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ServiceEndpointPolicyUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceEndpointPolicyUpdateTags.json */ /** * Sample code: Update service endpoint policy tags. @@ -22,9 +21,12 @@ public final class ServiceEndpointPoliciesUpdateTagsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updateServiceEndpointPolicyTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getServiceEndpointPolicies().updateTagsWithResponse("rg1", - "testServiceEndpointPolicy", new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), - com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPolicyDefinitionsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPolicyDefinitionsCreateOrUpdateSamples.java index 2797a7038a046..34c69b7d3b51f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPolicyDefinitionsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPolicyDefinitionsCreateOrUpdateSamples.java @@ -12,8 +12,7 @@ */ public final class ServiceEndpointPolicyDefinitionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ServiceEndpointPolicyDefinitionCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceEndpointPolicyDefinitionCreate.json */ /** * Sample code: Create service endpoint policy definition. @@ -21,9 +20,13 @@ public final class ServiceEndpointPolicyDefinitionsCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createServiceEndpointPolicyDefinition(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getServiceEndpointPolicyDefinitions() + azure.networks() + .manager() + .serviceClient() + .getServiceEndpointPolicyDefinitions() .createOrUpdate("rg1", "testPolicy", "testDefinition", new ServiceEndpointPolicyDefinitionInner() - .withDescription("Storage Service EndpointPolicy Definition").withService("Microsoft.Storage") + .withDescription("Storage Service EndpointPolicy Definition") + .withService("Microsoft.Storage") .withServiceResources(Arrays.asList("/subscriptions/subid1", "/subscriptions/subid1/resourceGroups/storageRg", "/subscriptions/subid1/resourceGroups/storageRg/providers/Microsoft.Storage/storageAccounts/stAccount")), diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPolicyDefinitionsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPolicyDefinitionsDeleteSamples.java index 796de1dd37f39..657a215eab5fc 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPolicyDefinitionsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPolicyDefinitionsDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class ServiceEndpointPolicyDefinitionsDeleteSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ServiceEndpointPolicyDefinitionDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceEndpointPolicyDefinitionDelete.json */ /** * Sample code: Delete service endpoint policy definitions from service endpoint policy. @@ -19,7 +18,10 @@ public final class ServiceEndpointPolicyDefinitionsDeleteSamples { */ public static void deleteServiceEndpointPolicyDefinitionsFromServiceEndpointPolicy( com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getServiceEndpointPolicyDefinitions().delete("rg1", "testPolicy", - "testDefinition", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getServiceEndpointPolicyDefinitions() + .delete("rg1", "testPolicy", "testDefinition", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPolicyDefinitionsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPolicyDefinitionsGetSamples.java index 250f1c37f6856..470b009671ffc 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPolicyDefinitionsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPolicyDefinitionsGetSamples.java @@ -9,8 +9,7 @@ */ public final class ServiceEndpointPolicyDefinitionsGetSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ServiceEndpointPolicyDefinitionGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceEndpointPolicyDefinitionGet.json */ /** * Sample code: Get service endpoint definition in service endpoint policy. @@ -19,7 +18,10 @@ public final class ServiceEndpointPolicyDefinitionsGetSamples { */ public static void getServiceEndpointDefinitionInServiceEndpointPolicy(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getServiceEndpointPolicyDefinitions().getWithResponse("rg1", - "testPolicy", "testDefinition", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getServiceEndpointPolicyDefinitions() + .getWithResponse("rg1", "testPolicy", "testDefinition", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPolicyDefinitionsListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPolicyDefinitionsListByResourceGroupSamples.java index d8049962c154a..e89ba4ccb1ac4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPolicyDefinitionsListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceEndpointPolicyDefinitionsListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class ServiceEndpointPolicyDefinitionsListByResourceGroupSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ServiceEndpointPolicyDefinitionList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceEndpointPolicyDefinitionList.json */ /** * Sample code: List service endpoint definitions in service end point policy. @@ -19,7 +18,10 @@ public final class ServiceEndpointPolicyDefinitionsListByResourceGroupSamples { */ public static void listServiceEndpointDefinitionsInServiceEndPointPolicy(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getServiceEndpointPolicyDefinitions().listByResourceGroup("rg1", - "testPolicy", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getServiceEndpointPolicyDefinitions() + .listByResourceGroup("rg1", "testPolicy", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceTagInformationListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceTagInformationListSamples.java index 640b520ab5910..a68effdb61817 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceTagInformationListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceTagInformationListSamples.java @@ -9,8 +9,7 @@ */ public final class ServiceTagInformationListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ServiceTagInformationListResultWithNoAddressPrefixes.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceTagInformationListResultWithNoAddressPrefixes.json */ /** * Sample code: Get list of service tags with no address prefixes. @@ -18,13 +17,15 @@ public final class ServiceTagInformationListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getListOfServiceTagsWithNoAddressPrefixes(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getServiceTagInformations().list("westeurope", true, null, - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getServiceTagInformations() + .list("westeurope", true, null, com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ServiceTagInformationListResult.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceTagInformationListResult.json */ /** * Sample code: Get list of service tags. @@ -32,13 +33,15 @@ public static void getListOfServiceTagsWithNoAddressPrefixes(com.azure.resourcem * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getListOfServiceTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getServiceTagInformations().list("westeurope", null, null, - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getServiceTagInformations() + .list("westeurope", null, null, com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * ServiceTagInformationListResultWithTagname.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceTagInformationListResultWithTagname.json */ /** * Sample code: Get list of service tags with tag name. @@ -46,7 +49,10 @@ public static void getListOfServiceTags(com.azure.resourcemanager.AzureResourceM * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getListOfServiceTagsWithTagName(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getServiceTagInformations().list("westeurope", null, "ApiManagement", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getServiceTagInformations() + .list("westeurope", null, "ApiManagement", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceTagsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceTagsListSamples.java index 7e414e2c92b09..87e90fd69ffa1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceTagsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/ServiceTagsListSamples.java @@ -9,8 +9,7 @@ */ public final class ServiceTagsListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ServiceTagsList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/ServiceTagsList.json */ /** * Sample code: Get list of service tags. @@ -18,7 +17,10 @@ public final class ServiceTagsListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getListOfServiceTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getServiceTags().listWithResponse("westcentralus", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getServiceTags() + .listWithResponse("westcentralus", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/StaticMembersCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/StaticMembersCreateOrUpdateSamples.java index da1ccc26dc423..f080eb00d9caa 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/StaticMembersCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/StaticMembersCreateOrUpdateSamples.java @@ -11,9 +11,7 @@ */ public final class StaticMembersCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkManagerStaticMemberPut - * .json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerStaticMemberPut.json */ /** * Sample code: StaticMemberPut. @@ -21,10 +19,13 @@ public final class StaticMembersCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void staticMemberPut(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getStaticMembers().createOrUpdateWithResponse("rg1", - "testNetworkManager", "testNetworkGroup", "testStaticMember", - new StaticMemberInner().withResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroup/rg1/providers/Microsoft.Network/virtualnetworks/vnet1"), - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getStaticMembers() + .createOrUpdateWithResponse("rg1", "testNetworkManager", "testNetworkGroup", "testStaticMember", + new StaticMemberInner().withResourceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroup/rg1/providers/Microsoft.Network/virtualnetworks/vnet1"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/StaticMembersDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/StaticMembersDeleteSamples.java index 575a835684965..5008c256ecaed 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/StaticMembersDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/StaticMembersDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class StaticMembersDeleteSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkManagerStaticMemberDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerStaticMemberDelete.json */ /** * Sample code: StaticMembersDelete. @@ -18,7 +17,11 @@ public final class StaticMembersDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void staticMembersDelete(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getStaticMembers().deleteWithResponse("SampleRG", "TestNM", - "testNetworkGroup", "testStaticMember", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getStaticMembers() + .deleteWithResponse("SampleRG", "TestNM", "testNetworkGroup", "testStaticMember", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/StaticMembersGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/StaticMembersGetSamples.java index 2ce3521da006b..3c77222707c1d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/StaticMembersGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/StaticMembersGetSamples.java @@ -9,9 +9,7 @@ */ public final class StaticMembersGetSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkManagerStaticMemberGet - * .json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerStaticMemberGet.json */ /** * Sample code: StaticMembersGet. @@ -19,7 +17,11 @@ public final class StaticMembersGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void staticMembersGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getStaticMembers().getWithResponse("rg1", "testNetworkManager", - "testNetworkGroup", "testStaticMember", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getStaticMembers() + .getWithResponse("rg1", "testNetworkManager", "testNetworkGroup", "testStaticMember", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/StaticMembersListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/StaticMembersListSamples.java index 1750c385da80b..b87416d5e2ca1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/StaticMembersListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/StaticMembersListSamples.java @@ -9,8 +9,7 @@ */ public final class StaticMembersListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkManagerStaticMemberList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerStaticMemberList.json */ /** * Sample code: StaticMembersList. @@ -18,7 +17,10 @@ public final class StaticMembersListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void staticMembersList(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getStaticMembers().list("rg1", "testNetworkManager", - "testNetworkGroup", null, null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getStaticMembers() + .list("rg1", "testNetworkManager", "testNetworkGroup", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsCreateOrUpdateSamples.java index c43da34dabb64..64484bd960a7d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsCreateOrUpdateSamples.java @@ -13,8 +13,7 @@ */ public final class SubnetsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/SubnetCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetCreate.json */ /** * Sample code: Create subnet. @@ -22,14 +21,16 @@ public final class SubnetsCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createSubnet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getSubnets().createOrUpdate("subnet-test", "vnetname", "subnet1", - new SubnetInner().withAddressPrefix("10.0.0.0/16"), com.azure.core.util.Context.NONE); + azure.networks() + .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: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/SubnetCreateServiceEndpoint. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetCreateServiceEndpoint.json */ /** * Sample code: Create subnet with service endpoints. @@ -37,16 +38,19 @@ public static void createSubnet(com.azure.resourcemanager.AzureResourceManager a * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createSubnetWithServiceEndpoints(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/SubnetCreateWithDelegation. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetCreateWithDelegation.json */ /** * Sample code: Create subnet with a delegation. @@ -54,7 +58,28 @@ public static void createSubnetWithServiceEndpoints(com.azure.resourcemanager.Az * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createSubnetWithADelegation(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getSubnets().createOrUpdate("subnet-test", "vnetname", "subnet1", - new SubnetInner().withAddressPrefix("10.0.0.0/16"), com.azure.core.util.Context.NONE); + azure.networks() + .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: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetCreateWithSharingScope.json + */ + /** + * Sample code: Create subnet with sharing scope. + * + * @param azure The entry point for accessing resource management APIs in Azure. + */ + public static void createSubnetWithSharingScope(com.azure.resourcemanager.AzureResourceManager azure) { + azure.networks() + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsDeleteSamples.java index 034db3d54caa7..fe90abaf16205 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class SubnetsDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/SubnetDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetDelete.json */ /** * Sample code: Delete subnet. @@ -18,7 +17,10 @@ public final class SubnetsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteSubnet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getSubnets().delete("subnet-test", "vnetname", "subnet1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getSubnets() + .delete("subnet-test", "vnetname", "subnet1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsGetSamples.java index d7378d4a575da..869ae99b7202a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsGetSamples.java @@ -9,8 +9,23 @@ */ public final class SubnetsGetSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/SubnetGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetGetWithSharingScope.json + */ + /** + * Sample code: Get subnet with sharing scope. + * + * @param azure The entry point for accessing resource management APIs in Azure. + */ + public static void getSubnetWithSharingScope(com.azure.resourcemanager.AzureResourceManager azure) { + azure.networks() + .manager() + .serviceClient() + .getSubnets() + .getWithResponse("subnet-test", "vnetname", "subnet1", null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetGet.json */ /** * Sample code: Get subnet. @@ -18,13 +33,15 @@ public final class SubnetsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getSubnet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getSubnets().getWithResponse("subnet-test", "vnetname", "subnet1", - null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getSubnets() + .getWithResponse("subnet-test", "vnetname", "subnet1", null, com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/SubnetGetWithDelegation.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetGetWithDelegation.json */ /** * Sample code: Get subnet with a delegation. @@ -32,7 +49,10 @@ public static void getSubnet(com.azure.resourcemanager.AzureResourceManager azur * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getSubnetWithADelegation(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getSubnets().getWithResponse("subnet-test", "vnetname", "subnet1", - null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getSubnets() + .getWithResponse("subnet-test", "vnetname", "subnet1", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsListSamples.java index 610f68d854e62..212995371c124 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsListSamples.java @@ -9,8 +9,7 @@ */ public final class SubnetsListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/SubnetList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetList.json */ /** * Sample code: List subnets. @@ -18,7 +17,10 @@ public final class SubnetsListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listSubnets(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getSubnets().list("subnet-test", "vnetname", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getSubnets() + .list("subnet-test", "vnetname", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsPrepareNetworkPoliciesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsPrepareNetworkPoliciesSamples.java index bd524fe7cc910..8163a1d583410 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsPrepareNetworkPoliciesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsPrepareNetworkPoliciesSamples.java @@ -11,9 +11,7 @@ */ public final class SubnetsPrepareNetworkPoliciesSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/SubnetPrepareNetworkPolicies. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetPrepareNetworkPolicies.json */ /** * Sample code: Prepare Network Policies. @@ -21,8 +19,12 @@ public final class SubnetsPrepareNetworkPoliciesSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void prepareNetworkPolicies(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getSubnets().prepareNetworkPolicies("rg1", "test-vnet", "subnet1", - new PrepareNetworkPoliciesRequest().withServiceName("Microsoft.Sql/managedInstances"), - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getSubnets() + .prepareNetworkPolicies("rg1", "test-vnet", "subnet1", + new PrepareNetworkPoliciesRequest().withServiceName("Microsoft.Sql/managedInstances"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsUnprepareNetworkPoliciesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsUnprepareNetworkPoliciesSamples.java index af6ff481a7386..271af7602a30d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsUnprepareNetworkPoliciesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubnetsUnprepareNetworkPoliciesSamples.java @@ -11,8 +11,7 @@ */ public final class SubnetsUnprepareNetworkPoliciesSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * SubnetUnprepareNetworkPolicies.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/SubnetUnprepareNetworkPolicies.json */ /** * Sample code: Unprepare Network Policies. @@ -20,8 +19,12 @@ public final class SubnetsUnprepareNetworkPoliciesSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void unprepareNetworkPolicies(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getSubnets().unprepareNetworkPolicies("rg1", "test-vnet", "subnet1", - new UnprepareNetworkPoliciesRequest().withServiceName("Microsoft.Sql/managedInstances"), - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getSubnets() + .unprepareNetworkPolicies("rg1", "test-vnet", "subnet1", + new UnprepareNetworkPoliciesRequest().withServiceName("Microsoft.Sql/managedInstances"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubscriptionNetworkManagerConnectionsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubscriptionNetworkManagerConnectionsCreateOrUpdateSamples.java index fd8ab27d0375f..890c045a0bc20 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubscriptionNetworkManagerConnectionsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubscriptionNetworkManagerConnectionsCreateOrUpdateSamples.java @@ -11,8 +11,7 @@ */ public final class SubscriptionNetworkManagerConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkManagerConnectionSubscriptionPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectionSubscriptionPut.json */ /** * Sample code: Create or Update Subscription Network Manager Connection. @@ -21,7 +20,10 @@ public final class SubscriptionNetworkManagerConnectionsCreateOrUpdateSamples { */ public static void createOrUpdateSubscriptionNetworkManagerConnection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getSubscriptionNetworkManagerConnections() + azure.networks() + .manager() + .serviceClient() + .getSubscriptionNetworkManagerConnections() .createOrUpdateWithResponse("TestNMConnection", new NetworkManagerConnectionInner().withNetworkManagerId( "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager"), com.azure.core.util.Context.NONE); diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubscriptionNetworkManagerConnectionsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubscriptionNetworkManagerConnectionsDeleteSamples.java index 8a88ba8bdef62..9a57e4fae3a8c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubscriptionNetworkManagerConnectionsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubscriptionNetworkManagerConnectionsDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class SubscriptionNetworkManagerConnectionsDeleteSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkManagerConnectionSubscriptionDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectionSubscriptionDelete.json */ /** * Sample code: Delete Subscription Network Manager Connection. @@ -19,7 +18,10 @@ public final class SubscriptionNetworkManagerConnectionsDeleteSamples { */ public static void deleteSubscriptionNetworkManagerConnection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getSubscriptionNetworkManagerConnections() + azure.networks() + .manager() + .serviceClient() + .getSubscriptionNetworkManagerConnections() .deleteWithResponse("TestNMConnection", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubscriptionNetworkManagerConnectionsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubscriptionNetworkManagerConnectionsGetSamples.java index 88c031cfa2b64..4ef8b7563e7d9 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubscriptionNetworkManagerConnectionsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubscriptionNetworkManagerConnectionsGetSamples.java @@ -9,8 +9,7 @@ */ public final class SubscriptionNetworkManagerConnectionsGetSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkManagerConnectionSubscriptionGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectionSubscriptionGet.json */ /** * Sample code: Get Subscription Network Manager Connection. @@ -18,7 +17,10 @@ public final class SubscriptionNetworkManagerConnectionsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getSubscriptionNetworkManagerConnection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getSubscriptionNetworkManagerConnections() + azure.networks() + .manager() + .serviceClient() + .getSubscriptionNetworkManagerConnections() .getWithResponse("TestNMConnection", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubscriptionNetworkManagerConnectionsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubscriptionNetworkManagerConnectionsListSamples.java index 579585b02e766..200b0c641f188 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubscriptionNetworkManagerConnectionsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/SubscriptionNetworkManagerConnectionsListSamples.java @@ -9,8 +9,7 @@ */ public final class SubscriptionNetworkManagerConnectionsListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkManagerConnectionSubscriptionList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkManagerConnectionSubscriptionList.json */ /** * Sample code: List Subscription Network Manager Connection. @@ -18,7 +17,10 @@ public final class SubscriptionNetworkManagerConnectionsListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listSubscriptionNetworkManagerConnection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getSubscriptionNetworkManagerConnections().list(null, null, - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getSubscriptionNetworkManagerConnections() + .list(null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/UsagesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/UsagesListSamples.java index 5eeea60f92577..7aa721a49538e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/UsagesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/UsagesListSamples.java @@ -9,8 +9,7 @@ */ public final class UsagesListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/UsageList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/UsageList.json */ /** * Sample code: List usages. @@ -22,8 +21,7 @@ public static void listUsages(com.azure.resourcemanager.AzureResourceManager azu } /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/UsageListSpacedLocation.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/UsageListSpacedLocation.json */ /** * Sample code: List usages spaced location. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VipSwapCreateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VipSwapCreateSamples.java index f7a689ca9e335..1c7875d828f52 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VipSwapCreateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VipSwapCreateSamples.java @@ -13,8 +13,7 @@ */ public final class VipSwapCreateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/CloudServiceSwapPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CloudServiceSwapPut.json */ /** * Sample code: Put vip swap operation. @@ -22,8 +21,12 @@ public final class VipSwapCreateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void putVipSwapOperation(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVipSwaps().create("rg1", "testCloudService", - new SwapResourceInner().withProperties(new SwapResourceProperties().withSlotType(SlotType.PRODUCTION)), - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVipSwaps() + .create("rg1", "testCloudService", + new SwapResourceInner().withProperties(new SwapResourceProperties().withSlotType(SlotType.PRODUCTION)), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VipSwapGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VipSwapGetSamples.java index f6915de1e6aea..e8358c9e9ce14 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VipSwapGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VipSwapGetSamples.java @@ -9,8 +9,7 @@ */ public final class VipSwapGetSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/CloudServiceSwapGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CloudServiceSwapGet.json */ /** * Sample code: Get swap resource. @@ -18,7 +17,10 @@ public final class VipSwapGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getSwapResource(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVipSwaps().getWithResponse("rg1", "testCloudService", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVipSwaps() + .getWithResponse("rg1", "testCloudService", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VipSwapListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VipSwapListSamples.java index f4a1b2ec78194..f7d6daf0cc332 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VipSwapListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VipSwapListSamples.java @@ -9,8 +9,7 @@ */ public final class VipSwapListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/CloudServiceSwapList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/CloudServiceSwapList.json */ /** * Sample code: Get swap resource list. @@ -18,7 +17,10 @@ public final class VipSwapListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getSwapResourceList(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVipSwaps().listWithResponse("rg1", "testCloudService", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVipSwaps() + .listWithResponse("rg1", "testCloudService", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSitesCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSitesCreateOrUpdateSamples.java index 8d8f8a7ec1fbc..7b5b45349bd02 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSitesCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSitesCreateOrUpdateSamples.java @@ -13,8 +13,7 @@ */ public final class VirtualApplianceSitesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkVirtualApplianceSitePut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceSitePut.json */ /** * Sample code: Create Network Virtual Appliance Site. @@ -22,10 +21,14 @@ public final class VirtualApplianceSitesCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createNetworkVirtualApplianceSite(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSitesDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSitesDeleteSamples.java index 7d8bb110fb389..4a47bbe0ef526 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSitesDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSitesDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualApplianceSitesDeleteSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkVirtualApplianceSiteDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceSiteDelete.json */ /** * Sample code: Delete Network Virtual Appliance Site. @@ -18,7 +17,10 @@ public final class VirtualApplianceSitesDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteNetworkVirtualApplianceSite(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualApplianceSites().delete("rg1", "nva", "site1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualApplianceSites() + .delete("rg1", "nva", "site1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSitesGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSitesGetSamples.java index 52e9e01a96ac0..b37262d883f45 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSitesGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSitesGetSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualApplianceSitesGetSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkVirtualApplianceSiteGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceSiteGet.json */ /** * Sample code: GetNetwork Virtual Appliance Site. @@ -18,7 +17,10 @@ public final class VirtualApplianceSitesGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getNetworkVirtualApplianceSite(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualApplianceSites().getWithResponse("rg1", "nva", "site1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualApplianceSites() + .getWithResponse("rg1", "nva", "site1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSitesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSitesListSamples.java index 8eacf3c1f1719..9ae75b5c11917 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSitesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSitesListSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualApplianceSitesListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkVirtualApplianceSiteList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceSiteList.json */ /** * Sample code: List all Network Virtual Appliance sites for a given Network Virtual Appliance. @@ -19,7 +18,10 @@ public final class VirtualApplianceSitesListSamples { */ public static void listAllNetworkVirtualApplianceSitesForAGivenNetworkVirtualAppliance( com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualApplianceSites().list("rg1", "nva", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualApplianceSites() + .list("rg1", "nva", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSkusGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSkusGetSamples.java index 56b5acd730018..2c7fe7a424442 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSkusGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSkusGetSamples.java @@ -9,9 +9,7 @@ */ public final class VirtualApplianceSkusGetSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/NetworkVirtualApplianceSkuGet - * .json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceSkuGet.json */ /** * Sample code: NetworkVirtualApplianceSkuGet. @@ -19,7 +17,10 @@ public final class VirtualApplianceSkusGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void networkVirtualApplianceSkuGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualApplianceSkus().getWithResponse("ciscoSdwan", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualApplianceSkus() + .getWithResponse("ciscoSdwan", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSkusListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSkusListSamples.java index 945ca56e1b885..57b8429961e94 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSkusListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualApplianceSkusListSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualApplianceSkusListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * NetworkVirtualApplianceSkuList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/NetworkVirtualApplianceSkuList.json */ /** * Sample code: NetworkVirtualApplianceSkuListResult. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubBgpConnectionsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubBgpConnectionsCreateOrUpdateSamples.java index 494b61e4e1b20..6ea46e8bd4ee5 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubBgpConnectionsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubBgpConnectionsCreateOrUpdateSamples.java @@ -12,9 +12,7 @@ */ public final class VirtualHubBgpConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualHubBgpConnectionPut. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubBgpConnectionPut.json */ /** * Sample code: VirtualHubRouteTableV2Put. @@ -22,10 +20,14 @@ public final class VirtualHubBgpConnectionsCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void virtualHubRouteTableV2Put(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualHubBgpConnections().createOrUpdate("rg1", "hub1", "conn1", - new BgpConnectionInner().withPeerAsn(20000L).withPeerIp("192.168.1.5") + azure.networks() + .manager() + .serviceClient() + .getVirtualHubBgpConnections() + .createOrUpdate("rg1", "hub1", "conn1", new BgpConnectionInner().withPeerAsn(20000L) + .withPeerIp("192.168.1.5") .withHubVirtualNetworkConnection(new SubResource().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1/hubVirtualNetworkConnections/hubVnetConn1")), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubBgpConnectionsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubBgpConnectionsDeleteSamples.java index 9d48701d3123c..c8550f964b61b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubBgpConnectionsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubBgpConnectionsDeleteSamples.java @@ -9,9 +9,7 @@ */ public final class VirtualHubBgpConnectionsDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualHubBgpConnectionDelete - * .json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubBgpConnectionDelete.json */ /** * Sample code: VirtualHubRouteTableV2Delete. @@ -19,7 +17,10 @@ public final class VirtualHubBgpConnectionsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void virtualHubRouteTableV2Delete(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualHubBgpConnections().delete("rg1", "hub1", "conn1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualHubBgpConnections() + .delete("rg1", "hub1", "conn1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubBgpConnectionsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubBgpConnectionsGetSamples.java index 41f503eed53e6..2d56a078c8d7a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubBgpConnectionsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubBgpConnectionsGetSamples.java @@ -9,9 +9,7 @@ */ public final class VirtualHubBgpConnectionsGetSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualHubBgpConnectionGet. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubBgpConnectionGet.json */ /** * Sample code: VirtualHubVirtualHubRouteTableV2Get. @@ -19,7 +17,10 @@ public final class VirtualHubBgpConnectionsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void virtualHubVirtualHubRouteTableV2Get(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualHubBgpConnections().getWithResponse("rg1", "hub1", "conn1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualHubBgpConnections() + .getWithResponse("rg1", "hub1", "conn1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubBgpConnectionsListAdvertisedRoutesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubBgpConnectionsListAdvertisedRoutesSamples.java index e9f0f512c4cb0..add7b666f067f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubBgpConnectionsListAdvertisedRoutesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubBgpConnectionsListAdvertisedRoutesSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualHubBgpConnectionsListAdvertisedRoutesSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualRouterPeerListAdvertisedRoute.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualRouterPeerListAdvertisedRoute.json */ /** * Sample code: VirtualRouterPeerListAdvertisedRoutes. @@ -18,7 +17,10 @@ public final class VirtualHubBgpConnectionsListAdvertisedRoutesSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void virtualRouterPeerListAdvertisedRoutes(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualHubBgpConnections().listAdvertisedRoutes("rg1", - "virtualRouter1", "peer1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualHubBgpConnections() + .listAdvertisedRoutes("rg1", "virtualRouter1", "peer1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubBgpConnectionsListLearnedRoutesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubBgpConnectionsListLearnedRoutesSamples.java index 8963714504f86..f4d7405dbd1c7 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubBgpConnectionsListLearnedRoutesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubBgpConnectionsListLearnedRoutesSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualHubBgpConnectionsListLearnedRoutesSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualRouterPeerListLearnedRoute.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualRouterPeerListLearnedRoute.json */ /** * Sample code: VirtualRouterPeerListLearnedRoutes. @@ -18,7 +17,10 @@ public final class VirtualHubBgpConnectionsListLearnedRoutesSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void virtualRouterPeerListLearnedRoutes(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualHubBgpConnections().listLearnedRoutes("rg1", - "virtualRouter1", "peer1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualHubBgpConnections() + .listLearnedRoutes("rg1", "virtualRouter1", "peer1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubBgpConnectionsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubBgpConnectionsListSamples.java index 5bcf9586dfa3a..401aa930c5fb9 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubBgpConnectionsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubBgpConnectionsListSamples.java @@ -9,9 +9,7 @@ */ public final class VirtualHubBgpConnectionsListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualHubBgpConnectionList. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubBgpConnectionList.json */ /** * Sample code: VirtualHubRouteTableV2List. @@ -19,7 +17,10 @@ public final class VirtualHubBgpConnectionsListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void virtualHubRouteTableV2List(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualHubBgpConnections().list("rg1", "hub1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualHubBgpConnections() + .list("rg1", "hub1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubIpConfigurationCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubIpConfigurationCreateOrUpdateSamples.java index 625fc4ee373ca..b4c7ea1ee687f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubIpConfigurationCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubIpConfigurationCreateOrUpdateSamples.java @@ -12,9 +12,7 @@ */ public final class VirtualHubIpConfigurationCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualHubIpConfigurationPut. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubIpConfigurationPut.json */ /** * Sample code: VirtualHubIpConfigurationPut. @@ -22,10 +20,13 @@ public final class VirtualHubIpConfigurationCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void virtualHubIpConfigurationPut(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualHubIpConfigurations().createOrUpdate("rg1", "hub1", - "ipconfig1", - new HubIpConfigurationInner().withSubnet(new SubnetInner().withId( - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1")), - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualHubIpConfigurations() + .createOrUpdate("rg1", "hub1", "ipconfig1", + new HubIpConfigurationInner().withSubnet(new SubnetInner().withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1")), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubIpConfigurationDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubIpConfigurationDeleteSamples.java index c5248cab9626a..f96ce74d78f47 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubIpConfigurationDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubIpConfigurationDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualHubIpConfigurationDeleteSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualHubIpConfigurationDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubIpConfigurationDelete.json */ /** * Sample code: VirtualHubIpConfigurationDelete. @@ -18,7 +17,10 @@ public final class VirtualHubIpConfigurationDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void virtualHubIpConfigurationDelete(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualHubIpConfigurations().delete("rg1", "hub1", "ipconfig1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualHubIpConfigurations() + .delete("rg1", "hub1", "ipconfig1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubIpConfigurationGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubIpConfigurationGetSamples.java index b90274e759024..5b298591d817f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubIpConfigurationGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubIpConfigurationGetSamples.java @@ -9,9 +9,7 @@ */ public final class VirtualHubIpConfigurationGetSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualHubIpConfigurationGet. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubIpConfigurationGet.json */ /** * Sample code: VirtualHubVirtualHubRouteTableV2Get. @@ -19,7 +17,10 @@ public final class VirtualHubIpConfigurationGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void virtualHubVirtualHubRouteTableV2Get(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualHubIpConfigurations().getWithResponse("rg1", "hub1", - "ipconfig1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualHubIpConfigurations() + .getWithResponse("rg1", "hub1", "ipconfig1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubIpConfigurationListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubIpConfigurationListSamples.java index f4d5abd86a895..32f3eedb171f2 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubIpConfigurationListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubIpConfigurationListSamples.java @@ -9,9 +9,7 @@ */ public final class VirtualHubIpConfigurationListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualHubIpConfigurationList - * .json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubIpConfigurationList.json */ /** * Sample code: VirtualHubRouteTableV2List. @@ -19,7 +17,10 @@ public final class VirtualHubIpConfigurationListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void virtualHubRouteTableV2List(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualHubIpConfigurations().list("rg1", "hub1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualHubIpConfigurations() + .list("rg1", "hub1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubRouteTableV2SCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubRouteTableV2SCreateOrUpdateSamples.java index ba34bc5612fe3..7c7c9cf655213 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubRouteTableV2SCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubRouteTableV2SCreateOrUpdateSamples.java @@ -13,9 +13,7 @@ */ public final class VirtualHubRouteTableV2SCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualHubRouteTableV2Put. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubRouteTableV2Put.json */ /** * Sample code: VirtualHubRouteTableV2Put. @@ -23,16 +21,22 @@ public final class VirtualHubRouteTableV2SCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void virtualHubRouteTableV2Put(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubRouteTableV2SDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubRouteTableV2SDeleteSamples.java index dbb9a8c4ad57b..61478077701e3 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubRouteTableV2SDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubRouteTableV2SDeleteSamples.java @@ -9,9 +9,7 @@ */ public final class VirtualHubRouteTableV2SDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualHubRouteTableV2Delete. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubRouteTableV2Delete.json */ /** * Sample code: VirtualHubRouteTableV2Delete. @@ -19,7 +17,10 @@ public final class VirtualHubRouteTableV2SDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void virtualHubRouteTableV2Delete(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualHubRouteTableV2S().delete("rg1", "virtualHub1", - "virtualHubRouteTable1a", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualHubRouteTableV2S() + .delete("rg1", "virtualHub1", "virtualHubRouteTable1a", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubRouteTableV2SGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubRouteTableV2SGetSamples.java index 5979862fa45fa..911010762249e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubRouteTableV2SGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubRouteTableV2SGetSamples.java @@ -9,9 +9,7 @@ */ public final class VirtualHubRouteTableV2SGetSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualHubRouteTableV2Get. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubRouteTableV2Get.json */ /** * Sample code: VirtualHubVirtualHubRouteTableV2Get. @@ -19,7 +17,10 @@ public final class VirtualHubRouteTableV2SGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void virtualHubVirtualHubRouteTableV2Get(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualHubRouteTableV2S().getWithResponse("rg1", "virtualHub1", - "virtualHubRouteTable1a", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualHubRouteTableV2S() + .getWithResponse("rg1", "virtualHub1", "virtualHubRouteTable1a", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubRouteTableV2SListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubRouteTableV2SListSamples.java index 3837f00b9c2c0..7cbcfb5981f6c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubRouteTableV2SListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubRouteTableV2SListSamples.java @@ -9,9 +9,7 @@ */ public final class VirtualHubRouteTableV2SListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualHubRouteTableV2List. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubRouteTableV2List.json */ /** * Sample code: VirtualHubRouteTableV2List. @@ -19,7 +17,10 @@ public final class VirtualHubRouteTableV2SListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void virtualHubRouteTableV2List(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualHubRouteTableV2S().list("rg1", "virtualHub1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualHubRouteTableV2S() + .list("rg1", "virtualHub1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsCreateOrUpdateSamples.java index 35a04556b6939..9a19b256985ab 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsCreateOrUpdateSamples.java @@ -14,8 +14,7 @@ */ public final class VirtualHubsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualHubPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubPut.json */ /** * Sample code: VirtualHubPut. @@ -23,12 +22,18 @@ public final class VirtualHubsCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void virtualHubPut(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualHubs().createOrUpdate("rg1", "virtualHub2", - new VirtualHubInner().withLocation("West US").withTags(mapOf("key1", "fakeTokenPlaceholder")) - .withVirtualWan(new SubResource().withId( - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWans/virtualWan1")) - .withAddressPrefix("10.168.0.0/24").withSku("Basic"), - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualHubs() + .createOrUpdate("rg1", "virtualHub2", + new VirtualHubInner().withLocation("West US") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) + .withVirtualWan(new SubResource().withId( + "/subscriptions/subid/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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsDeleteSamples.java index 67535f3d4f546..68c4dfcf1a6ef 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualHubsDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualHubDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubDelete.json */ /** * Sample code: VirtualHubDelete. @@ -18,7 +17,10 @@ public final class VirtualHubsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void virtualHubDelete(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualHubs().delete("rg1", "virtualHub1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualHubs() + .delete("rg1", "virtualHub1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsGetByResourceGroupSamples.java index a475ff4c87aec..1fcc18769b571 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualHubsGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualHubGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubGet.json */ /** * Sample code: VirtualHubGet. @@ -18,7 +17,10 @@ public final class VirtualHubsGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void virtualHubGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualHubs().getByResourceGroupWithResponse("rg1", "virtualHub1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualHubs() + .getByResourceGroupWithResponse("rg1", "virtualHub1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsGetEffectiveVirtualHubRoutesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsGetEffectiveVirtualHubRoutesSamples.java index 1b480632f80f6..040410c80b644 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsGetEffectiveVirtualHubRoutesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsGetEffectiveVirtualHubRoutesSamples.java @@ -11,8 +11,7 @@ */ public final class VirtualHubsGetEffectiveVirtualHubRoutesSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * EffectiveRoutesListForRouteTable.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/EffectiveRoutesListForRouteTable.json */ /** * Sample code: Effective Routes for a Route Table resource. @@ -20,16 +19,17 @@ public final class VirtualHubsGetEffectiveVirtualHubRoutesSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void effectiveRoutesForARouteTableResource(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualHubs().getEffectiveVirtualHubRoutes("rg1", "virtualHub1", - new EffectiveRoutesParameters().withResourceId( + azure.networks() + .manager() + .serviceClient() + .getVirtualHubs() + .getEffectiveVirtualHubRoutes("rg1", "virtualHub1", new EffectiveRoutesParameters().withResourceId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubRouteTables/hubRouteTable1") - .withVirtualWanResourceType("RouteTable"), - com.azure.core.util.Context.NONE); + .withVirtualWanResourceType("RouteTable"), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * EffectiveRoutesListForConnection.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/EffectiveRoutesListForConnection.json */ /** * Sample code: Effective Routes for a Connection resource. @@ -37,16 +37,17 @@ public static void effectiveRoutesForARouteTableResource(com.azure.resourcemanag * @param azure The entry point for accessing resource management APIs in Azure. */ public static void effectiveRoutesForAConnectionResource(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualHubs().getEffectiveVirtualHubRoutes("rg1", "virtualHub1", - new EffectiveRoutesParameters().withResourceId( + azure.networks() + .manager() + .serviceClient() + .getVirtualHubs() + .getEffectiveVirtualHubRoutes("rg1", "virtualHub1", new EffectiveRoutesParameters().withResourceId( "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName") - .withVirtualWanResourceType("ExpressRouteConnection"), - com.azure.core.util.Context.NONE); + .withVirtualWanResourceType("ExpressRouteConnection"), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * EffectiveRoutesListForVirtualHub.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/EffectiveRoutesListForVirtualHub.json */ /** * Sample code: Effective Routes for the Virtual Hub. @@ -54,7 +55,10 @@ public static void effectiveRoutesForAConnectionResource(com.azure.resourcemanag * @param azure The entry point for accessing resource management APIs in Azure. */ public static void effectiveRoutesForTheVirtualHub(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualHubs().getEffectiveVirtualHubRoutes("rg1", "virtualHub1", - null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualHubs() + .getEffectiveVirtualHubRoutes("rg1", "virtualHub1", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsGetInboundRoutesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsGetInboundRoutesSamples.java index 084bfe1b092e3..a64b9a7210fae 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsGetInboundRoutesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsGetInboundRoutesSamples.java @@ -11,8 +11,7 @@ */ public final class VirtualHubsGetInboundRoutesSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/GetInboundRoutes.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/GetInboundRoutes.json */ /** * Sample code: Inbound Routes for the Virtual Hub on a Particular Connection. @@ -21,10 +20,12 @@ public final class VirtualHubsGetInboundRoutesSamples { */ public static void inboundRoutesForTheVirtualHubOnAParticularConnection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualHubs().getInboundRoutes("rg1", "virtualHub1", - new GetInboundRoutesParameters().withResourceUri( + azure.networks() + .manager() + .serviceClient() + .getVirtualHubs() + .getInboundRoutes("rg1", "virtualHub1", new GetInboundRoutesParameters().withResourceUri( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteGateways/exrGw1/expressRouteConnections/exrConn1") - .withConnectionType("ExpressRouteConnection"), - com.azure.core.util.Context.NONE); + .withConnectionType("ExpressRouteConnection"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsGetOutboundRoutesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsGetOutboundRoutesSamples.java index 8e85de94beb31..de17ff267d978 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsGetOutboundRoutesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsGetOutboundRoutesSamples.java @@ -11,8 +11,7 @@ */ public final class VirtualHubsGetOutboundRoutesSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/GetOutboundRoutes.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/GetOutboundRoutes.json */ /** * Sample code: Outbound Routes for the Virtual Hub on a Particular Connection. @@ -21,10 +20,12 @@ public final class VirtualHubsGetOutboundRoutesSamples { */ public static void outboundRoutesForTheVirtualHubOnAParticularConnection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualHubs().getOutboundRoutes("rg1", "virtualHub1", - new GetOutboundRoutesParameters().withResourceUri( + azure.networks() + .manager() + .serviceClient() + .getVirtualHubs() + .getOutboundRoutes("rg1", "virtualHub1", new GetOutboundRoutesParameters().withResourceUri( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteGateways/exrGw1/expressRouteConnections/exrConn1") - .withConnectionType("ExpressRouteConnection"), - com.azure.core.util.Context.NONE); + .withConnectionType("ExpressRouteConnection"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsListByResourceGroupSamples.java index 9d63c1b4baaed..1ad88f95b8f14 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsListByResourceGroupSamples.java @@ -9,9 +9,7 @@ */ public final class VirtualHubsListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualHubListByResourceGroup - * .json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubListByResourceGroup.json */ /** * Sample code: VirtualHubListByResourceGroup. @@ -19,7 +17,10 @@ public final class VirtualHubsListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void virtualHubListByResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualHubs().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualHubs() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsListSamples.java index 67fef597de1c5..46feadcd5d8c8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsListSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualHubsListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualHubList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubList.json */ /** * Sample code: VirtualHubList. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsUpdateTagsSamples.java index ea961546a4c79..ec4d5534d5d3e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualHubsUpdateTagsSamples.java @@ -13,8 +13,7 @@ */ public final class VirtualHubsUpdateTagsSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualHubUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualHubUpdateTags.json */ /** * Sample code: VirtualHubUpdate. @@ -22,9 +21,13 @@ public final class VirtualHubsUpdateTagsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void virtualHubUpdate(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualHubs().updateTagsWithResponse("rg1", "virtualHub2", - new TagsObject().withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")), - com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsCreateOrUpdateSamples.java index 7124259d9076e..07fcc7547d20d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsCreateOrUpdateSamples.java @@ -30,8 +30,7 @@ */ public final class VirtualNetworkGatewayConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewayConnectionCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayConnectionCreate.json */ /** * Sample code: CreateVirtualNetworkGatewayConnection_S2S. @@ -39,25 +38,33 @@ public final class VirtualNetworkGatewayConnectionsCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createVirtualNetworkGatewayConnectionS2S(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGatewayConnections().createOrUpdate("rg1", - "connS2S", - new VirtualNetworkGatewayConnectionInner().withLocation("centralus").withVirtualNetworkGateway1( - new VirtualNetworkGatewayInner().withLocation("centralus").withTags(mapOf()).withId( - "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw") + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkGatewayConnections() + .createOrUpdate("rg1", "connS2S", new VirtualNetworkGatewayConnectionInner().withLocation("centralus") + .withVirtualNetworkGateway1(new VirtualNetworkGatewayInner().withLocation("centralus") + .withTags(mapOf()) + .withId( + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw") .withIpConfigurations(Arrays.asList(new VirtualNetworkGatewayIpConfigurationInner().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/ipConfigurations/gwipconfig1") - .withName("gwipconfig1").withPrivateIpAllocationMethod(IpAllocationMethod.DYNAMIC) + .withName("gwipconfig1") + .withPrivateIpAllocationMethod(IpAllocationMethod.DYNAMIC) .withSubnet(new SubResource().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/GatewaySubnet")) .withPublicIpAddress(new SubResource().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/gwpip")))) - .withGatewayType(VirtualNetworkGatewayType.VPN).withVpnType(VpnType.ROUTE_BASED) - .withEnableBgp(false).withActive(false) + .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()) + .withLocalNetworkGateway2(new LocalNetworkGatewayInner().withLocation("centralus") + .withTags(mapOf()) .withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/localNetworkGateways/localgw") .withLocalNetworkAddressSpace(new AddressSpace().withAddressPrefixes(Arrays.asList("10.1.0.0/16"))) @@ -67,9 +74,12 @@ public static void createVirtualNetworkGatewayConnectionS2S(com.azure.resourcema .withEgressNatRules(Arrays.asList(new SubResource().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/natRules/natRule2"))) .withConnectionType(VirtualNetworkGatewayConnectionType.IPSEC) - .withConnectionProtocol(VirtualNetworkGatewayConnectionProtocol.IKEV2).withRoutingWeight(0) - .withDpdTimeoutSeconds(30).withConnectionMode(VirtualNetworkGatewayConnectionMode.DEFAULT) - .withSharedKey("fakeTokenPlaceholder").withEnableBgp(false) + .withConnectionProtocol(VirtualNetworkGatewayConnectionProtocol.IKEV2) + .withRoutingWeight(0) + .withDpdTimeoutSeconds(30) + .withConnectionMode(VirtualNetworkGatewayConnectionMode.DEFAULT) + .withSharedKey("fakeTokenPlaceholder") + .withEnableBgp(false) .withGatewayCustomBgpIpAddresses(Arrays.asList( new GatewayCustomBgpIpAddressIpConfiguration().withIpConfigurationId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/ipConfigurations/default") @@ -77,9 +87,9 @@ public static void createVirtualNetworkGatewayConnectionS2S(com.azure.resourcema new GatewayCustomBgpIpAddressIpConfiguration().withIpConfigurationId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/ipConfigurations/ActiveActive") .withCustomBgpIpAddress("169.254.21.3"))) - .withUsePolicyBasedTrafficSelectors(false).withIpsecPolicies(Arrays.asList()) - .withTrafficSelectorPolicies(Arrays.asList()), - com.azure.core.util.Context.NONE); + .withUsePolicyBasedTrafficSelectors(false) + .withIpsecPolicies(Arrays.asList()) + .withTrafficSelectorPolicies(Arrays.asList()), com.azure.core.util.Context.NONE); } // Use "Map.of" if available diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsDeleteSamples.java index 760feca5ce542..560b81d32b072 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualNetworkGatewayConnectionsDeleteSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewayConnectionDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayConnectionDelete.json */ /** * Sample code: DeleteVirtualNetworkGatewayConnection. @@ -18,7 +17,10 @@ public final class VirtualNetworkGatewayConnectionsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteVirtualNetworkGatewayConnection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGatewayConnections().delete("rg1", "conn1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkGatewayConnections() + .delete("rg1", "conn1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsGetByResourceGroupSamples.java index 557e8707866e8..037912633de45 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualNetworkGatewayConnectionsGetByResourceGroupSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewayConnectionGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayConnectionGet.json */ /** * Sample code: GetVirtualNetworkGatewayConnection. @@ -18,7 +17,10 @@ public final class VirtualNetworkGatewayConnectionsGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getVirtualNetworkGatewayConnection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGatewayConnections() + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkGatewayConnections() .getByResourceGroupWithResponse("rg1", "connS2S", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsGetIkeSasSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsGetIkeSasSamples.java index 49942a26dab9e..e64791bd5af75 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsGetIkeSasSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsGetIkeSasSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualNetworkGatewayConnectionsGetIkeSasSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewayConnectionGetIkeSas.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayConnectionGetIkeSas.json */ /** * Sample code: GetVirtualNetworkGatewayConnectionIkeSa. @@ -18,7 +17,10 @@ public final class VirtualNetworkGatewayConnectionsGetIkeSasSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getVirtualNetworkGatewayConnectionIkeSa(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGatewayConnections().getIkeSas("rg1", "vpngwcn1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkGatewayConnections() + .getIkeSas("rg1", "vpngwcn1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsGetSharedKeySamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsGetSharedKeySamples.java index f5b8e79cad5a8..9ff049f32d2af 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsGetSharedKeySamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsGetSharedKeySamples.java @@ -9,8 +9,7 @@ */ public final class VirtualNetworkGatewayConnectionsGetSharedKeySamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewayConnectionGetSharedKey.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayConnectionGetSharedKey.json */ /** * Sample code: GetVirtualNetworkGatewayConnectionSharedKey. @@ -19,7 +18,10 @@ public final class VirtualNetworkGatewayConnectionsGetSharedKeySamples { */ public static void getVirtualNetworkGatewayConnectionSharedKey(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGatewayConnections().getSharedKeyWithResponse("rg1", - "connS2S", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkGatewayConnections() + .getSharedKeyWithResponse("rg1", "connS2S", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsListByResourceGroupSamples.java index 975e925c85268..cbe3051fc18fa 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualNetworkGatewayConnectionsListByResourceGroupSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewayConnectionsList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayConnectionsList.json */ /** * Sample code: ListVirtualNetworkGatewayConnectionsinResourceGroup. @@ -19,7 +18,10 @@ public final class VirtualNetworkGatewayConnectionsListByResourceGroupSamples { */ public static void listVirtualNetworkGatewayConnectionsinResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGatewayConnections().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkGatewayConnections() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsResetConnectionSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsResetConnectionSamples.java index 52d9403a1ae9e..eaff49b703886 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsResetConnectionSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsResetConnectionSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualNetworkGatewayConnectionsResetConnectionSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewayConnectionReset.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayConnectionReset.json */ /** * Sample code: ResetVirtualNetworkGatewayConnection. @@ -18,7 +17,10 @@ public final class VirtualNetworkGatewayConnectionsResetConnectionSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void resetVirtualNetworkGatewayConnection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGatewayConnections().resetConnection("rg1", "conn1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkGatewayConnections() + .resetConnection("rg1", "conn1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsResetSharedKeySamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsResetSharedKeySamples.java index 2c9f470603ced..7bc134c503efd 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsResetSharedKeySamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsResetSharedKeySamples.java @@ -11,8 +11,7 @@ */ public final class VirtualNetworkGatewayConnectionsResetSharedKeySamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewayConnectionResetSharedKey.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayConnectionResetSharedKey.json */ /** * Sample code: ResetVirtualNetworkGatewayConnectionSharedKey. @@ -21,7 +20,11 @@ public final class VirtualNetworkGatewayConnectionsResetSharedKeySamples { */ public static void resetVirtualNetworkGatewayConnectionSharedKey(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGatewayConnections().resetSharedKey("rg1", "conn1", - new ConnectionResetSharedKeyInner().withKeyLength(128), com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkGatewayConnections() + .resetSharedKey("rg1", "conn1", new ConnectionResetSharedKeyInner().withKeyLength(128), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsSetSharedKeySamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsSetSharedKeySamples.java index a8729b744ed46..d5e40f70eae36 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsSetSharedKeySamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsSetSharedKeySamples.java @@ -11,8 +11,7 @@ */ public final class VirtualNetworkGatewayConnectionsSetSharedKeySamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewayConnectionSetSharedKey.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayConnectionSetSharedKey.json */ /** * Sample code: SetVirtualNetworkGatewayConnectionSharedKey. @@ -21,7 +20,11 @@ public final class VirtualNetworkGatewayConnectionsSetSharedKeySamples { */ public static void setVirtualNetworkGatewayConnectionSharedKey(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGatewayConnections().setSharedKey("rg1", "connS2S", - new ConnectionSharedKeyInner().withValue("AzureAbc123"), com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkGatewayConnections() + .setSharedKey("rg1", "connS2S", new ConnectionSharedKeyInner().withValue("AzureAbc123"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsStartPacketCaptureSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsStartPacketCaptureSamples.java index b2b75477c4102..efd05a1262f08 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsStartPacketCaptureSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsStartPacketCaptureSamples.java @@ -11,8 +11,7 @@ */ public final class VirtualNetworkGatewayConnectionsStartPacketCaptureSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewayConnectionStartPacketCapture.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayConnectionStartPacketCapture.json */ /** * Sample code: Start packet capture on virtual network gateway connection without filter. @@ -21,13 +20,15 @@ public final class VirtualNetworkGatewayConnectionsStartPacketCaptureSamples { */ public static void startPacketCaptureOnVirtualNetworkGatewayConnectionWithoutFilter( com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGatewayConnections().startPacketCapture("rg1", - "vpngwcn1", null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkGatewayConnections() + .startPacketCapture("rg1", "vpngwcn1", null, com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewayConnectionStartPacketCaptureFilterData.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayConnectionStartPacketCaptureFilterData.json */ /** * Sample code: Start packet capture on virtual network gateway connection with filter. @@ -36,7 +37,10 @@ public static void startPacketCaptureOnVirtualNetworkGatewayConnectionWithoutFil */ public static void startPacketCaptureOnVirtualNetworkGatewayConnectionWithFilter( com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGatewayConnections() + azure.networks() + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsStopPacketCaptureSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsStopPacketCaptureSamples.java index 74b40dea94302..67260c438df7b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsStopPacketCaptureSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsStopPacketCaptureSamples.java @@ -11,8 +11,7 @@ */ public final class VirtualNetworkGatewayConnectionsStopPacketCaptureSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewayConnectionStopPacketCapture.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayConnectionStopPacketCapture.json */ /** * Sample code: Stop packet capture on virtual network gateway connection. @@ -21,7 +20,10 @@ public final class VirtualNetworkGatewayConnectionsStopPacketCaptureSamples { */ public static void stopPacketCaptureOnVirtualNetworkGatewayConnection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGatewayConnections() + azure.networks() + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsUpdateTagsSamples.java index e00e579c853bc..63434e28d7b92 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsUpdateTagsSamples.java @@ -13,8 +13,7 @@ */ public final class VirtualNetworkGatewayConnectionsUpdateTagsSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewayConnectionUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayConnectionUpdateTags.json */ /** * Sample code: UpdateVirtualNetworkGatewayConnectionTags. @@ -22,8 +21,12 @@ public final class VirtualNetworkGatewayConnectionsUpdateTagsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updateVirtualNetworkGatewayConnectionTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGatewayConnections().updateTags("rg1", "test", - new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayNatRulesCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayNatRulesCreateOrUpdateSamples.java index 7a43bbe453be9..5045260505b33 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayNatRulesCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayNatRulesCreateOrUpdateSamples.java @@ -15,8 +15,7 @@ */ public final class VirtualNetworkGatewayNatRulesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewayNatRulePut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayNatRulePut.json */ /** * Sample code: VirtualNetworkGatewayNatRulePut. @@ -24,9 +23,13 @@ public final class VirtualNetworkGatewayNatRulesCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void virtualNetworkGatewayNatRulePut(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGatewayNatRules() + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkGatewayNatRules() .createOrUpdate("rg1", "gateway1", "natRule1", new VirtualNetworkGatewayNatRuleInner() - .withTypePropertiesType(VpnNatRuleType.STATIC).withMode(VpnNatRuleMode.EGRESS_SNAT) + .withTypePropertiesType(VpnNatRuleType.STATIC) + .withMode(VpnNatRuleMode.EGRESS_SNAT) .withInternalMappings( Arrays.asList(new VpnNatRuleMapping().withAddressSpace("10.4.0.0/24").withPortRange("200-300"))) .withExternalMappings( diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayNatRulesDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayNatRulesDeleteSamples.java index 6ea5a8af43d8d..913a004a5a153 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayNatRulesDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayNatRulesDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualNetworkGatewayNatRulesDeleteSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewayNatRuleDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayNatRuleDelete.json */ /** * Sample code: VirtualNetworkGatewayNatRuleDelete. @@ -18,7 +17,10 @@ public final class VirtualNetworkGatewayNatRulesDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void virtualNetworkGatewayNatRuleDelete(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGatewayNatRules().delete("rg1", "gateway1", - "natRule1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkGatewayNatRules() + .delete("rg1", "gateway1", "natRule1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayNatRulesGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayNatRulesGetSamples.java index 200a66963d606..e5cdce416721b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayNatRulesGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayNatRulesGetSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualNetworkGatewayNatRulesGetSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewayNatRuleGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayNatRuleGet.json */ /** * Sample code: VirtualNetworkGatewayNatRuleGet. @@ -18,7 +17,10 @@ public final class VirtualNetworkGatewayNatRulesGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void virtualNetworkGatewayNatRuleGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGatewayNatRules().getWithResponse("rg1", "gateway1", - "natRule1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkGatewayNatRules() + .getWithResponse("rg1", "gateway1", "natRule1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewaySamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewaySamples.java index 7ac07d5d5f80a..62d5362cbce78 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewaySamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewaySamples.java @@ -9,8 +9,7 @@ */ public final class VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewaySamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewayNatRuleList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayNatRuleList.json */ /** * Sample code: VirtualNetworkGatewayNatRuleList. @@ -18,7 +17,10 @@ public final class VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewaySampl * @param azure The entry point for accessing resource management APIs in Azure. */ public static void virtualNetworkGatewayNatRuleList(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGatewayNatRules().listByVirtualNetworkGateway("rg1", - "gateway1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkGatewayNatRules() + .listByVirtualNetworkGateway("rg1", "gateway1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysCreateOrUpdateSamples.java index e6eff3edefe0a..e2dd0f94358ec 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysCreateOrUpdateSamples.java @@ -29,9 +29,7 @@ */ public final class VirtualNetworkGatewaysCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualNetworkGatewayUpdate. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayUpdate.json */ /** * Sample code: UpdateVirtualNetworkGateway. @@ -39,48 +37,57 @@ public final class VirtualNetworkGatewaysCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updateVirtualNetworkGateway(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGateways().createOrUpdate("rg1", "vpngw", - new VirtualNetworkGatewayInner().withLocation("centralus") + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkGateways() + .createOrUpdate("rg1", "vpngw", new VirtualNetworkGatewayInner().withLocation("centralus") .withIpConfigurations(Arrays.asList(new VirtualNetworkGatewayIpConfigurationInner() - .withName("gwipconfig1").withPrivateIpAllocationMethod(IpAllocationMethod.DYNAMIC) + .withName("gwipconfig1") + .withPrivateIpAllocationMethod(IpAllocationMethod.DYNAMIC) .withSubnet(new SubResource().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/GatewaySubnet")) .withPublicIpAddress(new SubResource().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/gwpip")))) - .withGatewayType(VirtualNetworkGatewayType.VPN).withVpnType(VpnType.ROUTE_BASED).withEnableBgp(false) - .withActive(false).withDisableIpSecReplayProtection(false) + .withGatewayType(VirtualNetworkGatewayType.VPN) + .withVpnType(VpnType.ROUTE_BASED) + .withEnableBgp(false) + .withActive(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")))) + .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/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/natRules/natRule1") - .withName("natRule1").withTypePropertiesType(VpnNatRuleType.STATIC) + .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/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vpngw/natRules/natRule2") - .withName("natRule2").withTypePropertiesType(VpnNatRuleType.STATIC) + .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); + .withEnableBgpRouteTranslationForNat(false) + .withAllowVirtualWanTraffic(false) + .withAllowRemoteVnetTraffic(false), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkScalableGatewayUpdate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkScalableGatewayUpdate.json */ /** * Sample code: UpdateVirtualNetworkScalableGateway. @@ -88,34 +95,43 @@ public static void updateVirtualNetworkGateway(com.azure.resourcemanager.AzureRe * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updateVirtualNetworkScalableGateway(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGateways().createOrUpdate("rg1", "ergw", - new VirtualNetworkGatewayInner().withLocation("centralus") + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkGateways() + .createOrUpdate("rg1", "ergw", new VirtualNetworkGatewayInner().withLocation("centralus") .withIpConfigurations(Arrays.asList(new VirtualNetworkGatewayIpConfigurationInner() - .withName("gwipconfig1").withPrivateIpAllocationMethod(IpAllocationMethod.STATIC) + .withName("gwipconfig1") + .withPrivateIpAllocationMethod(IpAllocationMethod.STATIC) .withSubnet(new SubResource().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/GatewaySubnet")) .withPublicIpAddress(new SubResource().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/gwpip")))) - .withGatewayType(VirtualNetworkGatewayType.EXPRESS_ROUTE).withVpnType(VpnType.POLICY_BASED) - .withEnableBgp(false).withActive(false).withDisableIpSecReplayProtection(false) + .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)) .withNatRules(Arrays.asList(new VirtualNetworkGatewayNatRuleInner().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw/natRules/natRule1") - .withName("natRule1").withTypePropertiesType(VpnNatRuleType.STATIC) + .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/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/ergw/natRules/natRule2") - .withName("natRule2").withTypePropertiesType(VpnNatRuleType.STATIC) + .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); + .withEnableBgpRouteTranslationForNat(false) + .withAllowVirtualWanTraffic(false) + .withAllowRemoteVnetTraffic(false), com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysDeleteSamples.java index 9f61badf0a5c8..6142235fe6219 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysDeleteSamples.java @@ -9,9 +9,7 @@ */ public final class VirtualNetworkGatewaysDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualNetworkGatewayDelete. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayDelete.json */ /** * Sample code: DeleteVirtualNetworkGateway. @@ -19,7 +17,10 @@ public final class VirtualNetworkGatewaysDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteVirtualNetworkGateway(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGateways().delete("rg1", "vpngw", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkGateways() + .delete("rg1", "vpngw", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnectionsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnectionsSamples.java index 9d7f9828a64d7..3fc7d7423e7e3 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnectionsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnectionsSamples.java @@ -12,8 +12,7 @@ */ public final class VirtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConnectionsSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewaysDisconnectP2sVpnConnections.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewaysDisconnectP2sVpnConnections.json */ /** * Sample code: Disconnect VpnConnections from Virtual Network Gateway. @@ -22,7 +21,10 @@ public final class VirtualNetworkGatewaysDisconnectVirtualNetworkGatewayVpnConne */ public static void disconnectVpnConnectionsFromVirtualNetworkGateway(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGateways() + azure.networks() + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGenerateVpnProfileSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGenerateVpnProfileSamples.java index f43e0b0b28e15..51251bcbb89bc 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGenerateVpnProfileSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGenerateVpnProfileSamples.java @@ -11,8 +11,7 @@ */ public final class VirtualNetworkGatewaysGenerateVpnProfileSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewayGenerateVpnProfile.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayGenerateVpnProfile.json */ /** * Sample code: GenerateVirtualNetworkGatewayVPNProfile. @@ -20,7 +19,10 @@ public final class VirtualNetworkGatewaysGenerateVpnProfileSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void generateVirtualNetworkGatewayVPNProfile(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGateways().generateVpnProfile("rg1", "vpngw", - new VpnClientParameters(), com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkGateways() + .generateVpnProfile("rg1", "vpngw", new VpnClientParameters(), com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGeneratevpnclientpackageSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGeneratevpnclientpackageSamples.java index d3f53bed545f7..8bc90af71fd8e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGeneratevpnclientpackageSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGeneratevpnclientpackageSamples.java @@ -11,8 +11,7 @@ */ public final class VirtualNetworkGatewaysGeneratevpnclientpackageSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewayGenerateVpnClientPackage.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayGenerateVpnClientPackage.json */ /** * Sample code: GenerateVPNClientPackage. @@ -20,7 +19,10 @@ public final class VirtualNetworkGatewaysGeneratevpnclientpackageSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void generateVPNClientPackage(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGateways().generatevpnclientpackage("rg1", "vpngw", - new VpnClientParameters(), com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkGateways() + .generatevpnclientpackage("rg1", "vpngw", new VpnClientParameters(), com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetAdvertisedRoutesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetAdvertisedRoutesSamples.java index 13991b5ef7321..b034321796bcd 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetAdvertisedRoutesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetAdvertisedRoutesSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualNetworkGatewaysGetAdvertisedRoutesSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewayGetAdvertisedRoutes.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayGetAdvertisedRoutes.json */ /** * Sample code: GetVirtualNetworkGatewayAdvertisedRoutes. @@ -18,7 +17,10 @@ public final class VirtualNetworkGatewaysGetAdvertisedRoutesSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getVirtualNetworkGatewayAdvertisedRoutes(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGateways().getAdvertisedRoutes("rg1", "vpngw", - "test", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkGateways() + .getAdvertisedRoutes("rg1", "vpngw", "test", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetBgpPeerStatusSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetBgpPeerStatusSamples.java index 4df1012e511a9..9f8c0a0725e4d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetBgpPeerStatusSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetBgpPeerStatusSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualNetworkGatewaysGetBgpPeerStatusSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewayGetBGPPeerStatus.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayGetBGPPeerStatus.json */ /** * Sample code: GetVirtualNetworkGatewayBGPPeerStatus. @@ -18,7 +17,10 @@ public final class VirtualNetworkGatewaysGetBgpPeerStatusSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getVirtualNetworkGatewayBGPPeerStatus(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGateways().getBgpPeerStatus("rg1", "vpngw", null, - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkGateways() + .getBgpPeerStatus("rg1", "vpngw", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetByResourceGroupSamples.java index 144df3a675ce7..ce22499e27c79 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualNetworkGatewaysGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualNetworkGatewayGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayGet.json */ /** * Sample code: GetVirtualNetworkGateway. @@ -18,13 +17,15 @@ public final class VirtualNetworkGatewaysGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getVirtualNetworkGateway(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGateways().getByResourceGroupWithResponse("rg1", - "vpngw", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkGateways() + .getByResourceGroupWithResponse("rg1", "vpngw", com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkScalableGatewayGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkScalableGatewayGet.json */ /** * Sample code: GetVirtualNetworkScalableGateway. @@ -32,7 +33,10 @@ public static void getVirtualNetworkGateway(com.azure.resourcemanager.AzureResou * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getVirtualNetworkScalableGateway(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGateways().getByResourceGroupWithResponse("rg1", - "ergw", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkGateways() + .getByResourceGroupWithResponse("rg1", "ergw", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetLearnedRoutesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetLearnedRoutesSamples.java index fd0ee2b90ff84..85725b260de01 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetLearnedRoutesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetLearnedRoutesSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualNetworkGatewaysGetLearnedRoutesSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewayLearnedRoutes.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayLearnedRoutes.json */ /** * Sample code: GetVirtualNetworkGatewayLearnedRoutes. @@ -18,7 +17,10 @@ public final class VirtualNetworkGatewaysGetLearnedRoutesSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getVirtualNetworkGatewayLearnedRoutes(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGateways().getLearnedRoutes("rg1", "vpngw", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkGateways() + .getLearnedRoutes("rg1", "vpngw", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetVpnProfilePackageUrlSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetVpnProfilePackageUrlSamples.java index d172bebcf4fa0..5046c31af70f0 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetVpnProfilePackageUrlSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetVpnProfilePackageUrlSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualNetworkGatewaysGetVpnProfilePackageUrlSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewayGetVpnProfilePackageUrl.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayGetVpnProfilePackageUrl.json */ /** * Sample code: GetVirtualNetworkGatewayVPNProfilePackageURL. @@ -19,7 +18,10 @@ public final class VirtualNetworkGatewaysGetVpnProfilePackageUrlSamples { */ public static void getVirtualNetworkGatewayVPNProfilePackageURL(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGateways().getVpnProfilePackageUrl("rg1", "vpngw", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkGateways() + .getVpnProfilePackageUrl("rg1", "vpngw", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetVpnclientConnectionHealthSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetVpnclientConnectionHealthSamples.java index 58d40ac31d9ee..849a328881735 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetVpnclientConnectionHealthSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetVpnclientConnectionHealthSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualNetworkGatewaysGetVpnclientConnectionHealthSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewayGetVpnclientConnectionHealth.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayGetVpnclientConnectionHealth.json */ /** * Sample code: GetVirtualNetworkGatewayVpnclientConnectionHealth. @@ -19,7 +18,10 @@ public final class VirtualNetworkGatewaysGetVpnclientConnectionHealthSamples { */ public static void getVirtualNetworkGatewayVpnclientConnectionHealth(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGateways() + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkGateways() .getVpnclientConnectionHealth("p2s-vnet-test", "vpnp2sgw", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetVpnclientIpsecParametersSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetVpnclientIpsecParametersSamples.java index a3530223094c6..4823a4e8016c3 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetVpnclientIpsecParametersSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysGetVpnclientIpsecParametersSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualNetworkGatewaysGetVpnclientIpsecParametersSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewayGetVpnClientIpsecParameters.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json */ /** * Sample code: Get VirtualNetworkGateway VpnClientIpsecParameters. @@ -19,7 +18,10 @@ public final class VirtualNetworkGatewaysGetVpnclientIpsecParametersSamples { */ public static void getVirtualNetworkGatewayVpnClientIpsecParameters(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGateways().getVpnclientIpsecParameters("rg1", - "vpngw", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkGateways() + .getVpnclientIpsecParameters("rg1", "vpngw", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysListByResourceGroupSamples.java index c7b71b6aceb67..cc17f1cbcf9c3 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysListByResourceGroupSamples.java @@ -9,9 +9,7 @@ */ public final class VirtualNetworkGatewaysListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualNetworkGatewayList. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayList.json */ /** * Sample code: ListVirtualNetworkGatewaysinResourceGroup. @@ -19,7 +17,10 @@ public final class VirtualNetworkGatewaysListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listVirtualNetworkGatewaysinResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGateways().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkGateways() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysListConnectionsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysListConnectionsSamples.java index 2a84ddd16dd65..5fd8023a09d81 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysListConnectionsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysListConnectionsSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualNetworkGatewaysListConnectionsSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewaysListConnections.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewaysListConnections.json */ /** * Sample code: VirtualNetworkGatewaysListConnections. @@ -18,7 +17,10 @@ public final class VirtualNetworkGatewaysListConnectionsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void virtualNetworkGatewaysListConnections(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGateways().listConnections("testrg", - "test-vpn-gateway-1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkGateways() + .listConnections("testrg", "test-vpn-gateway-1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysResetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysResetSamples.java index d02581607f003..82512fbaab7d5 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysResetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysResetSamples.java @@ -9,9 +9,7 @@ */ public final class VirtualNetworkGatewaysResetSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualNetworkGatewayReset. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayReset.json */ /** * Sample code: ResetVirtualNetworkGateway. @@ -19,7 +17,10 @@ public final class VirtualNetworkGatewaysResetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void resetVirtualNetworkGateway(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGateways().reset("rg1", "vpngw", null, - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkGateways() + .reset("rg1", "vpngw", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysResetVpnClientSharedKeySamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysResetVpnClientSharedKeySamples.java index 6c8bd2cdff90c..ae3b1ff392f6a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysResetVpnClientSharedKeySamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysResetVpnClientSharedKeySamples.java @@ -9,8 +9,7 @@ */ public final class VirtualNetworkGatewaysResetVpnClientSharedKeySamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewayResetVpnClientSharedKey.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayResetVpnClientSharedKey.json */ /** * Sample code: ResetVpnClientSharedKey. @@ -18,7 +17,10 @@ public final class VirtualNetworkGatewaysResetVpnClientSharedKeySamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void resetVpnClientSharedKey(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGateways().resetVpnClientSharedKey("rg1", "vpngw", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkGateways() + .resetVpnClientSharedKey("rg1", "vpngw", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysSetVpnclientIpsecParametersSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysSetVpnclientIpsecParametersSamples.java index e13b128d72b64..775ceb7e02f82 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysSetVpnclientIpsecParametersSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysSetVpnclientIpsecParametersSamples.java @@ -17,8 +17,7 @@ */ public final class VirtualNetworkGatewaysSetVpnclientIpsecParametersSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewaySetVpnClientIpsecParameters.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewaySetVpnClientIpsecParameters.json */ /** * Sample code: Set VirtualNetworkGateway VpnClientIpsecParameters. @@ -27,12 +26,19 @@ public final class VirtualNetworkGatewaysSetVpnclientIpsecParametersSamples { */ public static void setVirtualNetworkGatewayVpnClientIpsecParameters(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysStartPacketCaptureSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysStartPacketCaptureSamples.java index c6f1a40aa8f4b..f4a9029ebdcdb 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysStartPacketCaptureSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysStartPacketCaptureSamples.java @@ -11,8 +11,7 @@ */ public final class VirtualNetworkGatewaysStartPacketCaptureSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewayStartPacketCaptureFilterData.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayStartPacketCaptureFilterData.json */ /** * Sample code: Start packet capture on virtual network gateway with filter. @@ -21,15 +20,17 @@ public final class VirtualNetworkGatewaysStartPacketCaptureSamples { */ public static void startPacketCaptureOnVirtualNetworkGatewayWithFilter(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGateways().startPacketCapture("rg1", "vpngw", - new VpnPacketCaptureStartParameters().withFilterData( + azure.networks() + .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); + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewayStartPacketCapture.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayStartPacketCapture.json */ /** * Sample code: Start packet capture on virtual network gateway without filter. @@ -38,7 +39,10 @@ public final class VirtualNetworkGatewaysStartPacketCaptureSamples { */ public static void startPacketCaptureOnVirtualNetworkGatewayWithoutFilter(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGateways().startPacketCapture("rg1", "vpngw", null, - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkGateways() + .startPacketCapture("rg1", "vpngw", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysStopPacketCaptureSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysStopPacketCaptureSamples.java index f54a9f3058df4..6db4a85ddbf2c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysStopPacketCaptureSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysStopPacketCaptureSamples.java @@ -11,8 +11,7 @@ */ public final class VirtualNetworkGatewaysStopPacketCaptureSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewayStopPacketCapture.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayStopPacketCapture.json */ /** * Sample code: Stop packet capture on virtual network gateway. @@ -20,9 +19,12 @@ public final class VirtualNetworkGatewaysStopPacketCaptureSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void stopPacketCaptureOnVirtualNetworkGateway(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGateways().stopPacketCapture("rg1", "vpngw", - new VpnPacketCaptureStopParameters().withSasUrl( + azure.networks() + .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); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysSupportedVpnDevicesSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysSupportedVpnDevicesSamples.java index c1ea2ed0a5a25..d461a1cee870d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysSupportedVpnDevicesSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysSupportedVpnDevicesSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualNetworkGatewaysSupportedVpnDevicesSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewaySupportedVpnDevice.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewaySupportedVpnDevice.json */ /** * Sample code: ListVirtualNetworkGatewaySupportedVPNDevices. @@ -19,7 +18,10 @@ public final class VirtualNetworkGatewaysSupportedVpnDevicesSamples { */ public static void listVirtualNetworkGatewaySupportedVPNDevices(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGateways().supportedVpnDevicesWithResponse("rg1", - "vpngw", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkGateways() + .supportedVpnDevicesWithResponse("rg1", "vpngw", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysUpdateTagsSamples.java index 7a1721d5a60f4..647eb67747ff2 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysUpdateTagsSamples.java @@ -13,8 +13,7 @@ */ public final class VirtualNetworkGatewaysUpdateTagsSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewayUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayUpdateTags.json */ /** * Sample code: UpdateVirtualNetworkGatewayTags. @@ -22,8 +21,12 @@ public final class VirtualNetworkGatewaysUpdateTagsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updateVirtualNetworkGatewayTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGateways().updateTags("rg1", "vpngw", - new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysVpnDeviceConfigurationScriptSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysVpnDeviceConfigurationScriptSamples.java index 503754cc5601c..c129a06daab33 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysVpnDeviceConfigurationScriptSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewaysVpnDeviceConfigurationScriptSamples.java @@ -11,8 +11,7 @@ */ public final class VirtualNetworkGatewaysVpnDeviceConfigurationScriptSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGatewayVpnDeviceConfigurationScript.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGatewayVpnDeviceConfigurationScript.json */ /** * Sample code: GetVPNDeviceConfigurationScript. @@ -20,9 +19,14 @@ public final class VirtualNetworkGatewaysVpnDeviceConfigurationScriptSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getVPNDeviceConfigurationScript(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkGateways() - .vpnDeviceConfigurationScriptWithResponse("rg1", "vpngw", new VpnDeviceScriptParameters() - .withVendor("Cisco").withDeviceFamily("ISR").withFirmwareVersion("IOS 15.1 (Preview)"), + azure.networks() + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkPeeringsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkPeeringsCreateOrUpdateSamples.java index d68e52c0a2c02..a50a75b8282dc 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkPeeringsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkPeeringsCreateOrUpdateSamples.java @@ -13,9 +13,7 @@ */ public final class VirtualNetworkPeeringsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualNetworkPeeringSync. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkPeeringSync.json */ /** * Sample code: Sync Peering. @@ -23,19 +21,22 @@ public final class VirtualNetworkPeeringsCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void syncPeering(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkPeerings().createOrUpdate("peerTest", "vnet1", - "peer", - new VirtualNetworkPeeringInner().withAllowVirtualNetworkAccess(true).withAllowForwardedTraffic(true) - .withAllowGatewayTransit(false).withUseRemoteGateways(false) + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkPeerings() + .createOrUpdate("peerTest", "vnet1", "peer", new VirtualNetworkPeeringInner() + .withAllowVirtualNetworkAccess(true) + .withAllowForwardedTraffic(true) + .withAllowGatewayTransit(false) + .withUseRemoteGateways(false) .withRemoteVirtualNetwork(new SubResource().withId( "/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Network/virtualNetworks/vnet2")), - SyncRemoteAddressSpace.TRUE, com.azure.core.util.Context.NONE); + SyncRemoteAddressSpace.TRUE, com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualNetworkPeeringCreate. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkPeeringCreate.json */ /** * Sample code: Create peering. @@ -43,18 +44,22 @@ public static void syncPeering(com.azure.resourcemanager.AzureResourceManager az * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createPeering(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkPeerings().createOrUpdate("peerTest", "vnet1", - "peer", - new VirtualNetworkPeeringInner().withAllowVirtualNetworkAccess(true).withAllowForwardedTraffic(true) - .withAllowGatewayTransit(false).withUseRemoteGateways(false) + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkPeerings() + .createOrUpdate("peerTest", "vnet1", "peer", new VirtualNetworkPeeringInner() + .withAllowVirtualNetworkAccess(true) + .withAllowForwardedTraffic(true) + .withAllowGatewayTransit(false) + .withUseRemoteGateways(false) .withRemoteVirtualNetwork(new SubResource().withId( "/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Network/virtualNetworks/vnet2")), - null, com.azure.core.util.Context.NONE); + null, com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkPeeringCreateWithRemoteVirtualNetworkEncryption.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkPeeringCreateWithRemoteVirtualNetworkEncryption.json */ /** * Sample code: Create peering with remote virtual network encryption. @@ -63,12 +68,17 @@ public static void createPeering(com.azure.resourcemanager.AzureResourceManager */ public static void createPeeringWithRemoteVirtualNetworkEncryption(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkPeerings().createOrUpdate("peerTest", "vnet1", - "peer", - new VirtualNetworkPeeringInner().withAllowVirtualNetworkAccess(true).withAllowForwardedTraffic(true) - .withAllowGatewayTransit(false).withUseRemoteGateways(false) + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkPeerings() + .createOrUpdate("peerTest", "vnet1", "peer", new VirtualNetworkPeeringInner() + .withAllowVirtualNetworkAccess(true) + .withAllowForwardedTraffic(true) + .withAllowGatewayTransit(false) + .withUseRemoteGateways(false) .withRemoteVirtualNetwork(new SubResource().withId( "/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Network/virtualNetworks/vnet2")), - null, com.azure.core.util.Context.NONE); + null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkPeeringsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkPeeringsDeleteSamples.java index 94c995a1a528f..b22b55552d7f1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkPeeringsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkPeeringsDeleteSamples.java @@ -9,9 +9,7 @@ */ public final class VirtualNetworkPeeringsDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualNetworkPeeringDelete. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkPeeringDelete.json */ /** * Sample code: Delete peering. @@ -19,7 +17,10 @@ public final class VirtualNetworkPeeringsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deletePeering(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkPeerings().delete("peerTest", "vnet1", "peer", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkPeerings() + .delete("peerTest", "vnet1", "peer", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkPeeringsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkPeeringsGetSamples.java index c7c49b297e4d0..a46c5ff2d03a9 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkPeeringsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkPeeringsGetSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualNetworkPeeringsGetSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualNetworkPeeringGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkPeeringGet.json */ /** * Sample code: Get peering. @@ -18,13 +17,15 @@ public final class VirtualNetworkPeeringsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getPeering(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkPeerings().getWithResponse("peerTest", "vnet1", - "peer", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkPeerings() + .getWithResponse("peerTest", "vnet1", "peer", com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkPeeringGetWithRemoteVirtualNetworkEncryption.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkPeeringGetWithRemoteVirtualNetworkEncryption.json */ /** * Sample code: Get peering with remote virtual network encryption. @@ -33,7 +34,10 @@ public static void getPeering(com.azure.resourcemanager.AzureResourceManager azu */ public static void getPeeringWithRemoteVirtualNetworkEncryption(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkPeerings().getWithResponse("peerTest", "vnet1", - "peer", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkPeerings() + .getWithResponse("peerTest", "vnet1", "peer", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkPeeringsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkPeeringsListSamples.java index c037700a2b7e9..9a91e4b6ca96c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkPeeringsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkPeeringsListSamples.java @@ -9,9 +9,7 @@ */ public final class VirtualNetworkPeeringsListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualNetworkPeeringList. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkPeeringList.json */ /** * Sample code: List peerings. @@ -19,13 +17,15 @@ public final class VirtualNetworkPeeringsListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listPeerings(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkPeerings().list("peerTest", "vnet1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkPeerings() + .list("peerTest", "vnet1", com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkPeeringListWithRemoteVirtualNetworkEncryption.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkPeeringListWithRemoteVirtualNetworkEncryption.json */ /** * Sample code: List peerings with remote virtual network encryption. @@ -34,7 +34,10 @@ public static void listPeerings(com.azure.resourcemanager.AzureResourceManager a */ public static void listPeeringsWithRemoteVirtualNetworkEncryption(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkPeerings().list("peerTest", "vnet1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkPeerings() + .list("peerTest", "vnet1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsCreateOrUpdateSamples.java index f418dd4fd48bd..1ccec926d5c56 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsCreateOrUpdateSamples.java @@ -12,8 +12,7 @@ */ public final class VirtualNetworkTapsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualNetworkTapCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkTapCreate.json */ /** * Sample code: Create Virtual Network Tap. @@ -21,10 +20,13 @@ public final class VirtualNetworkTapsCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createVirtualNetworkTap(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkTaps().createOrUpdate("rg1", "test-vtap", - new VirtualNetworkTapInner().withLocation("centraluseuap") + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkTaps() + .createOrUpdate("rg1", "test-vtap", new VirtualNetworkTapInner().withLocation("centraluseuap") .withDestinationNetworkInterfaceIpConfiguration(new NetworkInterfaceIpConfigurationInner().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/testNetworkInterface/ipConfigurations/ipconfig1")), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsDeleteSamples.java index b6d5ea0b643a3..3bde057d4a964 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualNetworkTapsDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualNetworkTapDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkTapDelete.json */ /** * Sample code: Delete Virtual Network Tap resource. @@ -18,7 +17,10 @@ public final class VirtualNetworkTapsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteVirtualNetworkTapResource(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkTaps().delete("rg1", "test-vtap", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkTaps() + .delete("rg1", "test-vtap", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsGetByResourceGroupSamples.java index 07f948b93a2ba..8a7a84f174b11 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualNetworkTapsGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualNetworkTapGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkTapGet.json */ /** * Sample code: Get Virtual Network Tap. @@ -18,7 +17,10 @@ public final class VirtualNetworkTapsGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getVirtualNetworkTap(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkTaps().getByResourceGroupWithResponse("rg1", - "testvtap", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkTaps() + .getByResourceGroupWithResponse("rg1", "testvtap", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsListByResourceGroupSamples.java index 435b8f6061df3..f29d6924f30e7 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualNetworkTapsListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualNetworkTapList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkTapList.json */ /** * Sample code: List virtual network taps in resource group. @@ -18,7 +17,10 @@ public final class VirtualNetworkTapsListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listVirtualNetworkTapsInResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkTaps().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworkTaps() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsListSamples.java index 6e540d96281f2..b61b33c56b905 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsListSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualNetworkTapsListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualNetworkTapListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkTapListAll.json */ /** * Sample code: List all virtual network taps. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsUpdateTagsSamples.java index a58d54460d3a9..2aeca03d1c2d3 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkTapsUpdateTagsSamples.java @@ -13,9 +13,7 @@ */ public final class VirtualNetworkTapsUpdateTagsSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualNetworkTapUpdateTags. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkTapUpdateTags.json */ /** * Sample code: Update virtual network tap tags. @@ -23,8 +21,12 @@ public final class VirtualNetworkTapsUpdateTagsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updateVirtualNetworkTapTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworkTaps().updateTagsWithResponse("rg1", "test-vtap", - new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksCheckIpAddressAvailabilitySamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksCheckIpAddressAvailabilitySamples.java index 76938e849bb75..8f03d57f88e5a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksCheckIpAddressAvailabilitySamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksCheckIpAddressAvailabilitySamples.java @@ -9,8 +9,7 @@ */ public final class VirtualNetworksCheckIpAddressAvailabilitySamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkCheckIPAddressAvailability.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkCheckIPAddressAvailability.json */ /** * Sample code: Check IP address availability. @@ -18,7 +17,10 @@ public final class VirtualNetworksCheckIpAddressAvailabilitySamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void checkIPAddressAvailability(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworks().checkIpAddressAvailabilityWithResponse("rg1", - "test-vnet", "10.0.1.4", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworks() + .checkIpAddressAvailabilityWithResponse("rg1", "test-vnet", "10.0.1.4", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksCreateOrUpdateSamples.java index 65a2f3a3d4002..1959d6b8c14a7 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksCreateOrUpdateSamples.java @@ -20,9 +20,7 @@ */ public final class VirtualNetworksCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualNetworkCreateSubnet. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkCreateSubnet.json */ /** * Sample code: Create virtual network with subnet. @@ -30,16 +28,19 @@ public final class VirtualNetworksCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createVirtualNetworkWithSubnet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkCreateWithBgpCommunities.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkCreateWithBgpCommunities.json */ /** * Sample code: Create virtual network with Bgp Communities. @@ -47,17 +48,20 @@ public static void createVirtualNetworkWithSubnet(com.azure.resourcemanager.Azur * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createVirtualNetworkWithBgpCommunities(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkCreateSubnetWithAddressPrefixes.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkCreateSubnetWithAddressPrefixes.json */ /** * Sample code: Create virtual network with subnet containing address prefixes. @@ -66,17 +70,20 @@ public static void createVirtualNetworkWithBgpCommunities(com.azure.resourcemana */ public static void createVirtualNetworkWithSubnetContainingAddressPrefixes(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkCreateSubnetWithDelegation.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkCreateSubnetWithDelegation.json */ /** * Sample code: Create virtual network with delegated subnets. @@ -84,18 +91,21 @@ public static void createVirtualNetworkWithBgpCommunities(com.azure.resourcemana * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createVirtualNetworkWithDelegatedSubnets(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworks().createOrUpdate("rg1", "test-vnet", - new VirtualNetworkInner().withLocation("westcentralus") + azure.networks() + .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") + .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); + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkCreateWithEncryption.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkCreateWithEncryption.json */ /** * Sample code: Create virtual network with encryption. @@ -103,18 +113,21 @@ public static void createVirtualNetworkWithDelegatedSubnets(com.azure.resourcema * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createVirtualNetworkWithEncryption(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualNetworkCreate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkCreate.json */ /** * Sample code: Create virtual network. @@ -122,16 +135,19 @@ public static void createVirtualNetworkWithEncryption(com.azure.resourcemanager. * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createVirtualNetwork(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkCreateServiceEndpointPolicy.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkCreateServiceEndpointPolicy.json */ /** * Sample code: Create virtual network with service endpoints and service endpoint policy. @@ -140,20 +156,23 @@ public static void createVirtualNetwork(com.azure.resourcemanager.AzureResourceM */ public static void createVirtualNetworkWithServiceEndpointsAndServiceEndpointPolicy( com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworks().createOrUpdate("vnetTest", "vnet1", - new VirtualNetworkInner().withLocation("eastus2euap") + azure.networks() + .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") + .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/subid/resourceGroups/vnetTest/providers/Microsoft.Network/serviceEndpointPolicies/ServiceEndpointPolicy1"))))), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkCreateServiceEndpoints.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkCreateServiceEndpoints.json */ /** * Sample code: Create virtual network with service endpoints. @@ -161,12 +180,18 @@ public static void createVirtualNetworkWithServiceEndpointsAndServiceEndpointPol * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createVirtualNetworkWithServiceEndpoints(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksDeleteSamples.java index a788294704303..6e00513e7cfa1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualNetworksDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualNetworkDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkDelete.json */ /** * Sample code: Delete virtual network. @@ -18,7 +17,10 @@ public final class VirtualNetworksDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteVirtualNetwork(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworks().delete("rg1", "test-vnet", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworks() + .delete("rg1", "test-vnet", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksGetByResourceGroupSamples.java index cced5ccd85fdc..2e5e67ea53db4 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualNetworksGetByResourceGroupSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGetWithSubnetDelegation.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGetWithSubnetDelegation.json */ /** * Sample code: Get virtual network with a delegated subnet. @@ -18,13 +17,15 @@ public final class VirtualNetworksGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getVirtualNetworkWithADelegatedSubnet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworks().getByResourceGroupWithResponse("rg1", - "test-vnet", null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworks() + .getByResourceGroupWithResponse("rg1", "test-vnet", null, com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGetWithServiceAssociationLink.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGetWithServiceAssociationLink.json */ /** * Sample code: Get virtual network with service association links. @@ -33,13 +34,15 @@ public static void getVirtualNetworkWithADelegatedSubnet(com.azure.resourcemanag */ public static void getVirtualNetworkWithServiceAssociationLinks(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworks().getByResourceGroupWithResponse("rg1", - "test-vnet", null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworks() + .getByResourceGroupWithResponse("rg1", "test-vnet", null, com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualNetworkGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGet.json */ /** * Sample code: Get virtual network. @@ -47,7 +50,10 @@ public static void getVirtualNetworkWithADelegatedSubnet(com.azure.resourcemanag * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getVirtualNetwork(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworks().getByResourceGroupWithResponse("rg1", - "test-vnet", null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworks() + .getByResourceGroupWithResponse("rg1", "test-vnet", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksListByResourceGroupSamples.java index 75feb0c25ca1a..737637c34489c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualNetworksListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualNetworkList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkList.json */ /** * Sample code: List virtual networks in resource group. @@ -18,7 +17,10 @@ public final class VirtualNetworksListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listVirtualNetworksInResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworks().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworks() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksListDdosProtectionStatusSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksListDdosProtectionStatusSamples.java index f289f41d1cb4b..ee66ad7ed1486 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksListDdosProtectionStatusSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksListDdosProtectionStatusSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualNetworksListDdosProtectionStatusSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualNetworkGetDdosProtectionStatus.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkGetDdosProtectionStatus.json */ /** * Sample code: Get Ddos Protection Status of a Virtual Network. @@ -18,7 +17,10 @@ public final class VirtualNetworksListDdosProtectionStatusSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getDdosProtectionStatusOfAVirtualNetwork(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworks().listDdosProtectionStatus("rg1", "test-vnet", 75, - null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworks() + .listDdosProtectionStatus("rg1", "test-vnet", 75, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksListSamples.java index 76938032e31f9..8ce69eb3d955b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksListSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualNetworksListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualNetworkListAll.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkListAll.json */ /** * Sample code: List all virtual networks. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksListUsageSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksListUsageSamples.java index ba01609d479e8..bffc013c0c329 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksListUsageSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksListUsageSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualNetworksListUsageSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualNetworkListUsage.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkListUsage.json */ /** * Sample code: VnetGetUsage. @@ -18,7 +17,10 @@ public final class VirtualNetworksListUsageSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void vnetGetUsage(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworks().listUsage("rg1", "vnetName", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualNetworks() + .listUsage("rg1", "vnetName", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksUpdateTagsSamples.java index 6b34c2472d4c4..76dc7cb5d9a4c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworksUpdateTagsSamples.java @@ -13,8 +13,7 @@ */ public final class VirtualNetworksUpdateTagsSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualNetworkUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualNetworkUpdateTags.json */ /** * Sample code: Update virtual network tags. @@ -22,8 +21,12 @@ public final class VirtualNetworksUpdateTagsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void updateVirtualNetworkTags(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualNetworks().updateTagsWithResponse("rg1", "test-vnet", - new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRouterPeeringsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRouterPeeringsCreateOrUpdateSamples.java index dba1653e7c40d..a5823a8d80277 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRouterPeeringsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRouterPeeringsCreateOrUpdateSamples.java @@ -11,8 +11,7 @@ */ public final class VirtualRouterPeeringsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualRouterPeeringPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualRouterPeeringPut.json */ /** * Sample code: Create Virtual Router Peering. @@ -20,8 +19,12 @@ public final class VirtualRouterPeeringsCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createVirtualRouterPeering(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualRouterPeerings().createOrUpdate("rg1", "virtualRouter", - "peering1", new VirtualRouterPeeringInner().withPeerAsn(20000L).withPeerIp("192.168.1.5"), - com.azure.core.util.Context.NONE); + azure.networks() + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRouterPeeringsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRouterPeeringsDeleteSamples.java index bf05ee06ea51e..4ad1de752b05a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRouterPeeringsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRouterPeeringsDeleteSamples.java @@ -9,9 +9,7 @@ */ public final class VirtualRouterPeeringsDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualRouterPeeringDelete. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualRouterPeeringDelete.json */ /** * Sample code: Delete VirtualRouterPeering. @@ -19,7 +17,10 @@ public final class VirtualRouterPeeringsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteVirtualRouterPeering(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualRouterPeerings().delete("rg1", "virtualRouter", "peering1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualRouterPeerings() + .delete("rg1", "virtualRouter", "peering1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRouterPeeringsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRouterPeeringsGetSamples.java index bdde50b8099bf..d03a0d7622eb7 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRouterPeeringsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRouterPeeringsGetSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualRouterPeeringsGetSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualRouterPeeringGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualRouterPeeringGet.json */ /** * Sample code: Get Virtual Router Peering. @@ -18,7 +17,10 @@ public final class VirtualRouterPeeringsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getVirtualRouterPeering(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualRouterPeerings().getWithResponse("rg1", "virtualRouter", - "peering1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualRouterPeerings() + .getWithResponse("rg1", "virtualRouter", "peering1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRouterPeeringsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRouterPeeringsListSamples.java index 2533d105426ed..1650b5df7add6 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRouterPeeringsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRouterPeeringsListSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualRouterPeeringsListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualRouterPeeringList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualRouterPeeringList.json */ /** * Sample code: List all Virtual Router Peerings for a given Virtual Router. @@ -19,7 +18,10 @@ public final class VirtualRouterPeeringsListSamples { */ public static void listAllVirtualRouterPeeringsForAGivenVirtualRouter(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualRouterPeerings().list("rg1", "virtualRouter", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualRouterPeerings() + .list("rg1", "virtualRouter", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersCreateOrUpdateSamples.java index 5b99d0381b32f..3b2cbde91d67a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersCreateOrUpdateSamples.java @@ -14,8 +14,7 @@ */ public final class VirtualRoutersCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualRouterPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualRouterPut.json */ /** * Sample code: Create VirtualRouter. @@ -23,11 +22,15 @@ public final class VirtualRoutersCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void createVirtualRouter(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualRouters().createOrUpdate("rg1", "virtualRouter", - new VirtualRouterInner().withLocation("West US").withTags(mapOf("key1", "fakeTokenPlaceholder")) + azure.networks() + .manager() + .serviceClient() + .getVirtualRouters() + .createOrUpdate("rg1", "virtualRouter", new VirtualRouterInner().withLocation("West US") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) .withHostedGateway(new SubResource().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/vnetGateway")), - com.azure.core.util.Context.NONE); + com.azure.core.util.Context.NONE); } // Use "Map.of" if available diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersDeleteSamples.java index 03096f1bc9b4a..5c4f6d9168449 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualRoutersDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualRouterDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualRouterDelete.json */ /** * Sample code: Delete VirtualRouter. @@ -18,7 +17,10 @@ public final class VirtualRoutersDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deleteVirtualRouter(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualRouters().delete("rg1", "virtualRouter", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualRouters() + .delete("rg1", "virtualRouter", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersGetByResourceGroupSamples.java index 428af9b8fd7e0..cf185132808c6 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualRoutersGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualRouterGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualRouterGet.json */ /** * Sample code: Get VirtualRouter. @@ -18,7 +17,10 @@ public final class VirtualRoutersGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getVirtualRouter(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualRouters().getByResourceGroupWithResponse("rg1", - "virtualRouter", null, com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualRouters() + .getByResourceGroupWithResponse("rg1", "virtualRouter", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersListByResourceGroupSamples.java index 449b5ec618d97..6a2ccda0496e1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualRoutersListByResourceGroupSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualRouterListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualRouterListByResourceGroup.json */ /** * Sample code: List all Virtual Router for a given resource group. @@ -19,7 +18,10 @@ public final class VirtualRoutersListByResourceGroupSamples { */ public static void listAllVirtualRouterForAGivenResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualRouters().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualRouters() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersListSamples.java index ab16dabecc2da..545da4eeaa235 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualRoutersListSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualRoutersListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VirtualRouterListBySubscription.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualRouterListBySubscription.json */ /** * Sample code: List all Virtual Routers for a given subscription. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansCreateOrUpdateSamples.java index b158599e8d8fa..5ef597d0cdf2e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansCreateOrUpdateSamples.java @@ -13,8 +13,7 @@ */ public final class VirtualWansCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualWANPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualWANPut.json */ /** * Sample code: VirtualWANCreate. @@ -22,10 +21,16 @@ public final class VirtualWansCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void virtualWANCreate(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansDeleteSamples.java index baafe727419b6..5645108f20066 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualWansDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualWANDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualWANDelete.json */ /** * Sample code: VirtualWANDelete. @@ -18,7 +17,10 @@ public final class VirtualWansDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void virtualWANDelete(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualWans().delete("rg1", "virtualWan1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualWans() + .delete("rg1", "virtualWan1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansGetByResourceGroupSamples.java index 3d23b402656b0..16fea7c2a3b41 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualWansGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualWANGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualWANGet.json */ /** * Sample code: VirtualWANGet. @@ -18,7 +17,10 @@ public final class VirtualWansGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void virtualWANGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualWans().getByResourceGroupWithResponse("rg1", "wan1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualWans() + .getByResourceGroupWithResponse("rg1", "wan1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansListByResourceGroupSamples.java index 97be7f4f84ac6..11da8300a0a5b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansListByResourceGroupSamples.java @@ -9,9 +9,7 @@ */ public final class VirtualWansListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualWANListByResourceGroup - * .json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualWANListByResourceGroup.json */ /** * Sample code: VirtualWANListByResourceGroup. @@ -19,7 +17,10 @@ public final class VirtualWansListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void virtualWANListByResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualWans().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVirtualWans() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansListSamples.java index a2af356b8414a..0081f63607c32 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansListSamples.java @@ -9,8 +9,7 @@ */ public final class VirtualWansListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualWANList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualWANList.json */ /** * Sample code: VirtualWANList. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansUpdateTagsSamples.java index 0843a56c88e7c..7c2db0dfa8ed8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualWansUpdateTagsSamples.java @@ -13,8 +13,7 @@ */ public final class VirtualWansUpdateTagsSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VirtualWANUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VirtualWANUpdateTags.json */ /** * Sample code: VirtualWANUpdate. @@ -22,9 +21,13 @@ public final class VirtualWansUpdateTagsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void virtualWANUpdate(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVirtualWans().updateTagsWithResponse("rg1", "wan1", - new TagsObject().withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")), - com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsCreateOrUpdateSamples.java index 89a2297b1fb39..fe8aeafd987c5 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsCreateOrUpdateSamples.java @@ -18,8 +18,7 @@ */ public final class VpnConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VpnConnectionPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnConnectionPut.json */ /** * Sample code: VpnConnectionPut. @@ -27,7 +26,10 @@ public final class VpnConnectionsCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void vpnConnectionPut(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVpnConnections() + azure.networks() + .manager() + .serviceClient() + .getVpnConnections() .createOrUpdate("rg1", "gateway1", "vpnConnection1", new VpnConnectionInner() .withRemoteVpnSite(new SubResource() .withId("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1")) @@ -37,7 +39,8 @@ public static void vpnConnectionPut(com.azure.resourcemanager.AzureResourceManag "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1/vpnSiteLinks/siteLink1")) .withVpnLinkConnectionMode(VpnLinkConnectionMode.DEFAULT) .withVpnConnectionProtocolType(VirtualNetworkGatewayConnectionProtocol.IKEV2) - .withConnectionBandwidth(200).withSharedKey("fakeTokenPlaceholder") + .withConnectionBandwidth(200) + .withSharedKey("fakeTokenPlaceholder") .withUsePolicyBasedTrafficSelectors(false))) .withRoutingConfiguration(new RoutingConfiguration().withAssociatedRouteTable(new SubResource().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/hub1/hubRouteTables/hubRouteTable1")) diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsDeleteSamples.java index 373e687baf2da..bda19c615c5eb 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class VpnConnectionsDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VpnConnectionDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnConnectionDelete.json */ /** * Sample code: VpnConnectionDelete. @@ -18,7 +17,10 @@ public final class VpnConnectionsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void vpnConnectionDelete(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVpnConnections().delete("rg1", "gateway1", "vpnConnection1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVpnConnections() + .delete("rg1", "gateway1", "vpnConnection1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsGetSamples.java index 547d411c68fb9..adae2bc2306cb 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsGetSamples.java @@ -9,8 +9,7 @@ */ public final class VpnConnectionsGetSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VpnConnectionGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnConnectionGet.json */ /** * Sample code: VpnConnectionGet. @@ -18,7 +17,10 @@ public final class VpnConnectionsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void vpnConnectionGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVpnConnections().getWithResponse("rg1", "gateway1", - "vpnConnection1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVpnConnections() + .getWithResponse("rg1", "gateway1", "vpnConnection1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsListByVpnGatewaySamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsListByVpnGatewaySamples.java index 577a42c1332b2..95662f3e91158 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsListByVpnGatewaySamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsListByVpnGatewaySamples.java @@ -9,8 +9,7 @@ */ public final class VpnConnectionsListByVpnGatewaySamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VpnConnectionList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnConnectionList.json */ /** * Sample code: VpnConnectionList. @@ -18,7 +17,10 @@ public final class VpnConnectionsListByVpnGatewaySamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void vpnConnectionList(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVpnConnections().listByVpnGateway("rg1", "gateway1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVpnConnections() + .listByVpnGateway("rg1", "gateway1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsStartPacketCaptureSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsStartPacketCaptureSamples.java index fae9d5d3a19af..04f0c0b89d105 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsStartPacketCaptureSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsStartPacketCaptureSamples.java @@ -12,8 +12,7 @@ */ public final class VpnConnectionsStartPacketCaptureSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VpnConnectionStartPacketCaptureFilterData.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnConnectionStartPacketCaptureFilterData.json */ /** * Sample code: Start packet capture on vpn connection with filter. @@ -22,17 +21,19 @@ public final class VpnConnectionsStartPacketCaptureSamples { */ public static void startPacketCaptureOnVpnConnectionWithFilter(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VpnConnectionStartPacketCapture.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnConnectionStartPacketCapture.json */ /** * Sample code: Start packet capture on vpn connection without filter. @@ -41,7 +42,10 @@ public final class VpnConnectionsStartPacketCaptureSamples { */ public static void startPacketCaptureOnVpnConnectionWithoutFilter(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVpnConnections() + azure.networks() + .manager() + .serviceClient() + .getVpnConnections() .startPacketCapture( "rg1", "gateway1", "vpnConnection1", new VpnConnectionPacketCaptureStartParameters() .withLinkConnectionNames(Arrays.asList("siteLink1", "siteLink2")), diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsStopPacketCaptureSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsStopPacketCaptureSamples.java index 5c034586620f9..11fda386e8ea8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsStopPacketCaptureSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnConnectionsStopPacketCaptureSamples.java @@ -12,8 +12,7 @@ */ public final class VpnConnectionsStopPacketCaptureSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VpnConnectionStopPacketCapture.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnConnectionStopPacketCapture.json */ /** * Sample code: Start packet capture on vpn connection without filter. @@ -22,11 +21,14 @@ public final class VpnConnectionsStopPacketCaptureSamples { */ public static void startPacketCaptureOnVpnConnectionWithoutFilter(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().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); + azure.networks() + .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/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysCreateOrUpdateSamples.java index 31360891de2e8..6b70fa555c6db 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysCreateOrUpdateSamples.java @@ -24,8 +24,7 @@ */ public final class VpnGatewaysCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VpnGatewayPut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnGatewayPut.json */ /** * Sample code: VpnGatewayPut. @@ -33,8 +32,12 @@ public final class VpnGatewaysCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void vpnGatewayPut(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVpnGateways().createOrUpdate("rg1", "gateway1", - new VpnGatewayInner().withLocation("westcentralus").withTags(mapOf("key1", "fakeTokenPlaceholder")) + azure.networks() + .manager() + .serviceClient() + .getVpnGateways() + .createOrUpdate("rg1", "gateway1", new VpnGatewayInner().withLocation("westcentralus") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) .withVirtualHub(new SubResource().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1")) .withConnections(Arrays.asList(new VpnConnectionInner().withName("vpnConnection1") @@ -44,22 +47,26 @@ public static void vpnGatewayPut(com.azure.resourcemanager.AzureResourceManager .withVpnSiteLink(new SubResource().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnSites/vpnSite1/vpnSiteLinks/siteLink1")) .withVpnConnectionProtocolType(VirtualNetworkGatewayConnectionProtocol.IKEV2) - .withConnectionBandwidth(200).withSharedKey("fakeTokenPlaceholder") + .withConnectionBandwidth(200) + .withSharedKey("fakeTokenPlaceholder") .withEgressNatRules(Arrays.asList(new SubResource().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/natRules/nat03"))))))) - .withBgpSettings(new BgpSettings().withAsn(65515L).withPeerWeight(0) + .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) + .withEnableBgpRouteTranslationForNat(false) + .withIsRoutingPreferenceInternet(false) .withNatRules(Arrays.asList(new VpnGatewayNatRuleInner().withName("nat03") - .withTypePropertiesType(VpnNatRuleType.STATIC).withMode(VpnNatRuleMode.EGRESS_SNAT) + .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); + com.azure.core.util.Context.NONE); } // Use "Map.of" if available diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysDeleteSamples.java index d113215161e2d..8b4991cd3d69b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class VpnGatewaysDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VpnGatewayDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnGatewayDelete.json */ /** * Sample code: VpnGatewayDelete. @@ -18,7 +17,10 @@ public final class VpnGatewaysDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void vpnGatewayDelete(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVpnGateways().delete("rg1", "gateway1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVpnGateways() + .delete("rg1", "gateway1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysGetByResourceGroupSamples.java index 06a95e41825ac..b33d336e64e2e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class VpnGatewaysGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VpnGatewayGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnGatewayGet.json */ /** * Sample code: VpnGatewayGet. @@ -18,7 +17,10 @@ public final class VpnGatewaysGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void vpnGatewayGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVpnGateways().getByResourceGroupWithResponse("rg1", "gateway1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVpnGateways() + .getByResourceGroupWithResponse("rg1", "gateway1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysListByResourceGroupSamples.java index b55de32db7654..2b672492adc7d 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysListByResourceGroupSamples.java @@ -9,9 +9,7 @@ */ public final class VpnGatewaysListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VpnGatewayListByResourceGroup - * .json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnGatewayListByResourceGroup.json */ /** * Sample code: VpnGatewayListByResourceGroup. @@ -19,7 +17,10 @@ public final class VpnGatewaysListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void vpnGatewayListByResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVpnGateways().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVpnGateways() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysListSamples.java index c8c33b208082f..e520853142ce1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysListSamples.java @@ -9,8 +9,7 @@ */ public final class VpnGatewaysListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VpnGatewayList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnGatewayList.json */ /** * Sample code: VpnGatewayListBySubscription. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysResetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysResetSamples.java index 0de1b6c33a16e..539de38a8b8ac 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysResetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysResetSamples.java @@ -9,8 +9,7 @@ */ public final class VpnGatewaysResetSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VpnGatewayReset.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnGatewayReset.json */ /** * Sample code: ResetVpnGateway. @@ -18,7 +17,10 @@ public final class VpnGatewaysResetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void resetVpnGateway(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVpnGateways().reset("rg1", "vpngw", null, - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVpnGateways() + .reset("rg1", "vpngw", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysStartPacketCaptureSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysStartPacketCaptureSamples.java index 355ba36d14ad8..d6f3056a0014a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysStartPacketCaptureSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysStartPacketCaptureSamples.java @@ -11,8 +11,7 @@ */ public final class VpnGatewaysStartPacketCaptureSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VpnGatewayStartPacketCaptureFilterData.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnGatewayStartPacketCaptureFilterData.json */ /** * Sample code: Start packet capture on vpn gateway with filter. @@ -20,16 +19,17 @@ public final class VpnGatewaysStartPacketCaptureSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void startPacketCaptureOnVpnGatewayWithFilter(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVpnGateways().startPacketCapture("rg1", "vpngw", - new VpnGatewayPacketCaptureStartParameters().withFilterData( + azure.networks() + .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); + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VpnGatewayStartPacketCapture. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnGatewayStartPacketCapture.json */ /** * Sample code: Start packet capture on vpn gateway without filter. @@ -38,7 +38,10 @@ public static void startPacketCaptureOnVpnGatewayWithFilter(com.azure.resourcema */ public static void startPacketCaptureOnVpnGatewayWithoutFilter(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVpnGateways().startPacketCapture("rg1", "vpngw", null, - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVpnGateways() + .startPacketCapture("rg1", "vpngw", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysStopPacketCaptureSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysStopPacketCaptureSamples.java index 5c463ca00ddbc..9082f3418ad71 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysStopPacketCaptureSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysStopPacketCaptureSamples.java @@ -11,9 +11,7 @@ */ public final class VpnGatewaysStopPacketCaptureSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VpnGatewayStopPacketCapture. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnGatewayStopPacketCapture.json */ /** * Sample code: Stop packet capture on vpn gateway. @@ -21,9 +19,12 @@ public final class VpnGatewaysStopPacketCaptureSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void stopPacketCaptureOnVpnGateway(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVpnGateways().stopPacketCapture("rg1", "vpngw", - new VpnGatewayPacketCaptureStopParameters().withSasUrl( + azure.networks() + .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); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysUpdateTagsSamples.java index 027fb0d87b7c1..452b986e239af 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnGatewaysUpdateTagsSamples.java @@ -13,8 +13,7 @@ */ public final class VpnGatewaysUpdateTagsSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VpnGatewayUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnGatewayUpdateTags.json */ /** * Sample code: VpnGatewayUpdate. @@ -22,8 +21,12 @@ public final class VpnGatewaysUpdateTagsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void vpnGatewayUpdate(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVpnGateways().updateTags("rg1", "gateway1", - new TagsObject().withTags(mapOf("tag1", "value1", "tag2", "value2")), com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnLinkConnectionsGetIkeSasSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnLinkConnectionsGetIkeSasSamples.java index 0864ee0e2adb4..f14722d1ba2ac 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnLinkConnectionsGetIkeSasSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnLinkConnectionsGetIkeSasSamples.java @@ -9,8 +9,7 @@ */ public final class VpnLinkConnectionsGetIkeSasSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VpnSiteLinkConnectionGetIkeSas.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSiteLinkConnectionGetIkeSas.json */ /** * Sample code: GetVpnLinkConnectionIkeSa. @@ -18,7 +17,10 @@ public final class VpnLinkConnectionsGetIkeSasSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getVpnLinkConnectionIkeSa(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVpnLinkConnections().getIkeSas("rg1", "gateway1", - "vpnConnection1", "Connection-Link1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVpnLinkConnections() + .getIkeSas("rg1", "gateway1", "vpnConnection1", "Connection-Link1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnLinkConnectionsListByVpnConnectionSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnLinkConnectionsListByVpnConnectionSamples.java index fec2fb0c0d7ba..2508cbf40632b 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnLinkConnectionsListByVpnConnectionSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnLinkConnectionsListByVpnConnectionSamples.java @@ -9,9 +9,7 @@ */ public final class VpnLinkConnectionsListByVpnConnectionSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VpnSiteLinkConnectionList. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSiteLinkConnectionList.json */ /** * Sample code: VpnSiteLinkConnectionList. @@ -19,7 +17,10 @@ public final class VpnLinkConnectionsListByVpnConnectionSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void vpnSiteLinkConnectionList(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVpnLinkConnections().listByVpnConnection("rg1", "gateway1", - "vpnConnection1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVpnLinkConnections() + .listByVpnConnection("rg1", "gateway1", "vpnConnection1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnLinkConnectionsResetConnectionSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnLinkConnectionsResetConnectionSamples.java index de985879135c3..74fea13dfd8a5 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnLinkConnectionsResetConnectionSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnLinkConnectionsResetConnectionSamples.java @@ -9,9 +9,7 @@ */ public final class VpnLinkConnectionsResetConnectionSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VpnSiteLinkConnectionReset. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSiteLinkConnectionReset.json */ /** * Sample code: ResetVpnLinkConnection. @@ -19,7 +17,10 @@ public final class VpnLinkConnectionsResetConnectionSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void resetVpnLinkConnection(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVpnLinkConnections().resetConnection("rg1", "gateway1", - "vpnConnection1", "Connection-Link1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVpnLinkConnections() + .resetConnection("rg1", "gateway1", "vpnConnection1", "Connection-Link1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsAssociatedWithVirtualWanListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsAssociatedWithVirtualWanListSamples.java index 7f38516b9cace..4a33c82e0dc40 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsAssociatedWithVirtualWanListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsAssociatedWithVirtualWanListSamples.java @@ -9,8 +9,7 @@ */ public final class VpnServerConfigurationsAssociatedWithVirtualWanListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * GetVirtualWanVpnServerConfigurations.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/GetVirtualWanVpnServerConfigurations.json */ /** * Sample code: GetVirtualWanVpnServerConfigurations. @@ -18,7 +17,10 @@ public final class VpnServerConfigurationsAssociatedWithVirtualWanListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getVirtualWanVpnServerConfigurations(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVpnServerConfigurationsAssociatedWithVirtualWans().list("rg1", - "wan1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVpnServerConfigurationsAssociatedWithVirtualWans() + .list("rg1", "wan1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsCreateOrUpdateSamples.java index 3ab26a52fdcba..6b7f44a7d56c0 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsCreateOrUpdateSamples.java @@ -18,9 +18,9 @@ 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.VpnServerConfigurationPolicyGroupMember; 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; @@ -30,9 +30,7 @@ */ public final class VpnServerConfigurationsCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VpnServerConfigurationPut. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnServerConfigurationPut.json */ /** * Sample code: VpnServerConfigurationCreate. @@ -40,41 +38,56 @@ public final class VpnServerConfigurationsCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void vpnServerConfigurationCreate(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVpnServerConfigurations().createOrUpdate("rg1", - "vpnServerConfiguration1", - new VpnServerConfigurationInner().withLocation("West US").withTags(mapOf("key1", "fakeTokenPlaceholder")) + azure.networks() + .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( + .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( + .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))) + .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"))) + .withRadiusServerScore(25L) + .withRadiusServerSecret("fakeTokenPlaceholder"))) .withConfigurationPolicyGroups(Arrays.asList(new VpnServerConfigurationPolicyGroupInner().withId( "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnServerConfigurations/vpnServerConfiguration1/vpnServerConfigurationPolicyGroups/policyGroup1") - .withName("policyGroup1").withIsDefault(true).withPriority(0) + .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/subid/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); + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsDeleteSamples.java index 196e53e44f6a1..aae1495196336 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsDeleteSamples.java @@ -9,9 +9,7 @@ */ public final class VpnServerConfigurationsDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VpnServerConfigurationDelete. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnServerConfigurationDelete.json */ /** * Sample code: VpnServerConfigurationDelete. @@ -19,7 +17,10 @@ public final class VpnServerConfigurationsDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void vpnServerConfigurationDelete(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVpnServerConfigurations().delete("rg1", "vpnServerConfiguration1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVpnServerConfigurations() + .delete("rg1", "vpnServerConfiguration1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsGetByResourceGroupSamples.java index e0fb0739f6f01..38ffa45c44346 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsGetByResourceGroupSamples.java @@ -9,9 +9,7 @@ */ public final class VpnServerConfigurationsGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VpnServerConfigurationGet. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnServerConfigurationGet.json */ /** * Sample code: VpnServerConfigurationGet. @@ -19,7 +17,10 @@ public final class VpnServerConfigurationsGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void vpnServerConfigurationGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVpnServerConfigurations().getByResourceGroupWithResponse("rg1", - "vpnServerConfiguration1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVpnServerConfigurations() + .getByResourceGroupWithResponse("rg1", "vpnServerConfiguration1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsListByResourceGroupSamples.java index 6c7c0bb7229c4..33d82c18a5dfd 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class VpnServerConfigurationsListByResourceGroupSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VpnServerConfigurationListByResourceGroup.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnServerConfigurationListByResourceGroup.json */ /** * Sample code: VpnServerConfigurationListByResourceGroup. @@ -18,7 +17,10 @@ public final class VpnServerConfigurationsListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void vpnServerConfigurationListByResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVpnServerConfigurations().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVpnServerConfigurations() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsListSamples.java index 46d769d26506a..65765e570f4d1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsListSamples.java @@ -9,9 +9,7 @@ */ public final class VpnServerConfigurationsListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VpnServerConfigurationList. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnServerConfigurationList.json */ /** * Sample code: VpnServerConfigurationList. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsUpdateTagsSamples.java index 4ae41637ccc81..236b21accda3c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnServerConfigurationsUpdateTagsSamples.java @@ -13,8 +13,7 @@ */ public final class VpnServerConfigurationsUpdateTagsSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * VpnServerConfigurationUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnServerConfigurationUpdateTags.json */ /** * Sample code: VpnServerConfigurationUpdate. @@ -22,10 +21,13 @@ public final class VpnServerConfigurationsUpdateTagsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void vpnServerConfigurationUpdate(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVpnServerConfigurations().updateTagsWithResponse("rg1", - "vpnServerConfiguration1", - new TagsObject().withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")), - com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSiteLinkConnectionsGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSiteLinkConnectionsGetSamples.java index 7104b64c09547..5c3c75b6fdb0f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSiteLinkConnectionsGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSiteLinkConnectionsGetSamples.java @@ -9,8 +9,7 @@ */ public final class VpnSiteLinkConnectionsGetSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VpnSiteLinkConnectionGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSiteLinkConnectionGet.json */ /** * Sample code: VpnSiteLinkConnectionGet. @@ -18,7 +17,10 @@ public final class VpnSiteLinkConnectionsGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void vpnSiteLinkConnectionGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVpnSiteLinkConnections().getWithResponse("rg1", "gateway1", - "vpnConnection1", "Connection-Link1", com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVpnSiteLinkConnections() + .getWithResponse("rg1", "gateway1", "vpnConnection1", "Connection-Link1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSiteLinksGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSiteLinksGetSamples.java index 033437d6914a1..c4da25a40982a 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSiteLinksGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSiteLinksGetSamples.java @@ -9,8 +9,7 @@ */ public final class VpnSiteLinksGetSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VpnSiteLinkGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSiteLinkGet.json */ /** * Sample code: VpnSiteGet. @@ -18,7 +17,10 @@ public final class VpnSiteLinksGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void vpnSiteGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVpnSiteLinks().getWithResponse("rg1", "vpnSite1", "vpnSiteLink1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVpnSiteLinks() + .getWithResponse("rg1", "vpnSite1", "vpnSiteLink1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSiteLinksListByVpnSiteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSiteLinksListByVpnSiteSamples.java index dd1e10c30c3c6..a22fbd129a03e 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSiteLinksListByVpnSiteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSiteLinksListByVpnSiteSamples.java @@ -9,8 +9,7 @@ */ public final class VpnSiteLinksListByVpnSiteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VpnSiteLinkListByVpnSite.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSiteLinkListByVpnSite.json */ /** * Sample code: VpnSiteLinkListByVpnSite. @@ -18,7 +17,10 @@ public final class VpnSiteLinksListByVpnSiteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void vpnSiteLinkListByVpnSite(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVpnSiteLinks().listByVpnSite("rg1", "vpnSite1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVpnSiteLinks() + .listByVpnSite("rg1", "vpnSite1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesConfigurationDownloadSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesConfigurationDownloadSamples.java index a6974f060c996..0a573383e06ba 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesConfigurationDownloadSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesConfigurationDownloadSamples.java @@ -12,9 +12,7 @@ */ public final class VpnSitesConfigurationDownloadSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VpnSitesConfigurationDownload - * .json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSitesConfigurationDownload.json */ /** * Sample code: VpnSitesConfigurationDownload. @@ -22,12 +20,15 @@ public final class VpnSitesConfigurationDownloadSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void vpnSitesConfigurationDownload(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVpnSitesConfigurations().download("rg1", "wan1", - new GetVpnSitesConfigurationRequest() + azure.networks() + .manager() + .serviceClient() + .getVpnSitesConfigurations() + .download("rg1", "wan1", new GetVpnSitesConfigurationRequest() .withVpnSites( Arrays.asList("/subscriptions/subid/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); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesCreateOrUpdateSamples.java index 0d53964461713..28965171661ae 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesCreateOrUpdateSamples.java @@ -21,8 +21,7 @@ */ public final class VpnSitesCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VpnSitePut.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSitePut.json */ /** * Sample code: VpnSiteCreate. @@ -30,8 +29,12 @@ public final class VpnSitesCreateOrUpdateSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void vpnSiteCreate(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVpnSites().createOrUpdate("rg1", "vpnSite1", - new VpnSiteInner().withLocation("West US").withTags(mapOf("key1", "fakeTokenPlaceholder")) + azure.networks() + .manager() + .serviceClient() + .getVpnSites() + .createOrUpdate("rg1", "vpnSite1", new VpnSiteInner().withLocation("West US") + .withTags(mapOf("key1", "fakeTokenPlaceholder")) .withVirtualWan(new SubResource() .withId("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWANs/wan1")) .withAddressSpace(new AddressSpace().withAddressPrefixes(Arrays.asList("10.0.0.0/16"))) @@ -39,11 +42,12 @@ public static void vpnSiteCreate(com.azure.resourcemanager.AzureResourceManager .withVpnSiteLinks(Arrays.asList(new VpnSiteLinkInner().withName("vpnSiteLink1") .withLinkProperties( new VpnLinkProviderProperties().withLinkProviderName("vendor1").withLinkSpeedInMbps(0)) - .withIpAddress("50.50.50.56").withFqdn("link1.vpnsite1.contoso.com") + .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); + com.azure.core.util.Context.NONE); } // Use "Map.of" if available diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesDeleteSamples.java index 7703b543d8a10..8ed03960fe7e2 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class VpnSitesDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VpnSiteDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSiteDelete.json */ /** * Sample code: VpnSiteDelete. @@ -18,7 +17,10 @@ public final class VpnSitesDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void vpnSiteDelete(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVpnSites().delete("rg1", "vpnSite1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVpnSites() + .delete("rg1", "vpnSite1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesGetByResourceGroupSamples.java index fc46091cfe7e0..a045af777b052 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class VpnSitesGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VpnSiteGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSiteGet.json */ /** * Sample code: VpnSiteGet. @@ -18,7 +17,10 @@ public final class VpnSitesGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void vpnSiteGet(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVpnSites().getByResourceGroupWithResponse("rg1", "vpnSite1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVpnSites() + .getByResourceGroupWithResponse("rg1", "vpnSite1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesListByResourceGroupSamples.java index 12038aec2dd7e..b8e1ff29658a0 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesListByResourceGroupSamples.java @@ -9,9 +9,7 @@ */ public final class VpnSitesListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VpnSiteListByResourceGroup. - * json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSiteListByResourceGroup.json */ /** * Sample code: VpnSiteListByResourceGroup. @@ -19,7 +17,10 @@ public final class VpnSitesListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void vpnSiteListByResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVpnSites().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getVpnSites() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesListSamples.java index 46f683de6fcd5..2e792dec66320 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesListSamples.java @@ -9,8 +9,7 @@ */ public final class VpnSitesListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VpnSiteList.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSiteList.json */ /** * Sample code: VpnSiteList. diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesUpdateTagsSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesUpdateTagsSamples.java index 06ba91a81eb4f..1b0a315499bc8 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesUpdateTagsSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VpnSitesUpdateTagsSamples.java @@ -13,8 +13,7 @@ */ public final class VpnSitesUpdateTagsSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/VpnSiteUpdateTags.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/VpnSiteUpdateTags.json */ /** * Sample code: VpnSiteUpdate. @@ -22,9 +21,13 @@ public final class VpnSitesUpdateTagsSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void vpnSiteUpdate(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getVpnSites().updateTagsWithResponse("rg1", "vpnSite1", - new TagsObject().withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")), - com.azure.core.util.Context.NONE); + azure.networks() + .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 diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesCreateOrUpdateSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesCreateOrUpdateSamples.java index 47ce923e2fb3c..2becaba04b5e1 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesCreateOrUpdateSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesCreateOrUpdateSamples.java @@ -16,8 +16,8 @@ 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.ManagedRuleSet; import com.azure.resourcemanager.network.models.MatchCondition; import com.azure.resourcemanager.network.models.MatchVariable; import com.azure.resourcemanager.network.models.OwaspCrsExclusionEntry; @@ -42,8 +42,7 @@ */ public final class WebApplicationFirewallPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/WafPolicyCreateOrUpdate.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/WafPolicyCreateOrUpdate.json */ /** * Sample code: Creates or updates a WAF policy within a resource group. @@ -52,11 +51,12 @@ public final class WebApplicationFirewallPoliciesCreateOrUpdateSamples { */ public static void createsOrUpdatesAWAFPolicyWithinAResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getWebApplicationFirewallPolicies() + azure.networks() + .manager() + .serviceClient() + .getWebApplicationFirewallPolicies() .createOrUpdateWithResponse("rg1", "Policy1", - new WebApplicationFirewallPolicyInner() - .withLocation( - "WestUs") + new WebApplicationFirewallPolicyInner().withLocation("WestUs") .withPolicySettings( new PolicySettings() .withLogScrubbing( @@ -68,67 +68,82 @@ public final class WebApplicationFirewallPoliciesCreateOrUpdateSamples { .withMatchVariable( ScrubbingRuleEntryMatchVariable.REQUEST_ARG_NAMES) .withSelectorMatchOperator(ScrubbingRuleEntryMatchOperator.EQUALS) - .withSelector("test").withState(ScrubbingRuleEntryState.ENABLED), + .withSelector("test") + .withState(ScrubbingRuleEntryState.ENABLED), new WebApplicationFirewallScrubbingRules() .withMatchVariable( ScrubbingRuleEntryMatchVariable.REQUEST_IPADDRESS) .withSelectorMatchOperator( ScrubbingRuleEntryMatchOperator.EQUALS_ANY) - .withState(ScrubbingRuleEntryState.ENABLED))))) - .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))) + .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() .withExclusions( @@ -138,7 +153,8 @@ public final class WebApplicationFirewallPoliciesCreateOrUpdateSamples { .withMatchVariable(OwaspCrsExclusionEntryMatchVariable.REQUEST_ARG_NAMES) .withSelectorMatchOperator( OwaspCrsExclusionEntrySelectorMatchOperator.STARTS_WITH) - .withSelector("hello").withExclusionManagedRuleSets( + .withSelector("hello") + .withExclusionManagedRuleSets( Arrays.asList(new ExclusionManagedRuleSet().withRuleSetType("OWASP") .withRuleSetVersion("3.2") .withRuleGroups(Arrays.asList( @@ -152,9 +168,11 @@ public final class WebApplicationFirewallPoliciesCreateOrUpdateSamples { .withMatchVariable(OwaspCrsExclusionEntryMatchVariable.REQUEST_ARG_NAMES) .withSelectorMatchOperator( OwaspCrsExclusionEntrySelectorMatchOperator.ENDS_WITH) - .withSelector("hello").withExclusionManagedRuleSets( + .withSelector("hello") + .withExclusionManagedRuleSets( Arrays.asList(new ExclusionManagedRuleSet().withRuleSetType("OWASP") - .withRuleSetVersion("3.1").withRuleGroups(Arrays.asList()))), + .withRuleSetVersion("3.1") + .withRuleGroups(Arrays.asList()))), new OwaspCrsExclusionEntry() .withMatchVariable(OwaspCrsExclusionEntryMatchVariable.REQUEST_ARG_NAMES) .withSelectorMatchOperator( @@ -165,23 +183,25 @@ public final class WebApplicationFirewallPoliciesCreateOrUpdateSamples { .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)))))))), + .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)))))))), com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesDeleteSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesDeleteSamples.java index 1e45d222319bf..9dd90598247ba 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesDeleteSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesDeleteSamples.java @@ -9,8 +9,7 @@ */ public final class WebApplicationFirewallPoliciesDeleteSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/WafPolicyDelete.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/WafPolicyDelete.json */ /** * Sample code: Deletes a WAF policy within a resource group. @@ -18,7 +17,10 @@ public final class WebApplicationFirewallPoliciesDeleteSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void deletesAWAFPolicyWithinAResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getWebApplicationFirewallPolicies().delete("rg1", "Policy1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getWebApplicationFirewallPolicies() + .delete("rg1", "Policy1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesGetByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesGetByResourceGroupSamples.java index 4c39972f6a74e..deb5b3a8a355f 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesGetByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesGetByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class WebApplicationFirewallPoliciesGetByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/WafPolicyGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/WafPolicyGet.json */ /** * Sample code: Gets a WAF policy within a resource group. @@ -18,7 +17,10 @@ public final class WebApplicationFirewallPoliciesGetByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getsAWAFPolicyWithinAResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getWebApplicationFirewallPolicies() + azure.networks() + .manager() + .serviceClient() + .getWebApplicationFirewallPolicies() .getByResourceGroupWithResponse("rg1", "Policy1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesListByResourceGroupSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesListByResourceGroupSamples.java index 01dfe2915acc7..2e929d213a908 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesListByResourceGroupSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesListByResourceGroupSamples.java @@ -9,8 +9,7 @@ */ public final class WebApplicationFirewallPoliciesListByResourceGroupSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/WafListPolicies.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/WafListPolicies.json */ /** * Sample code: Lists all WAF policies in a resource group. @@ -18,7 +17,10 @@ public final class WebApplicationFirewallPoliciesListByResourceGroupSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listsAllWAFPoliciesInAResourceGroup(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getWebApplicationFirewallPolicies().listByResourceGroup("rg1", - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getWebApplicationFirewallPolicies() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesListSamples.java index e7234b70878a4..d12d050da5daf 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/WebApplicationFirewallPoliciesListSamples.java @@ -9,8 +9,7 @@ */ public final class WebApplicationFirewallPoliciesListSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/WafListAllPolicies.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/WafListAllPolicies.json */ /** * Sample code: Lists all WAF policies in a subscription. @@ -18,7 +17,10 @@ public final class WebApplicationFirewallPoliciesListSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void listsAllWAFPoliciesInASubscription(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getWebApplicationFirewallPolicies() + azure.networks() + .manager() + .serviceClient() + .getWebApplicationFirewallPolicies() .list(com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/WebCategoriesGetSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/WebCategoriesGetSamples.java index b3b7174848332..bad58fea92bfd 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/WebCategoriesGetSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/WebCategoriesGetSamples.java @@ -9,8 +9,7 @@ */ public final class WebCategoriesGetSamples { /* - * x-ms-original-file: - * specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/AzureWebCategoryGet.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureWebCategoryGet.json */ /** * Sample code: Get Azure Web Category by name. @@ -18,7 +17,10 @@ public final class WebCategoriesGetSamples { * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getAzureWebCategoryByName(com.azure.resourcemanager.AzureResourceManager azure) { - azure.networks().manager().serviceClient().getWebCategories().getWithResponse("Arts", null, - com.azure.core.util.Context.NONE); + azure.networks() + .manager() + .serviceClient() + .getWebCategories() + .getWithResponse("Arts", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/WebCategoriesListSamples.java b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/WebCategoriesListSamples.java index e57c60e31ace5..20b5cfdd7f487 100644 --- a/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/WebCategoriesListSamples.java +++ b/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/WebCategoriesListSamples.java @@ -9,8 +9,7 @@ */ public final class WebCategoriesListSamples { /* - * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-09-01/examples/ - * AzureWebCategoriesListBySubscription.json + * x-ms-original-file: specification/network/resource-manager/Microsoft.Network/stable/2023-11-01/examples/AzureWebCategoriesListBySubscription.json */ /** * Sample code: List all Azure Web Categories for a given subscription.